[FFmpeg-devel] [PATCH] libkvazaar: add support for interlaced coding
ari at koivu.la
Fri Jan 29 14:15:16 CET 2016
On Fri, Jan 29, 2016 at 1:33 PM, Hendrik Leppkes <h.leppkes at gmail.com>
> You could of course pack both field-pictures into the same AVPacket,
> but that doesn't yield you proper timestamps for the second, and will
> probably also screw up a bunch of other things later on.
Packing both pictures into the same AVPacket was what I did.
> Did you properly test this on longer video sequences? Either it screws
> up somewhere, or it'll buffer half the fields until EOS, resulting in
> massive memory requirements.
I tried it with mpegts using 600 full-hd frames, and it seemed to work
fine. It does say "cur_dts is invalid (this is harmless if it occurs once
at the start per stream)" twice at the start of the stream, but otherwise
everything seems to work. All frames are there in correct order after
I now tried it mp4, and that does break. The file kind of plays but there
are obviously missing references.If I encode with all-intra the file plays
in media player classic, but not with ffplay.
So I guess this is not ok after all. Is there a filter that turns the frame
into fields within ffmpeg? I can't find one.
More information about the ffmpeg-devel