Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ffmpeg - convert image sequence to video with reversed order

Tags:

ffmpeg

Looking at the docs, it is not apparent to me whether ffmpeg would allow me to convert an image sequence to a video in reverse order, for example using this sequence:

frame-1000.jpg
frame-999.jpg
frame-998.jpg
...
frame-1.jpg

Is it possible to give a "step direction" for the frame indices?

like image 514
0__ Avatar asked Dec 01 '22 15:12

0__


1 Answers

There is a reverse video filter, so something like

ffmpeg -i frame-%d.jpg -vf reverse reversed.mp4

would work also.

like image 63
DJ Quardaboff Avatar answered Dec 18 '22 10:12

DJ Quardaboff