Hi,
After I have finally figured out my MPG and MTS demuxer problems (didn't
notice that a whole bunch of parsers were turned off in config.h), I can
now start to test with more files. I have one MPG here for which the
duration is completely wrong. In ffplay, the problem doesn't show, because
it simply keeps playing. However, my Haiku demuxer plug-in has to report
the stream duration and applications will rely on it.
This is the output from ffplay -stats for the file:
Input #0, mpegvideo, from '/Code/home/media/clips/morphos-on-mac.mpeg':
Duration: 00:00:02.66, bitrate: 104857 kb/s
Stream #0.0: Video: mpeg2video, yuv420p, 640x480 [PAR 1:1 DAR 4:3],
104857 kb/s, 30 tbr, 1200k tbn, 60 tbc
The problem is most likely that it gets the bitrate totally wrong. I've
searched tickets on roundup and came up with two possibly related issues:
<https://roundup.ffmpeg.org/roundup/ffmpeg/issue175>
<https://roundup.ffmpeg.org/roundup/ffmpeg/issue544>
Now I am just curious how common it is to stumble over such files, or if
MPGs usually have correct duration. (I actually don't have much .mpg files
to test with myself.) Between these two bug reports, it sounds a bit as if
the method to detect the duration may have changed. If that's not the case,
at what code would I be looking at to try and fix the problem?
Best regards,
-Stephan
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user