1 Feb 2009 01:04
Re: AVCHD/H.264 decoder: further development/corrections
Ivan Schreter <schreter <at> gmx.net>
2009-02-01 00:04:34 GMT
2009-02-01 00:04:34 GMT
Michael Niedermayer wrote: > On Sun, Jan 25, 2009 at 08:08:06PM +0100, Ivan Schreter wrote: > [...] > >> Although the decoder itself takes this into account, the interface in >> libavformat doesn't. Thus, currently only video having full frames per >> packet decodes really correctly (and this also only with not-yet-applied >> patch concerning frame types). Reason: av_read_frame() doesn't return >> whole frames, although it is documented so. >> > > "decoding" of fields and even field/frame mixes works perfectly, and bitexact > you can try the reference bitstreams ... > what doesnt work is the timestamps and these cause the user apps o drop and > duplicate "randomly" > That's what I said. Decoder as such works correctly. > >> *Alternative solution:* Return field packet from h264_parse() >> immediately, but somehow tell libavformat that the packet does not >> represent a full frame and second field has to be read as well. Read it >> in libavformat, extending the existing packet. Thus, av_read_frame() >> returns then full frame. >> > > you might want to look at > svn di -r12162:12161 > I will. But the problem is, even if av_read_frame() returns proper(Continue reading)
RSS Feed