18

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.

enter image description here

krv
  • 729

4 Answers4

32

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:

enter image description here

(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.

MMM
  • 3,257
6

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.

  • Install OBS.
  • Edit its graphic settings as explained here - this will prevent the black screen problem.
  • Open OBS.
  • In the bottom-left corner, choose the "Scene".
  • On the pane to its right, add three sources: "Display Capture", "Display Audio", and "Audio Input Capture".
  • On the bottom right, click "Start Recording".
  • Once the recording is done, click "Stop Recording".

enter image description here

Daniel
  • 422
0

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.

screen recording options window

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"
ChanganAuto
  • 1
  • 4
  • 18
  • 19
-1

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

DarkDiamond
  • 1,919
  • 11
  • 15
  • 21