Linux 如何使用 ffmpeg 高质量将 flv 转换为 avi
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6321641/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to convert flv to avi using ffmpeg high quality
提问by Naota
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?
需要将 flv 文件转换为 avi 或 mov,尝试使用 ffmpeg 但输出质量很差。如何使视频输出与源质量相当?
I thought ffmpeg -i name.flv -s 320x... name.avi would do it, but no good.
我认为 ffmpeg -i name.flv -s 320x... name.avi 可以做到,但没有好处。
回答by laurent
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 项目的命令,质量应该足够好。如果没有,请尝试增加比特率(-b
参数):
ffmpeg -i input.flv -ar 22050 -b 2048k output.avi
回答by Semertzidis Aris
There is also another solution found on the internet and works like charm!
在互联网上还找到了另一种解决方案,并且效果很好!
Just use same quality parameter -sameq
.
只需使用相同的质量参数-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
实际上命令 sameq 是不一样的质量。为了成功地做到这一点,必须应用这个:如果你有多个文件要做,这里是完整的命令
for %i in (*.flv) do ffmpeg -i "%i" -q:a 0 -q:v 0 "%i".avi
回答by Elby
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
回答by Saad Anees
To preserve quality use -qscale 0
.
为了保持质量使用-qscale 0
。
For example ffmpeg.exe -i InputVid.avi -qscale 0 OutputVid.mp4
例如 ffmpeg.exe -i InputVid.avi -qscale 0 OutputVid.mp4
I converted my 1.64 GB avi video to 4.35 MB mp4 file.
我将 1.64 GB avi 视频转换为 4.35 MB mp4 文件。