[Ffmpeg-cvslog] Re: ffmpeg-cvslog Digest, Vol 20, Issue 23

Måns Rullgård mru
Thu Nov 9 15:06:19 CET 2006


Steve Lhomme said:
>> >>> It can take very little code to actually handle basic matroska files,
>> >>> once you have the EBML layer working. (MOV and AVI hide this code in
>> >>> riff.c in lavf).
>> >> The rather large size of all known matroska demuxers seems to
>> >> contradict that statement.
>> >
>> > Can you give examples instead of just waving things in the air ?
>>
>> Sure:
>>
>> $ cd ~/src/tcvp/src/demuxer
>> $ wc -l avi/*.c
>> 1094 avi/avi.c
>>
>> $ wc -l matroska/*.c
>>   285 matroska/ebml.c
>>  1269 matroska/matroska.c
>>  1554 total
>>
>> $ wc -l mpeg/mpegps.c
>> 697 mpeg/mpegps.c
>>
>> $ wc -l mpeg/mpegts.c
>> 842 mpeg/mpegts.c
>>
>> $ wc -l ogg/*.c
>>    66 ogg/flac.c
>>   603 ogg/oggread.c
>>   162 ogg/ogm.c
>>   111 ogg/theora.c
>>   146 ogg/vorbis.c
>>  1088 total
>>
>> $ cd ~/src/ffmpeg/libavformat
>> $ wc -l avidec.c gxf.c matroska.c mov.c mpeg.c mpegts.c mxf.c
>>    984 avidec.c
>>    516 gxf.c
>>   2720 matroska.c
>>   1794 mov.c
>>   1824 mpeg.c      # includes muxer
>>   1527 mpegts.c
>>   1078 mxf.c
>
> Again, you're comparing pears and apples. None of these formats allow the amount
> of stuff matroska does. Either by design or by lack of standard way to do it.

Ah, but these implementations only support the basic stuff.  The functionality
of all those demuxers is more or less the same.

-- 
M?ns Rullg?rd
mru at inprovide.com




More information about the ffmpeg-cvslog mailing list