I wish to convert in a single pass videos (often mpeg4 that I will crop) to x264.
How to best achieve this with FFmpeg 1.x ?
Quality encoding x264 : http://ffmpeg.org/trac/ffmpeg/wiki/x264EncodingGuide
Now, if I set -crf 0 even on a cropped video, I see the resulting output larger in Mb than the orginal!!! I have to choose something like -crf 20 to see a compression.Lossless H.264
You can use -qp 0 or -crf 0 to encode a lossless output.
Lossless Example (fastest encoding but not best compression)
ffmpeg -i input -c:v libx264 -preset ultrafast -qp 0 output.mkv
Lossless Example (best compression)
ffmpeg -i input -c:v libx264 -preset veryslow -qp 0 output.mkv
What's a non trial an error method ?
I try with preset slower only, this is good compression, but is it the best near lossless compression???
Or should I use some bitrate specifier such as -b:v 1800kCode:ffmpeg -i input -c:a copy -c:v libx264 -preset slower output.mkv
I'm looking for some -sameq specifier...
+ Reply to Thread
Results 1 to 4 of 4
Lossless output will vastly increase the size of any video that's compressed with a lossy codec. Filtering video requires that the source be decompressed, then filtered. If you then compress with a lossless codec you will get something only a little smaller than a completely uncompressed video.
Last edited by sanlyn; 25th Mar 2014 at 02:14.