[FFmpeg-user] repeat a frame

Mark Filipak (ffmpeg) markfilipak at bog.us
Tue Mar 2 19:13:33 EET 2021

On 2021-03-02 11:53, Paul B Mahol wrote:
> On Tue, Mar 2, 2021 at 5:50 PM Mark Filipak (ffmpeg) <markfilipak at bog.us>
> wrote:
>> I've searched the docs one-by-one. I seek a simpler way to repeat a frame.
>> This:
>> split[1][2],[1]setpts=(N+floor(N/4))/FR/TB[3],[2]select=eq(mod(n\,4)\,3),setpts=(N*5+4)/FR/TB[4],[3][4]interleave
>> works, but perhaps there's an easier way that I'm just not seeing.
> What timestamps repeated frame should have?

Hey Paul. Thanks.

'PTS's don't matter. I can manipulate 'TB' & 'PTS's as needed ...The stream is CFR.

If 'shuffleframes' could insert frames, for example

shuffleframes=0 1 2 3 +3

I'd do that, but 'shuffleframes' doesn't have a '+' operator.

I do have a method that works (above). I'm just wondering whether there's a simpler way.


More information about the ffmpeg-user mailing list