[MPlayer-advusers] mencoder cannot handle VFR mkv file and mplayer AVI demuxer cannot handle the reencoded file

Rich Felker dalias at aerifal.cx
Mon Jun 26 06:50:09 CEST 2006


On Sun, Jun 25, 2006 at 09:40:57PM +0200, Dominik 'Rathann' Mierzejewski wrote:
> mphq: incoming/120fps-mkv/[KTKJ][stratos4_advance][01][big][E72C0C1D].mkv
> 
> The file is VFR. Particularly, the end credits are 30000/1001 and the rest
> is 24000/1001. MPlayer reports it as 120000/1001.

Odd, mkv lacks timebase. Why does it have a default frame duration
matching the timebase? I wonder if this file is really valid..

> There seems to be a bug in mencoder concerning this particular MKV file.
> 
> If I tell mencoder to handle audio then it always fails with:
> Pos: 188.6s   4435f (14%) 685.90fps Trem:   0min 170mb  A-V:-0.012 [930:128]
> Too many audio packets in the buffer: (4099 in 7345408 bytes).
> Maybe you are playing a non-interleaved stream/file or the codec failed?
> For AVI files, try to force non-interleaved mode with the -ni option.
> Writing index...
> Writing header...
> ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
> 
> Video stream:  930.404 kbit/s  (116300 B/s)  size: 21932742 bytes  188.587 secs  4435 frames
> 
> Audio stream:  128.000 kbit/s  (16000 B/s)  size: 3025920 bytes  189.120 secs
> 
> even with streamcopy. If I use -nosound, it goes through the whole file fine.
> 
> If I reencode the video stream to 24000/1001 AVI and remux with audio extracted
> with mkvextract (it's AC3), the resulting file doesn't play in sync when using
> MPlayer's AVI demuxer. Audio timestamps grow about 500 times faster than video
> and seeking makes audio restart from the very beginning. If I use -demuxer lavf,
> however, it plays fine and there's no desync.

How do you remux the audio? I've seen a bug like this before... ac3
demuxer or rawaudio with format=ac3?

Rich




More information about the MPlayer-advusers mailing list