Lossless ffmpeg conversion/encoding

落爺英雄遲暮 提交于 2020-08-04 05:14:12

问题


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.

How do I enable lossless x264 vcodec for ffmpeg?

I currently use ffmpeg -i "inputvideo" -s 1280x720 -ar 48000 -threads 4 -vcodec libx264 -acodec copy -dsur_mode 2 -ac 6 "outputvideo720p.mkv"

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


回答1:


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

In case you couldn't load libx264, remove ffmpeg and install from source with x264 enabled. Here is how to.



来源:https://stackoverflow.com/questions/11713882/lossless-ffmpeg-conversion-encoding

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!