[FFmpeg-user] repeat a frame

Mark Filipak (ffmpeg) markfilipak at bog.us
Fri Mar 5 03:28:04 EET 2021


On 2021-03-02 13:31, Carl Eugen Hoyos wrote:
> Am Di., 2. März 2021 um 17:50 Uhr schrieb Mark Filipak (ffmpeg)
> <markfilipak at bog.us>:
>>
>> I've searched the docs one-by-one. I seek a simpler way to repeat a frame.
> 
> Increase the frame rate, either with the fps filter or the ffmpeg option "-r".
> They differ in their greediness and verbosity on the status line.

Thanks, Carl Eugen.

I seek a simple way to repeat a specific frame, not a way to increase fps. Specifically, I need to 
repeat frame #3 in each group of 4 frames: 0 1 2 3 in, 0 1 2 3 3 out. I need it because 
'shuffleframes' can't insert frames.

To reiterate: This works:

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

I seek a simpler way. Is there a simpler way?

Thanks!


More information about the ffmpeg-user mailing list