[FFmpeg-devel] Bugreport: mpegts-demuxer gives wrong pts/dts with avchd files

Thorsten Jordan tjordan
Thu Feb 28 16:34:02 CET 2008

Thorsten Jordan schrieb:
> Thorsten Jordan schrieb:
>> M?ns Rullg?rd schrieb:
>>> Thorsten Jordan <tjordan at macrosystem.de> writes:
>>>> Hello,
>>>> i just stumbled over misbehvaiour of the mpegts-demuxer of ffmpeg. I
>>> [...]
> more details after more debugging:
> So it seems that if parsers give fields instead of frames, here is
> something fundamentally broken in libavformat/utils.c/av_read_frame.
> This should be a problem for mpeg2 too (and maybe other formats).

checking SVN it seems revision 12156 brought a solution for mpeg2, but
it was reverted. There the parser context was extended to remember field
parity. The h264 parser would have to be extended in a similar way, that
means it would need to parse h264 slice headers together with all the
golomb stuff etc.
And of course rev. 12156 would have to be kept, if it works. These two
changes should fix the AVCHD parsing.

Michael, why did you revert it? Couldn't the current utils.c a problem
for mpeg2 too?

Regards, Thorsten

More information about the ffmpeg-devel mailing list