ffmpeg-things icon indicating copy to clipboard operation
ffmpeg-things copied to clipboard

Inverse telecine: Frame #20 at 1.23394 is still interlaced

Open camjac251 opened this issue 7 years ago • 4 comments

I am getting that error mentioned in the readme for The reverse telecine command

ffmpeg does a pretty good job of IVTC via the filterchain -vf "fieldmatch,yadif,decimate", but results also depend on the encoding speed, the qualities of the source, etc.
In particular, at high encoding speeds it's reasonably common for some frames not to be successfully deinterlaced.
⤷ In this case, ffmpeg prints a message like [Parsed_fieldmatch_0 @ 0x34d63e0] Frame #20 at 1.23394 is still interlaced.

Is there possibly a way to correct the speed of the encode to allow it to accurately deinterlace all of the frames?

camjac251 avatar Jul 13 '18 00:07 camjac251

Hi there! Sorry for the belated response, I was on holiday.

What encoding settings are you using? Assuming you're encoding to H.264, you can change the value of the preset flag to the slowest available, veryslow. e.g.:

ffmpeg -i input.mov \
       -c:v libx264 \
       -vf "fieldmatch,yadif,decimate" \
       -preset veryslow \
       -crf 18 \
       output.mp4

Maybe you already tried it, but if not, let me know if that makes a difference.

kfrn avatar Jul 23 '18 06:07 kfrn

I am trying a different source now and it seems to not give the error anymore, but I do get audio that is out of sync with the video for some reason. I haven't been able to figure out how to fix it.

camjac251 avatar Jul 23 '18 21:07 camjac251

Ah - I don't think I've encountered that myself, but I can imagine how sync issues could occur. How out of sync is your output file?

kfrn avatar Jul 25 '18 01:07 kfrn