Lossless conversion / coding ffmpeg

I am looking for the best quality when converting video.

I want to use lossless audio and video encoders and a good container.

How to enable lossless x264 vcodec for ffmpeg?

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

I plan to use flac for acodec uncertainly because I do not want to use quality if it switches to 16-bit rather than 24-bit

+6
source share
1 answer

You can use x264 without loss, I think. Like here, here and here use these flags for ffmpeg:

 ffmpeg -i input.avi -c:v libx264 -preset veryslow -qp 0 output.mkv 

If you were unable to download libx264, uninstall ffmpeg and install from source with x264 enabled. Here's how to do it.

+2
source

Source: https://habr.com/ru/post/921630/


All Articles