[FFmpeg-user] Listing devices
Cecil Westerhof
Cecil at decebal.nl
Sat Apr 19 22:20:20 CEST 2014
Op Saturday 19 Apr 2014 18:11 CEST schreef Cecil Westerhof:
> Op Saturday 19 Apr 2014 16:23 CEST schreef Carl Eugen Hoyos:
>
>> Cecil Westerhof <Cecil <at> decebal.nl> writes:
>>
>>>>> ffmpeg -list_devices true -f dshow -i dummy
>>
>>>> dshow is a Windows device.
>>>
>>> But even with that removed, I get the same message.
>>
>> Because the option only makes sense for dshow (and openal).
>
> OK, what is then the way to get the devices in Linux?
At the moment I use the following:
command='
ffmpeg -y
-async 1
-f alsa
-ac 1
-i '"${MIC_WEBCAM}"'
-acodec libmp3lame
-ar 22050
-b:a 128k
-t 1 dummy.mp3'
if ${command} 2>/dev/null ; then
micToUse="${MIC_WEBCAM}"
else
micToUse="${MIC_INTERN}"
fi
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
More information about the ffmpeg-user
mailing list