I'm trying to get FFMPEG to pull both audio from my webcam. It works fantastically, when it does, but is intermittent. I am using the following command:
ffmpeg -report -y -f alsa -channels 1 -ar 16000 -i hw:2,0 outputA.wav
I have narrowed the issue down to FFMPEG being unable to sometimes open the microphone. The report looks fine until it hangs here:
Successfully parsed a group of options. Opening an input file: hw:2,0.
Then I have to ctrl-c twice to get back to the command line.
Before running ffmpeg, the output of arecord -l
yields:
**** List of CAPTURE Hardware Devices **** card 2: U0x46d0x807 [USB Device 0x46d:0x807], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0
...but during the running of ffmpeg it shows, ... Subdevices: 0/1 ...
, implying that the device is unavailable (as ffmpeg should be using it)... but it reads this way whether or not it successfully begins the recording.
I can force it to hang more often by playing a music file in omxplayer, but it doesn't require this to hang. As you might suspect, sound output on a completely separate device should not affect input on another device, so this particular trigger yields many ?!?!?!'s.
I'm a bit of a noob. Any help would be appreciated.