FFMPEG – Convert a video to a timelapse

actionscript-3ffmpegvideo conversion

I'm using ffmpeg in flash builder (Action script 3) to convert a video to a time lapse of the video. I've worked out how to use setpts to do this, but the resulting output file is the same length as the input (with just the last frame displayed after the time lapse), I want the duration to be changed based on the settings passed to ffmpeg.

I'm trying the below through the command line first:

ffmpeg -i input.mp4 -filter:v "setpts=0.5*PTS" output.mp4

Any help would be greatly appreciated!

Best Answer

Problem solved. I wasn't removing the audio, so presumably it was playing the, near empty, audio file for the full time of the video.

ffmpeg -i input.mp4 -filter:v "setpts=0.5*PTS" -an output.mp4

-an removes the audio from the video.

Related Question