简体   繁体   English

使用 fluent-ffmpeg 和 NodeJS 来加速转换的视频

[英]Using fluent-ffmpeg with NodeJS to speed up converted video

I'm using require('fluent-ffmpeg') to convert a server side video.我正在使用require('fluent-ffmpeg')来转换服务器端视频。 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.唯一的问题是输入视频减慢了 X2(30fps,包含双帧),所以我需要 output 视频加速 X2。

The videoSpeed parameter doesn't seem to work. videoSpeed 参数似乎不起作用。 The inputFPS also didn't work (thought about giving it the value 60) inputFPS 也不起作用(考虑将其值设为 60)

How do I speed up the output video?如何加速 output 视频?

Thanks谢谢

Found it under video filters:在视频过滤器下找到它:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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