ffmpeg | branch: master | Zhao Zhili <zhiliz...@tencent.com> | Tue Jul 16 
20:59:53 2024 +0800| [f4e0f4023010c73c2c318520915e4b873f5c66f2] | committer: 
Zhao Zhili

avcodec/videotoolboxenc: Set default bitrate to zero

Zero is auto mode. From the doc of videotoolbox:

   The default bit rate is zero, which indicates that the video
   encoder should determine the size of compressed data.

Before the patch, the default bitrate is 200000 setting by
avcodec/options_table, which doesn't work for most of cases.

Signed-off-by: Zhao Zhili <zhiliz...@tencent.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f4e0f4023010c73c2c318520915e4b873f5c66f2
---

 libavcodec/videotoolboxenc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c
index 35628341f6..747681fd05 100644
--- a/libavcodec/videotoolboxenc.c
+++ b/libavcodec/videotoolboxenc.c
@@ -2933,6 +2933,7 @@ static const AVOption h264_options[] = {
 };
 
 static const FFCodecDefault vt_defaults[] = {
+        {"b",    "0"},
         {"qmin", "-1"},
         {"qmax", "-1"},
         {NULL},

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to