View Full Version : Videos Going Back and Forth
jay123210599
10th March 2025, 06:39
How do I edit or adjust videos so they go back and forth like in these gifs I've found?
Gif 1 (https://www.deviantart.com/juanrola/art/Nozomi-Ass-969255783)
Gif 2 (https://www.deviantart.com/lavidademi/art/Keijo-butt-1143059281)
Gif 3 (https://www.deviantart.com/lavidademi/art/Keijo-butt-2-1143059521)
Gif 4 (https://www.deviantart.com/lavidademi/art/Keijo-butt-3-1143059919)
Gif 5 (https://www.deviantart.com/lavidademi/art/Keijo-cute-ass-1146539366)
Example videos to test out:
https://www.mediafire.com/file/y2s66vk9bi3j7bm/example_videos.7z/file
huhn
10th March 2025, 08:23
by using the original scene and add it in reverse to the end with a loop tag.
and are you alright?
Z2697
10th March 2025, 11:28
FFmpeg have a filter called reverse, but be careful it will read all frames into memory
LOL and are you alright?
GeoffreyA
10th March 2025, 12:00
Watch out: example 3 is prone to heavy banding :)
jay123210599
10th March 2025, 12:36
by using the original scene and add it in reverse to the end with a loop tag.
and are you alright?
How do I do that? And yes, I'm fine.
jay123210599
10th March 2025, 12:54
FFmpeg have a filter called reverse, but be careful it will read all frames into memory
LOL and are you alright?
How would that work? Is is a lossless filter? And yes, I'm fine.
huhn
10th March 2025, 15:27
the operation is lossless when a lossless encoder is used.
you also need to drop the last frame or it is displayed twice.
i have never done such a thing i only understand the theory.
so you take a clip save it lossless remove a frame from the start and apply the reserve filter and attach both clips, attach is also lossless in this case all is identical resolution frame rate everything.
there are other ways to do it and i have no clue which is faster without trying it out.
and now you have the clip that is about to be turned into a gif like any other clip.
jay123210599
10th March 2025, 15:46
the operation is lossless when a lossless encoder is used.
you also need to drop the last frame or it is displayed twice.
i have never done such a thing i only understand the theory.
so you take a clip save it lossless remove a frame from the start and apply the reserve filter and attach both clips, attach is also lossless in this case all is identical resolution frame rate everything.
there are other ways to do it and i have no clue which is faster without trying it out.
and now you have the clip that is about to be turned into a gif like any other clip.
What would the command be for the reverse filter? What can I use to reverse my videos?
huhn
10th March 2025, 22:34
ffmpeg -i inputfile -vf reverse outputfile
jay123210599
11th March 2025, 15:24
ffmpeg -i inputfile -vf reverse outputfile
Is the reverse filter a lossless one? Do I reverse the video where a cut a frame from the start?
huhn
11th March 2025, 20:13
if you use an lossless codec yes.
try it out.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.