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...
Thanks.
P.S. http://mewiki.project357.com/wiki/X264_Settings#qp
+ 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.
-
You inflict even more damage by filtering with lossy compressed video. For cleanup you decompress and save with a lossless codec (or uncompressed), then re-encode when you're finished. You don't have to keep the lossless work files, just keep the final output.
Last edited by sanlyn; 25th Mar 2014 at 02:14.
Similar Threads
-
Is the "lossless" FFV1 codec a fake? (IMPORTANT)
By Stears555 in forum Video ConversionReplies: 7Last Post: 3rd Dec 2012, 07:13 -
libx264 & ffmpeg (0.11.x) understanding quality options -q:v and -b:v
By feelart in forum Video ConversionReplies: 3Last Post: 19th Sep 2012, 09:39 -
x264 MKV to MP4: "WEB OPTIMIZED"? AAC? CRF?
By J81CHAT in forum Video ConversionReplies: 5Last Post: 27th Feb 2012, 16:52 -
how we can implement "VirtualDub" or "FFmpeg" with my C# windows applicati
By dhemittal in forum ProgrammingReplies: 0Last Post: 8th Jun 2010, 07:17 -
"stretching" or "cramming" aspect ratio when I convert .avi to MP4
By Agent Bauer in forum ffmpegX general discussionReplies: 3Last Post: 21st Mar 2010, 10:30