自 v4.0 起可用
🌐 available since v4.0
为了在不直接安装 ffmpeg 的情况下使用它,Remotion 通过 npx remotion ffmpeg 提供它。
🌐 In order to use ffmpeg without having to directly install it, Remotion provides it via npx remotion ffmpeg.
请注意,为了保持二进制文件的体积较小,FFmpeg 二进制文件只支持 Remotion 本身支持的编解码器:H.264、H.265、VP8、VP9 和 ProRes。使用的是 FFmpeg 7.1 版本分支的二进制文件。
🌐 Note that in order to keep the binary size small, the FFmpeg binary only understand the codecs that Remotion itself supports: H.264, H.265, VP8, VP9 and ProRes. A binary from the 7.1 release line of FFmpeg is used.
示例
🌐 Example
将视频文件转换为音频文件
🌐 Convert a video file to an audio file
npx remotion ffmpeg -i input.mp4 output.mp3要了解更多关于 FFmpeg 的信息,请访问他们的文档。
🌐 To find out more about FFmpeg, visit their docs.
另请参阅
🌐 See also