Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: Rilo on September 15, 2016, 01:56:24 PM

Title: Video as image series
Post by: Rilo on September 15, 2016, 01:56:24 PM
Hello,

in the version 2.5 it was possible to save a hole video as an image series. It is not possible in the current version. I miss this function. Can anybody help me?

Thank you very much.
Title: Re: Video as image series
Post by: eumagga0x2a on September 15, 2016, 03:24:46 PM
You don't need Avidemux just for that.

ffmpeg -i source-video-file -vf fps=1 /path/to/a/folder/image-%04d.jpg

will save an JPEG image for every second of the source video starting with /path/to/a/folder/image-0001.jpg (if the count exceeds 9999 it will start overwriting the last file, increment the digit before d then). fps=25 will save 25 images per second and so on.

If you have a lot of disk space and prefer lossless, change .jpg to .png.

If you add -ss hh:mm:ss to parameters, the operation will start at an offset of hh:mm:ss from the start of the video (to determine the offset, you probably do need Avidemux ;)).