[FFmpeg-user] Listing devices

Carl Eugen Hoyos cehoyos at ag.or.at
Sun Apr 20 16:50:49 CEST 2014


Cecil Westerhof <Cecil <at> decebal.nl> writes:

> > OK, what is then the way to get the devices in 
> > Linux?

$ ffmpeg -formats
lists the demuxers, the muxers, the input and the 
output devices.

> At the moment I use the following:
>     command='
>     ffmpeg -y
>            -async 1
>            -f alsa

Or do you mean "how to list alsa devices"?
$ aplay -l
lists the alsa output devices
$ arecord -l
lists the alsa input devices.

There is of course a semantic difference between the 
FFmpeg devices (for example "alsa") and the alsa 
devices (like "card 1" "device 7" which translates 
to "hw:1,7" in FFmpeg's alsa notation).

Carl Eugen



More information about the ffmpeg-user mailing list