[FFmpeg-devel] [PATCH] Matroska Muxer

Alexander Strange astrange
Wed Sep 5 19:13:30 CEST 2007


On Sep 5, 2007, at 9:33 AM, Reimar D?ffinger wrote:

> Hello,
> On Wed, Sep 05, 2007 at 03:15:06AM -0400, David Conrad wrote:
> [...]
>> As for using it, pretty much any valid command line that starts with
>> ffmpeg and ends with .mkv should work, e.g. "ffmpeg -i blah.ogg -
>> vcodec mpeg2video -acodec ac3 blah.mkv" It can also be used from
>> mencoder, e.g. "mencoder blah2.avi -ovc lavc -oac faac -of lavf -o
>> blah2.mkv" but it's possible to produce invalid files that way.
>
> Could you give details how and under which circumstances this produces
> invalid files?
>
> Greetings,
> Reimar D?ffinger

It creates native-order H264/MPEG4 streams for -ovc x264 and -ovc  
xvid, but stores avi-style streams.
There's no extradata and all frames have increasing pts even if b- 
frames are on. (like the big warning says, I guess)
Samples are in mplayerhq/incoming under mencoder-mkv.

Also, the container DAR is set wrong; I don't see sample_aspect_ratio  
being set anywhere in muxer_lavf.
I'll try to send a patch for that myself.

Haven't tried -ovc lavc yet.

(that's aside from the normal CFR/a/v sync model brokenness, but - 
ofps 120000:1001 takes care of that pretty well)




More information about the ffmpeg-devel mailing list