为什么看起来FFMPEG限制了编码速度

发布于 2025-01-23 04:56:07 字数 447 浏览 1 评论 0原文

目标

我正在尝试以最大速度创建较低的分辨率视频,因此我使用CUDA来做

我的命令:

ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -extra_hw_frames 10 -i input.mp4 -vf scale_cuda=-2:720 -c:a copy -c:v h264_nvenc -preset fast -b:v 5M output.mp4

问题

该命令在GTX 1650上达到33倍的速度,我可以't使它变得更快,所以我问了我的朋友使用RTX 3070(具有更多的CUDA核心),而最大速度是相同的33X

问题

FFMPEG实际上限制了编码速度?并存在使它变得更快的方法?

Objective

I'm trying to create lower resolutions videos with the max possible speed, so I'm using cuda to do it

My command:

ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -extra_hw_frames 10 -i input.mp4 -vf scale_cuda=-2:720 -c:a copy -c:v h264_nvenc -preset fast -b:v 5M output.mp4

Problem

This command reached a speed of 33x on a GTX 1650 and I couldn't make it go faster, so I asked my friend with a RTX 3070 (which has much more CUDA cores) and the max speed was the same 33x

Question

Is FFmpeg actually limiting the encode speed? And exist a way to make it go faster?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文