What is 0 and 0 in hw:0,0 mean? and how can I get those value?
I'm trying to do screencast and record application sound too with ffmpeg. But, I can't get the application sound recorded. I think there's something wrong with my command. What I'm doing is like this:
ffmpeg -f alsa -i hw:0,0 -f x11grab -i :0.0 out.mpgSo, i need to understand what is 0 and 0 in hw:0,0 means. When I do arecord -l the output is:
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: CX20585 Analog [CX20585 Analog] Subdevices: 1/1 Subdevice #0: subdevice #0and aplay -l output is:
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: CX20585 Analog [CX20585 Analog] Subdevices: 1/1 Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0] Subdevices: 1/1 Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0] Subdevices: 1/1 Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0] Subdevices: 1/1 Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0] Subdevices: 1/1 Subdevice #0: subdevice #0The output gives many of 0 values. I don't know which one to put in hw:#,# so ffmpeg can record the application sound.
1 Answer
The first 0 is the card, and the second 0 is the device, as listed in the output of arecord -l:
card 0: PCH [HDA Intel PCH], device 0: CX20585 Analog [CX20585 Analog]