[FFmpeg-user] Decombing via screening - 'tblend' bug (?)

pdr0 pdr0 at shaw.ca
Thu Apr 16 02:13:28 EEST 2020


ffmpeg -i IN -filter_complex 

outputs 598 frames. 'blend' outputs as expected.


ffmpeg -i IN -filter_complex 

outputs 716 frames. 'tblend' (documented in the same article) outputs extra

Now, does that look consistent to you?

But of course, since I can't read, and I'm always wrong...


You would expect 719 frame output if you started with a 240 frame, 23.976p

tblend changes the frame count by -1 . Default mode doesn't appear to do
anything except drop the original frame zero. When you use all_mode=average,
it blends adjacent frames.  The new frame zero becomes 50/50 mix of (old
frame 0,1). New frame one becomes a 50/50 mix of (old frame 1,2).  You can
test the filter by itself to verify this

When you separate fields, you have 2 times the number of original frames. 
If you resize them to full height and treat them as frames, you still have 2
times the number of frames on that selection set

If you started with a 240 frame clip , you should end up with a 600 frame
clip after that telecine filter only with those settings. 

If you take every 5th frame from the telecine output ; 600/5 =120 .
Separating fields give you 120*2 =240. Applying tblend=all_mode=average
after gives you 240-1=239 frames. This is [D] . 

[C] is the other frame selection set; 600-120=480

Interleaving selection [C] with [D] should give you (600-120) + (240-1) =

The 716 might be from interleave dropping frames at the end when it hangs. 
Expect it to hang because there is no end-of-stream signal when used with


Sent from: http://www.ffmpeg-archive.org/

More information about the ffmpeg-user mailing list