# HG changeset patch # User Oleksandr Gavenko # Date 1593344986 -10800 # Node ID 0dadee3a3b6318d6bcff52d2e264556cdb2c1baf # Parent 2a62ec5e8506fc3019859be0eb9f59acb4f2b3ff Limiting bit rate. diff -r 2a62ec5e8506 -r 0dadee3a3b63 ffmpeg.rst --- a/ffmpeg.rst Sun Jun 28 14:36:31 2020 +0300 +++ b/ffmpeg.rst Sun Jun 28 14:49:46 2020 +0300 @@ -5,6 +5,18 @@ .. contents:: :local: +Docs +==== + +https://ffmpeg.org/documentation.html + Docs index. +http://ffmpeg.org/ffmpeg-all.html + Common options. +https://ffmpeg.org/faq.html + FAQ. +https://ffmpeg.org/ffmpeg.html + Syntax overview. + Print supported options ======================= @@ -16,5 +28,29 @@ ffmpeg -pix_fmts +Limiting bit rate +================= +``-maxrate`` should be accompanied with ``-bufsize`` option like:: + -maxrate 800k -bufsize 1200k + +otherwise you'll get warning: + +> VBV maxrate specified, but no bufsize, ignored + +``-b:v RATE`` allows to specify average bitrate for video. + +To specify video stream use syntax like:: + + -c:v:0 libx264 -b:v:0 2000k -maxrate:v:0 2200k -bufsize:v:0 3000k + +https://trac.ffmpeg.org/wiki/Limiting%20the%20output%20bitrate + Limiting the output bitrate. +https://trac.ffmpeg.org/wiki/EncodingForStreamingSites + Encoding for streaming sites. + +H.264 +===== + +https://trac.ffmpeg.org/wiki/Encode/H.264