I have the following settings. I am able to record the screen audio but my mic audio is not being recorded.
Is there a way I can record both my mic as well as the screen audio.
I have the following settings. I am able to record the screen audio but my mic audio is not being recorded.
Is there a way I can record both my mic as well as the screen audio.
On the "Additional command line arguments" text field add this:
-f dshow -i audio="Headset (HD 450BT Hands-Free AG Audio)" -filter_complex amix=inputs=2:duration=longest
In my case, where my headset (HD 450BT Hands-Free AG Audio) is also my microphone, you can find the correct name by momentarily changing the "Audio source" field and selecting your microphone or headset. When you select it, you will see that the "Command line preview" changes and the parameter -i audio reflects that headset name, copy that name from there and replace the quoted name in the command above.
At the end it should look like this:
(don't forget to change the audio source back to "virtual-audio-capturer" before pasting the additional command line arguments)
Note: the button "Install recorder devices" adds "screen-capture-recorder" and "virtual-audio-capturer" to the "Video Source" and "Audio source" fields respectively, in case you can't see them as available options.
I had the same problem as you and I could not solve it with ShareX.
However, with OBS it was straightforward to record desktop audio and microphone audio at the same time.
If you want to also increase the volume of your mic, write it like this:
-f dshow -i audio="Microphone (Logi C270 HD WebCam)" -filter_complex "[1:a]volume=3.0[a1];[0:a][a1]amix=inputs=2:duration=longest"
"volume=3.0" means: 3 times your initial mic volume.
Replace "Microphone (Logi C270 HD WebCam)" with your device's name and put into additional settings. Turn "Use custom commands" off.
Full ffmpeg code:
-f dshow -thread_queue_size 1024 -rtbufsize 256M -audio_buffer_size 80 -framerate 30 -i video="screen-capture-recorder":audio="virtual-audio-capturer" -f dshow -i audio="Microphone (Logi C270 HD WebCam)" -filter_complex "[1:a]volume=6.0[a1];[0:a][a1]amix=inputs=2:duration=longest" -c:v libx264 -r 30 -preset ultrafast -tune zerolatency -crf 28 -pix_fmt yuv420p -movflags +faststart -c:a aac -ac 2 -b:a 128k -y "output.mp4"
In additional command line arguments:
-f dshow -i audio="Microphone (Yeti Stereo Microphone)" -filter_complex amix=inputs=2:duration=longest
Replace Microphone (Yeti stereo Microphone) with name of device