ffmpeg:encoding:h265:1-pass_target_bitrate
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ffmpeg:encoding:h265:1-pass_target_bitrate [2023/11/01 12:08] – created peter | ffmpeg:encoding:h265:1-pass_target_bitrate [2023/11/01 12:30] (current) – [ffmpeg - Encoding - h265 - 1-pass target bitrate] peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== ffmpeg - Encoding - h265 - 1-pass target bitrate ====== | ====== ffmpeg - Encoding - h265 - 1-pass target bitrate ====== | ||
- | By setting **-b:v**. | + | A simple one-pass encode that tries to reach the specified bitrate at the end. |
+ | |||
+ | * This will likely lead to the wrong bitrate estimations for the video part. | ||
+ | * It is recommended to use a two-pass encoding mode if a certain target bitrate is required. | ||
+ | |||
+ | By setting **-b: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | <WRAP important> | ||
+ | **WARNING: | ||
+ | |||
+ | * **-b:v** is bitrate, so 10000 is actually 10 kbps. The setting should probably be 10000k in this case. | ||
+ | |||
+ | </ | ||
---- | ---- | ||
Line 8: | Line 22: | ||
<code bash> | <code bash> | ||
- | ffmpeg -i input -c:v libx265 -b:v 8M -preset fast -c:a aac -b:a 128k output.mp4 | + | ffmpeg -i input.mp4 -c:v libx265 -b:v 8M -b:a 320k output.mkv |
- | ffmpeg -i input -c:v libx265 -b:v 6000 -preset fast -c:a aac -b:a 128k output.mp4 | + | ffmpeg -i input.mp4 -c:v libx265 -b:v 8000k -b:a 320k output.mkv |
</ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE:** | ||
+ | |||
+ | * **-b: | ||
+ | * **-b: | ||
+ | |||
+ | * Abbreviations can be used, like K for kBit/s and M for MBit/s. | ||
+ | </ | ||
+ | |||
ffmpeg/encoding/h265/1-pass_target_bitrate.1698840533.txt.gz · Last modified: 2023/11/01 12:08 by peter