fieldmatch+decimate duplicate frames with yuv
|Reported by:||nullb||Owned by:|
|Blocking:||Reproduced by developer:||yes|
|Analyzed by developer:||no|
Summary of the bug:
FFMPEG cannot currently fieldmatch and decimate a yuv input correctly. Resulting in duplicate frames from either mismatched fields or a failure to apply a proper decimate pattern.
The following AVS script using the same source which I've attached for your convenience does produce a correct result without duplicate frames, as fieldmatch+decimate are meant to be based on TIVTC I was expecting the same fault but the AVS script succeeds.
LoadPlugin("rawsource.dll") LoadPlugin("TIVTC.dll") RawSource("bugged.yuv", 1920, 1080, "I420").AssumeFPS("ntsc_video").AssumeTFF() TFM().TDecimate()
Source in yuv format:
How to reproduce:
% ffmpeg -pix_fmt yuv420p -s 1920x1080 -r 30000/1001 -i bugged.yuv -vf "setfield=mode=tff,fieldmatch,decimate" test.mkv You will find duplicate frames on frames 2,3 - The first frame is also incorrect as you'll see in comparison to AVS. I have only attached a small sample as yuv frames are obviously quite large but on the complete yuv dump multiple duplicate frames appear. It still happens even with the use of a stronger set of filter parameters e.g: fieldmatch=order=tff:combmatch=full,yadif=deint=interlaced,decimate Bug is present on the git-master and all versions of ffmpeg since fieldmatch+decimate was added, unfortunately I'm not familiar enough with the avfilter to create a solution, hopefully somebody here can.
Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.
Change History (9)
comment:1 by , 7 years ago
|Keywords:||pullup added; decimate duplicate frames bug removed|
|Priority:||critical → normal|