fluent-ffmpeg / node-fluent-ffmpeg

A fluent API to FFMPEG (http://www.ffmpeg.org)
MIT License
7.64k stars 874 forks source link

How do I speed up the output video #1168

Open mikron123 opened 2 years ago

mikron123 commented 2 years ago

I need to speed up the output video to be twice as fast as the input one.

.videoSpeed(2) didn't seem to work (error)

Any other method I'm missing?

laggingreflex commented 2 years ago

I'm not aware of any videoSpeed method. The usual way is setpts filter

.videoFilters('setpts=PTS/2')