Message ID | tencent_FE004D687E7FAEAD6638C9C0B9B6F06A420A@qq.com |
---|---|
State | New |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:612c:40f5:b0:482:c625:d099 with SMTP id lb53csp260024vqb; Tue, 16 Jul 2024 06:00:33 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWHZQVE1y98PBo36EMLfL11IYwuIHIfGtdeQduhYci6BvAFhmVRm+xOfMLiDfdQZhkmmeIoCdlqP7EzxjybfyuzCcjpXk9EsO60Fg== X-Google-Smtp-Source: AGHT+IGtCt9no3ICaGjx4LzqKCwZD9xfDDJ+hJvuoNFqtyYOLhixaIg5G4NqSDlRiHe9ayg5IroB X-Received: by 2002:ac2:4e14:0:b0:52c:d753:2829 with SMTP id 2adb3069b0e04-52edef1dfdcmr1521557e87.19.1721134833467; Tue, 16 Jul 2024 06:00:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721134833; cv=none; d=google.com; s=arc-20160816; b=itdf9P+NdC1MBPR563TeTUOnblMJhaiErIg1eXU/OgD1cilfiJrEbtUqgsD8hZQIGO VdHc9n+6O4MkIi0ylwT/NAC1zHYS0ExgzfyGBnUm3iVZur1yYBi7qX78A+COoNBVNgxS aMFH00BLZUhHdLZ0WvhiRWz7q14wOD8npiQdoMvXImJA93uoS+gRlDRZmC0WaVUdGHDK oVtVy4A6yW8pbzkeOs01vRiUYKjGIAz2UF3iPasFJ3Y1RPAV5kxmI17Ka4/Kz0rgdfyk +kEEA8VlDOX6Xh+ZvL4abfI8hwdfqL6a3RQKgDBBVh7b6SdVsTmR0TZPnnWREKn91osP j1fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:references:in-reply-to:date :to:from:message-id:dkim-signature:delivered-to; bh=hqU4ZfLWSXB73ucVnP9Ti9KttFuxYzpv2s6O9HUP/6s=; fh=HnHYuZ9XgUo86ZRXTLWWmQxhslYEI9B9taZ5X1DLFfc=; b=uQf19SraQ0Ze0AsxFVgnZof9AKGiNlIEfDooQuy6PzJUhXzoDAh4u6KFoIWyodCm4o zATPs66WuxCPAKjUswo7QB0gxu2G6tYnaFt1sTL5UK7eMylh0lEHwlbdo8Ui01E0S4EJ 6bd2Og2xgZIJP0MCNoaNhfGwPZnOc9StBMhlgoOnlAh5eaDGSSddHyubgA0rLOVo6IMm OwynTjO5nNp6lOZVGynbaE3OWuQa1oj1fkHMBnnc2MSlq8FmE98TcB0UXKXvHH0uDDZ/ CIG7QLiy0H4CE4wFsRvaIrBj9wPVXJEXQM2KLijBuAh7QDvW/qYGXR/SNTTHDZUR1CJi xYKA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@foxmail.com header.s=s201512 header.b=Npn1Di76; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=foxmail.com Return-Path: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 2adb3069b0e04-52ed255b11dsi2147779e87.249.2024.07.16.06.00.33; Tue, 16 Jul 2024 06:00:33 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@foxmail.com header.s=s201512 header.b=Npn1Di76; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=foxmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 9C9C368DA28; Tue, 16 Jul 2024 16:00:18 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from out162-62-58-211.mail.qq.com (out162-62-58-211.mail.qq.com [162.62.58.211]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id EE1D068D99D for <ffmpeg-devel@ffmpeg.org>; Tue, 16 Jul 2024 16:00:10 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1721134802; bh=NmkxBI9+iEFBAG0+umLj0JjF4LQGjqXkCtJ2KSnVauE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Npn1Di76VrLOmZNJU40u1wzHhlBPy11HEu+OblVN4AYSx0CPhPd1SWfxT/BrRnZvZ zB2+ZJBMgqYuTI2Eq+ZpwEnDU8h5wcSnWUuIpyuXPRirlVJxV2wgHTnWGEChEZRIfI 1Zdmhmkf7OG6ng0TQItk2FtRQRGLwjH+ZUT/Tj9c= Received: from ZHILIZHAO-MB1.tencent.com ([113.108.77.52]) by newxmesmtplogicsvrszb16-1.qq.com (NewEsmtp) with SMTP id EFAB4200; Tue, 16 Jul 2024 20:59:58 +0800 X-QQ-mid: xmsmtpt1721134799tu34foy1w Message-ID: <tencent_FE004D687E7FAEAD6638C9C0B9B6F06A420A@qq.com> X-QQ-XMAILINFO: MFdGPHhuqhNo0U/b5FZDBdKUSYkSDFYroCVIebpBVkgbR1wOxnnMrp6e+EwuIb AqjKPNRSqbJV4vMtWtA+jHptaYZu1YFdl9KmpC3LTXGFIQ8Uf6xyJsSSh8SVoh2kc5r/Ue4DMdFF tYYcsNKVMxvm4b9dzasaDhHTZRUd1ZFBiYsFvOTTKqKDahHPpxnVR3LaV5HczTa+pDbvd6tg+i/9 QgqzJJZ5c4pjA5LuqfNO7Oq4DOdUz75OanLlW2W33kIAF5ihHBW620FmkhTkDZ9ULCX7JKe1R8lI foV7CIRb+c/Krh4iWcoU2r8LB7hb6Ed+TBDIzk4wE/dBUATQcP/c4uBtcxA2NqpoxTw5C40N97dz 2BOWknBltCQi9XXKYDOa6EXvF8nohjWFhhfwtM5BP0Of5N+OzV3jvG3RXKwTbblU7Cjl28Ttmer7 hefRU8Ifb+cjdSXLKOkXzAUIQbK6dYqyoWyejuEG7enXIqZmtjavQkBc8QVymJ5VONrj37d9UAAL V3SW9ZwGhk0CudbZ1nJ39BDvR4QIB5xJvT7V3NFyLN5tgRP9mjAKwQlNBpgQY5KGZKf1fIBBuXcq Z5D9kKrIrFQrQxlp1xDpavXjEjA57GsJc94pzfuVctzxAkSKGnV9LucwLtRUnMv6N7wqnsFhRQhE AqPK1Yd7CKBxl9rxxaqVnlk0jxlxils25eKXeJXTLgM8Ptfk1wC84v2/jv9V7QE2oUPmnLbHxIeP 9AZecy3eEhU/g5/Xq5Lp3uIUlYB7Ohj718PtrezEuOcWIc37xiP0reN9GwrjNS5J0inxPJI/AgNC RGVomRMCotKvXzIhD/9+W2iQ8XrMLV/lJEcBkt8fEiJNOHi8X3dbS1K0SZg5wmxy2Hkn6S52+NJ7 OXqTJvMLgKw4eLbNOXFZHliI4ZC0o/3B/JpA0fYwkjtkuNhhtQEIA2H+W54TwZDcZok8NalFe2PL yc+HYlqZGTw6yx1POdtvMmGNwQur6izYFd6UN4I0815yIEvimtL+8vqzTezUig X-QQ-XMRINFO: NyFYKkN4Ny6FSmKK/uo/jdU= From: Zhao Zhili <quinkblack@foxmail.com> To: ffmpeg-devel@ffmpeg.org Date: Tue, 16 Jul 2024 20:59:53 +0800 X-OQ-MSGID: <20240716125953.30663-2-quinkblack@foxmail.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20240716125953.30663-1-quinkblack@foxmail.com> References: <20240716125953.30663-1-quinkblack@foxmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/2] avcodec/videotoolboxenc: Set default bitrate to zero X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Cc: Zhao Zhili <zhilizhao@tencent.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> X-TUID: JUIghEKb6rRx |
Series |
[FFmpeg-devel,1/2] avcodec/videotoolboxenc: Fix bitrate doesn't work as expected
|
expand
|
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
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},
From: Zhao Zhili <zhilizhao@tencent.com> 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. --- libavcodec/videotoolboxenc.c | 1 + 1 file changed, 1 insertion(+)