I am trying to record my Skype calls using ffmpeg. I need to record audio (pulseaudio) & video (X). But it seems that it is a bit tricky...

For audio recording I want to use my Scarlet 2i4 audio interface that is listed as device number 10 in pulseaudio:

ziga@ziga-laptop:~$ pactl list short cards
2   alsa_card.pci-0000_00_1b.0  module-alsa-card.c
10  alsa_card.usb-Focusrite_Scarlett_2i4_USB-00 module-alsa-card.c

~$ pactl list short sinks
16  alsa_output.usb-Focusrite_Scarlett_2i4_USB-00.analog-surround-40    module-alsa-card.c  s32le 4ch 44100Hz   SUSPENDED

~$ pactl list short sources
24  alsa_output.usb-Focusrite_Scarlett_2i4_USB-00.analog-surround-40.monitor    module-alsa-card.c  s32le 4ch 44100HzSUSPENDED
25  alsa_input.usb-Focusrite_Scarlett_2i4_USB-00.analog-stereo  module-alsa-card.c  s32le 2ch 44100Hz   IDLE

From this I can see that my desired card is a device 10 so I structured my ffmpeg command like this:

ffmpeg \
-f x11grab -s 1920x1080 -probesize 17M -r 30 -i :0.0+0+0 \
-f pulse -ac 2 -device 10 \


  • 第二行指定所有视频输入参数(已测试并工作)
  • 第三行指定所有音频参数(不起作用)


Output #0, pulse, to 'output.mkv':
Output file #0 does not contain any stream