[Ffmpeg-devel] PTS / DTS with XViD

Jani Boutellier bow
Tue Jul 18 09:05:48 CEST 2006


Are you sure?

Both of these sites indicate that there should be B-frame support:
http://www.divxland.org/container_formats.php
http://en.wikipedia.org/wiki/Comparison_of_container_formats

and if I play the ogm-clips that contain B-frames with TCPMP it looks 
fine. VLC media player shows the clip also.

Loren Merritt wrote:
> 
> OGM doesn't know anything about B-frames (it has all the same 
> limitations as AVI in that regard). And all containers I've ever heard 
> of store frames in decoding order.
> 
> --Loren Merritt
 >
 >
> On Mon, 17 Jul 2006, Jani Boutellier wrote:
>> Hi,
>> I'm using ffmpeg's libavformat to read a XViD stream that is wrapped 
>> in the OGM container. It works fine as long as I do not use B-Frames 
>> in XVid.
>>
>> When I use B-frames, I assume that I should read the PTS / DTS 
>> -indexes from the AVPacket structure to get the correct frame order 
>> for decoding, right?
>>
>> Well, PTS ans DTS both show just the ascending index numbers of the 
>> frames read from the bitstream, giving no hint of the correct frame 
>> decoding order -- and the video gets messed up.
>>
>> Is there another place where I should read the PTS and DTS from or 
>> what is the correct procedure anyway?
>>
>> BTW: I do not use libavcodec to decompress XVid frames, I just want 
>> read the frame bitstream from the OGM file with FFMPEG.
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel




More information about the ffmpeg-devel mailing list