[vlc] Re: Problem playing MPEG-PS files with mpeg4video
Måns Rullgård
mru at inprovide.com
Wed Jan 26 07:45:05 CET 2005
Nico Sabbi <nsabbi at tiscali.it> writes:
> Gildas Bazin wrote:
>
>> Ok, the main problem here is that we don't have access to the frame
>> rate information for this kind of streams so we can't really
>> interpolate the timestamps, thus we rely on each frame having at
>> least a DTS.
>>Do you know if there's a way to find out the frame rate info ?
>
> this is what I implemented for mplayer:
>
> take 3 video frames and store
> - from the vol header the time_resolution
> - from the vop headers the 3 time_increments
>
> calculate the minimun difference between the 3 time_increments, say diff
> fps = timeinc_resolution / diff
>
> This method works also when there are b-frames because they have to be
> in the right order, e.g.
You could also be nice to decoder and store the frame rate in the
PSM. Have you tried whether VLC doing so makes VLC any happier?
--
Måns Rullgård
mru at inprovide.com
--
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html
More information about the vlc
mailing list