-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请问,视频的转码参数在那个文件 #2
Comments
代码在 // 开始转码
startCommand() {
// 基于fluentFFmpeg的转码
if (this.activeTab === "video") {
if (this.video === "") {
this.msg("视频路径为空", "warning");
return;
}
this.fluentFFmpeg(
ffmpegBinary(this.video)
.videoCodec(this.decoding)
.videoBitrate(this.bit_rate) // 改变视频的比特率(提高或者减少就能改变视频质量和大小)
.toFormat("mp4"),
".mp4"
);
} 默认我是通过调整视频的比特率改变视频质量和大小的( |
其实使用ffmpeg 的x264 可以使用 ffmpeg -i $di/$mz/$ss -b:v 3000k -x264opts crf=20:keyint=25:ref=1:vbv-bufsize=20000:vbv-maxrate=4000 -ac 2 -ar 44100 -b:a 192k /data/media-ok/$sj/$mz/$mz".mp4" |
@rookie-z 谢谢,有空我试下 |
你是用的参数,利用Gpu来转码,我尝试过许多参数都不行,或者是还需要什么其他的东西,才能利用gpu转码 |
@rookie-z 默认是我调用intel的内置GPU进行转码的,其它CPU由于没有相关硬件暂时无法测试,请问你是什么CPU?如果你想自定义硬件加速请参考我文档第一条,里面有讲是如何开启硬件加速的 |
英伟达,使用很多方法都不行,已经使用了你文档里面的,但是没有效果 |
@rookie-z 我试过用自己的A卡开启硬件加速,完全没问题,或者等等我进行更多测试,完善下代码,手上硬件有限暂时无法做更多测试 |
你已经实现了再windows下,ffmpeg 内嵌字幕的方法吗? |
@rookie-z 这个功能没实现,理论上是可以支持的,现在主要任务是把基础功能做好,然后在扩展新功能😏 |
请问,视频的转码参数在那个文件,我想根据需要来更改视频的质量的大小,让用户输入 ffmpeg 命令的形式执行转码操作的这个功能,我没有找到如何使用
The text was updated successfully, but these errors were encountered: