如何使用 ffmpeg 高质量将 flv 转换为 avi

发布于 2024-11-15 05:00:44 字数 130 浏览 7 评论 0原文

需要将 flv 文件转换为 avi 或 mov,尝试使用 ffmpeg,但输出质量很糟糕。如何使视频输出与源的质量相同?

我以为 ffmpeg -i name.flv -s 320x... name.avi 可以做到,但效果不好。

Need to convert flv files to avi or mov, trying out ffmpeg but the output quality is terrible. How can I get the video output to be on par quality with the source?

I thought ffmpeg -i name.flv -s 320x... name.avi would do it, but no good.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

朱染 2024-11-22 05:00:44

这是我在 ffmpeg 项目中使用的命令,质量应该足够好。如果没有,请尝试增加比特率(-b 参数):

ffmpeg -i input.flv -ar 22050 -b 2048k output.avi

That's the command I was using for a ffmpeg project, the quality should be good enough. If not, try increasing the bitrate (-b argument):

ffmpeg -i input.flv -ar 22050 -b 2048k output.avi
多情出卖 2024-11-22 05:00:44

这是一个很好的解决方案

ffmpeg -async 1 -i inputVideo.flv -f avi -b 700k -qscale 0 -ab 160k -ar 44100 outputVideo.avi

或使用以下一个

ffmpeg -loglevel 0 -async 1 -i inputVideo.flv -f avi -b 700k -sameq -ab 160k -ar 44100 outputVideo.avi

This is a Good solutions

ffmpeg -async 1 -i inputVideo.flv -f avi -b 700k -qscale 0 -ab 160k -ar 44100 outputVideo.avi

Or Used following one

ffmpeg -loglevel 0 -async 1 -i inputVideo.flv -f avi -b 700k -sameq -ab 160k -ar 44100 outputVideo.avi
‖放下 2024-11-22 05:00:44

在互联网上还找到了另一种解决方案,效果非常好!

只需使用相同的质量参数-sameq

ffmpeg.exe -i video.flv -sameq outputVideo.avi

实际上,sameq 命令并不是相同的质量。
为了成功地做到这一点,必须应用这一点:
如果您有多个文件要做,这里是完整的命令

for %i in (*.flv) do ffmpeg -i "%i" -q:a 0 -q:v 0 "%i".avi

There is also another solution found on the internet and works like charm!

Just use same quality parameter -sameq.

ffmpeg.exe -i video.flv -sameq outputVideo.avi

Actually the command sameq is not same quality.
In order to successfully do it this one must be applied:
in case you have multiple files to do here is the complete command

for %i in (*.flv) do ffmpeg -i "%i" -q:a 0 -q:v 0 "%i".avi
想你的星星会说话 2024-11-22 05:00:44

要保持质量,请使用 -qscale 0

例如 ffmpeg.exe -i InputVid.avi -qscale 0 OutputVid.mp4

我将 1.64 GB avi 视频转换为 4.35 MB mp4 文件。

To preserve quality use -qscale 0.

For example ffmpeg.exe -i InputVid.avi -qscale 0 OutputVid.mp4

I converted my 1.64 GB avi video to 4.35 MB mp4 file.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文