vhs icon indicating copy to clipboard operation
vhs copied to clipboard

Support rendering offset

Open muesli opened this issue 3 years ago • 5 comments

Support starting the rendering a few seconds into the recording, then looping around from the end to the beginning.

The idea behind this is that it generates a more reasonable thumbnail when sharing the gif on various platforms. The viewer won't typically notice this if the output is running as a continuous loop.

muesli avatar Oct 13 '22 02:10 muesli

Proposed syntax:

# Take the first 10% of the video and place it after the end.
Set LoopOffset 10%
# Take the first 10 frames and place them at the end.
# The first frame of the video will be the 11th frame.
Set LoopOffset 10

maaslalani avatar Oct 15 '22 01:10 maaslalani

Sounds great!

muesli avatar Oct 15 '22 05:10 muesli

@maaslalani We can use the -start_number option to set the starting frame in ffmpeg image2 and move the frames which are before it to end of the sequence by renaming their file names.

image

I would like to take a crack at this if you agree.

griimick avatar Oct 30 '22 18:10 griimick

@griimick Sounds perfect to me!

maaslalani avatar Oct 30 '22 18:10 maaslalani

To start we can just do # of frames, if that's easier for you!

maaslalani avatar Oct 30 '22 18:10 maaslalani