[FFmpeg-devel] [PATCH 1/5] lavc: add a table of all codecs names

Nicolas George nicolas.george at normalesup.org
Sat Aug 20 12:02:23 CEST 2011


Le tridi 3 fructidor, an CCXIX, Michael Niedermayer a écrit :
> i still think this is overkill but if you want to maintain this,
> it LGTM and thanks

It was not just a whim: I have thought it was necessary for a long time. The
recent discussion only hurried me working on it.

Here is an updated version of patch #2, using Stefano's
av_get_media_type_string to further simplify thing and printing the four-cc
if it exists. It changes slightly the output when the codec is known:

Stream #0.0: Video: mpeg4 (Advanced Simple Profile), yuv420p, 624x352 [PAR 1:...
Stream #1.0: Video: mpeg4 (Advanced Simple Profile), yuv420p, 352x288 [PAR 1:...

becomes:

Stream #0.0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv4...
Stream #1.0: Video: mpeg4 (Advanced Simple Profile) (FMP4 / 0x34504D46), yuv4...
                                                    ^^^^^^^^^^^^^^^^^^^

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-lavc-use-av_get_media_type_string-and-avcodec_get_na.patch
Type: text/x-diff
Size: 4195 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110820/29cf5b00/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110820/29cf5b00/attachment.asc>


More information about the ffmpeg-devel mailing list