FFmpeg - Encode AVC: Difference between revisions

From PiRho Knowledgebase
Jump to navigationJump to search
Created page with "Use this rate control mode if you want to keep the best quality and care less about the file size. This is the recommended rate control mode for most uses.<br/> This method allows the encoder to attempt to achieve a certain output quality for the whole file when output file size is of less importance. The downside is that you can't tell it to get a specific filesize or not go over a specific size or bitrate, which means that this method is not recommended for encoding vi..."
 
m Knowledgebaseadmin moved page FFmpeg - AVC to FFmpeg - Encode AVC
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[Category:FFmpeg]]
[[Category:AVC]]
Use this rate control mode if you want to keep the best quality and care less about the file size. This is the recommended rate control mode for most uses.<br/>
Use this rate control mode if you want to keep the best quality and care less about the file size. This is the recommended rate control mode for most uses.<br/>
This method allows the encoder to attempt to achieve a certain output quality for the whole file when output file size is of less importance. The downside is that you can't tell it to get a specific filesize or not go over a specific size or bitrate, which means that this method is not recommended for encoding videos for streaming.<br/>
This method allows the encoder to attempt to achieve a certain output quality for the whole file when output file size is of less importance. The downside is that you can't tell it to get a specific filesize or not go over a specific size or bitrate, which means that this method is not recommended for encoding videos for streaming.<br/>

Latest revision as of 14:18, 6 March 2025

Use this rate control mode if you want to keep the best quality and care less about the file size. This is the recommended rate control mode for most uses.
This method allows the encoder to attempt to achieve a certain output quality for the whole file when output file size is of less importance. The downside is that you can't tell it to get a specific filesize or not go over a specific size or bitrate, which means that this method is not recommended for encoding videos for streaming.
The range of the CRF scale is 0–51, where 0 is lossless. Consider 17 or 18 to be visually lossless or nearly so; it should look the same or nearly the same as the input but it isn't technically lossless.
A preset is a collection of options that will provide a certain encoding speed to compression ratio. A slower preset will provide better compression (compression is quality per filesize).

ffmpeg -i <input.file> -c:v libx264 -crf 23 -preset veryslow <output.file>

Reference: [FFmpeg: H.264 Video Encoding Guide]