简体   繁体   中英

Using fluent-ffmpeg with NodeJS to speed up converted video

I'm using require('fluent-ffmpeg') to convert a server side video. The only problem is that the input video is slowed down X2 (30fps, contains double frames) so I need the output video to be sped up X2.

The videoSpeed parameter doesn't seem to work. The inputFPS also didn't work (thought about giving it the value 60)

How do I speed up the output video?

Thanks

Found it under video filters:

ffmpeg('/path/to/file.avi').videoFilters('setpts=0.5*PTS')

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM