[FFmpeg-user] ffmpg -formats or ffmpeg -codecs ?

PyProg PyProg pyprog05 at gmail.com
Sat May 5 13:06:52 CEST 2012


Excuse me in advance for my bad english ...

What is the real difference between the command: ffmpeg -formats and
the command: ffmpeg -codecs ?

In the application I'm developing detection capabilities of FFmpeg is
not good (in which he's capable of transcoding in a particular menu).
I made a Python script detection, one based on: ffmpeg -formats
(Ubuntu 12.04), that is what it returns:

rem_doubles ['m4v', 'raw', 'dnxhd', 'smjpeg', 'null', 'mjpeg',
'cavsvideo', 'vcd', 'EG-2', 'svcd', 'eac3', 'ac3', 'mpeg2video',
'truehd', 'mpeg1video', 'h264', 'h261', 'h263', 'flac', 'RoQ', 'ogg',
'dirac', 'dvd', 'g722', 'flv', 'mlp', 'dts']

diff ['libxvid']

codec_fautif [[7, 'libxvid', 'Xvid (avi)', '--enable-libxvid', 'avi']]

Only libxvid is not detected (the variable diff tells us, the returned
data is in the form of a list).

In either case (using the command: ffmpeg-codecs) is completely
different (tests done on openSUSE 12.1):

rem_doubles ['mjpeg', 'EVSD', 'dvd', 'flv', 'raw', 'libxvid', 'EDraw', 'ES']

diff ['h264', 'svcd', 'vcd', 'ogg']

codec_fautif [[1, 'vcd', 'VCD', '', 'mpg'], [2, 'svcd', 'SVCD', '',
'mpg'], [5, 'ogg', 'Theora (ogg)', '--enable-libtheora', 'ogg'], [8,
'h264', 'H264 (avi)', '--enable-libx264', 'avi']]

Here there is a lot things that are not detected: h264, svcd, vcd,
ogg, here the libxvid is detected.. Again the vaiable diff tells us,
the data are returned as a list.

What do I use the command: ffmpeg-formats or command: ffmpeg-codecs ?

A report with the version of FFmpeg installed on Ubuntu 10.04 (the old
LTS), the command: ffmpeg -codecs does not exist (there is only the
command: ffmpeg -formats).



More information about the ffmpeg-user mailing list