#10106 closed defect (wontfix)

Missing frames in shuffleframes filter

Reported by: nicol Owned by:
Priority: normal Component: avfilter
Version: git-master Keywords: shuffleframes
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug: When I reorder the telecine source with the separatefields and shuffleframes filters, and then restore it with the weave filter, some frames are missing. After checking, some of the end frames are not output without reordering with shuffleframes.
How to reproduce:

Make a telecine movie from 0 to 242. 242 is missing half of the field.
ffmpeg -f lavfi -i 
color=d=10.1:r=24000/1001,drawtext=fontfile=C\\://WINDOWS/Fonts/msgothic.ttc:text='%{n}':fontcolor=yellow:x=(w-tw)/2:y=(h-th)/2:fontsize=96,telecine telecine.mp4

Detelecine with shuffleframes filter only goes up to 239, and the complete frames, 240 and 241, are missing.
ffmpeg -v 9 -loglevel 99 -i telecine.mp4 -vf "setparams=tff,separatefields,shuffleframes=0 1 2 3 4 3 6 5 8 9,weave" shuffleframes_weave.mp4 -y

The same without replacing with shuffleframes as well.
ffmpeg -i telecine.mp4 -vf "setparams=tff,separatefields,shuffleframes=0 1 2 3 4 5 6 7 8 9,weave" shuffleframes_weave2.mp4

If you remove the weave filter, you only get up to 239.
ffmpeg -i telecine.mp4 -vf "setparams=tff,separatefields,shuffleframes=0 1 2 3 4 5 6 7 8 9" shuffleframes.mp4

I have no problem until the separatefields filter.
ffmpeg -i telecine.mp4 -vf "setparams=tff,separatefields" separatefields.mp4

ffmpeg version N-109420-g262e7439c6-20221214 Copyright (c) 2000-2022 the FFmpeg developers
built on ...

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.

Attachments (1)

log.txt (191.2 KB ) - added by nicol 17 months ago.

Download all attachments as: .zip

Change History (4)

by nicol, 17 months ago

Attachment: log.txt added

comment:1 by Elon Musk, 17 months ago

You can not shuffle frames if there is no multiple of requested frames at first place.

comment:2 by nicol, 17 months ago

Indeed, the shuffleframes filter specifies 10 frames, so the output is 600 frames, which is a multiple of 10 frames.

comment:3 by Elon Musk, 17 months ago

Resolution: wontfix
Status: newclosed

Thanks for confirming this, i see no better way to handle this.

Note: See TracTickets for help on using tickets.