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

Edit
Report