无损ffmpeg转换/编码 [英] Lossless ffmpeg conversion/encoding
问题描述
我正在寻找转换视频时最好的质量。
I'm looking for the best in quality when converting videos.
我只想使用无损的音频和视频编码器以及一个好的容器。
I only want to use lossless audio and video encoders and a good container.
如何为ffmpeg启用无损x264 vcodec?
How do I enable lossless x264 vcodec for ffmpeg?
我当前使用 ffmpeg -i inputvideo -s 1280x720 -ar 48000-线程4 -vcodec libx264 -acodec复制-dsur_mode 2 -ac 6 outputvideo720p.mkv
I不确定是否可以将flac用于编解码器,因为如果它切换到16位而不是24位,我不想使用质量
I plan on using flac for the acodec by am unsure because I don't want to use quality if it switches to 16-bit instead of 24-bit
推荐答案
我认为您可以以无损方式使用x264。如此处和此处将以下标志用于ffmpeg:
You can use x264 in lossless manner I think. As in here and here use these flags for ffmpeg:
ffmpeg -i input.avi -c:v libx264 -preset veryslow -qp 0 output.mkv
如果无法加载libx264,请删除ffmpeg并从启用了x264的源安装。 此处是方法。
In case you couldn't load libx264, remove ffmpeg and install from source with x264 enabled. Here is how to.
这篇关于无损ffmpeg转换/编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!