From patchwork Sat Dec 23 22:15:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Tomas_H=C3=A4rdin?= X-Patchwork-Id: 6937 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.79.195 with SMTP id r64csp4029214jad; Sat, 23 Dec 2017 14:17:24 -0800 (PST) X-Google-Smtp-Source: ACJfBotHd72Pie27WwtZCGygn+ihGWpp3OJDOMZ3PtKUuF/I0n8ZTmxWPhCs9PQJBZNQRnVceoMq X-Received: by 10.28.13.77 with SMTP id 74mr16465070wmn.51.1514067443921; Sat, 23 Dec 2017 14:17:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514067443; cv=none; d=google.com; s=arc-20160816; b=r2S3pL7sx0jgcMZZlPPl36OKujE+3lliH9LshMX/aVn9nQjQjxAhu3Bx2ZH9x3sVl+ Ltztllr36zDVIZnquViepr0zLMQ0HrIPSjUFmE/deqvBJ3JxPAxosHHnxsPmxekoaYNC inDoK0Erq3v0YspXuqX4EXu7EyigrU47j4/P2gfBXZNZfI7LAexgRpNG6lIbz7P7H2qV ihEbsHbhYHHfD6xZQbRWvgqQTLbKwkWgsRkS8wVLRV6CWTXq0SudTdihFuN3mYU2jVuz d3H9JSOXRigTlqajybgNPM6aFqjiAqVlJmZ0c+KxUrlgVfc62kELzxa9M4YhVJCHsGa5 qZnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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:dkim-signature:delivered-to :arc-authentication-results; bh=Gq7gjrBLTPq0QXDd7oBXHznUCmSdJ9/MF94WT4FHh7k=; b=MvJnsfx/ok4E1wp4dHgwm2uZVcJqfCHSDK493voalpqaHzgpRJMU4TxVXKNJ9/F24C T/Ybh9e+nMRPGWWrDIaWU4tZQ2gyyidMi7qelBsJ9YGMp2saH+eevHEKA5JCTkovw5xu KZ41vZzdvx5wZklPnA4a/9oWJrp8nkNoT6WC0AlwdY/ihHamttI4BB7nddt6qLqTNq3q 5aMAZu3lPFI+zXyBrZ+7h4ZPSFk5zFWBzBzPJJQoi2yAo19jIsrjBr81zMmqt0ejzBGf dfBphbvwuCKYB+4vvgXi0/qkUTVr4alESRsfBrIVkyr7OfjdwfeNfdfDNjxZXwEKiU0Y s4ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@acc.umu.se header.s=mail1 header.b=J4LKEYTZ; dkim=neutral (body hash did not verify) header.i=@acc.umu.se header.s=mail1 header.b=MXb+zHyz; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id n12si6575357wra.187.2017.12.23.14.17.23; Sat, 23 Dec 2017 14:17:23 -0800 (PST) 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=@acc.umu.se header.s=mail1 header.b=J4LKEYTZ; dkim=neutral (body hash did not verify) header.i=@acc.umu.se header.s=mail1 header.b=MXb+zHyz; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 556D168838A; Sun, 24 Dec 2017 00:17:10 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail.acc.umu.se (mail.acc.umu.se [130.239.18.156]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 521BC688379 for ; Sun, 24 Dec 2017 00:17:04 +0200 (EET) Received: from localhost (localhost.localdomain [127.0.0.1]) by amavisd-new (Postfix) with ESMTP id 532FC44BB4 for ; Sat, 23 Dec 2017 23:17:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=acc.umu.se; s=mail1; t=1514067436; bh=EPF/P7PXkmeS6qUrkJOt1wENT390R560kirUjjyTu6U=; h=Subject:From:To:Date:In-Reply-To:References:From; b=J4LKEYTZ8OEzuv22ihk2USB13nFuXL18rrkrnL4AfK/OiQYhKsOQpo4BGztOgxPsj gGC5V8BbLVhGwRL31iKYbIoATGqDq57vyzzOMdT1kG6YqwzXOJQevRMwP0DC7jEalZ 4J99BqBHcabefn/6PpUJA5Lsyk8xkf7xcW7REy8Xt4HwpIWWnVby8P/BJgTPKtJXlL PeQdHYhQN7J8Xy8KunsYBRIEg2e8Y4TScRTs7USqhGdOU8LMiO0w43HARY1GYieAz4 CG8VYdk7oAghnjCUr4pcv/XSsGf2Dk8/VsHTd0bHualKWFy9D4NQTwwZExhLzw7RFw Y2mOQ0Q+FrUWA== Received: from [192.168.43.179] (host-95-195-197-77.mobileonline.telia.com [95.195.197.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: tjoppen) by mail.acc.umu.se (Postfix) with ESMTPSA id 51D7A44BB2 for ; Sat, 23 Dec 2017 23:16:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=acc.umu.se; s=mail1; t=1514067435; bh=EPF/P7PXkmeS6qUrkJOt1wENT390R560kirUjjyTu6U=; h=Subject:From:To:Date:In-Reply-To:References:From; b=MXb+zHyz/EI3sGib+Pe6wdhdJVQiqIvTPO7HPoVtj9CG4bG/yjbkRztdOdSBeeQQo v5V/sazgrA4frMR5JN1Ij7NvKWEl7Kj1dOx46clD3EbXvDFrkCkatBbpl3Q4UTpiAX 9v8LhNxWm3gbDH0pDuW87dcyXQ1GR9ZuOM8xHRykBUPWEYp6D7hBjkVOeIBSa5kZsi zKEjqh4tQ9de6+XIpz6o9fmRZI03FXPYUm+6qu8Vb2qB5wA+ybMPBLj5lWCF8oaLzx STJV+VInQc9eYMj6eMzFtvMSEZ1qpzfymHSVRaGJXNVVb/ElT3R0us/AMIxeFMeXQu YM9rEHwTtzZoQ== Message-ID: <1514067356.4024.3.camel@acc.umu.se> From: Tomas =?ISO-8859-1?Q?H=E4rdin?= To: FFmpeg development discussions and patches Date: Sat, 23 Dec 2017 23:15:56 +0100 In-Reply-To: <1514066939.15007.10.camel@acc.umu.se> References: <1514066939.15007.10.camel@acc.umu.se> X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 3/3] Don't complain about codec2's 700 bit/s modes in ffmpeg.c X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" From 8bd1d9981484c9b4964f3fdfd542951a02f5a01d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= Date: Thu, 3 Aug 2017 17:33:04 +0200 Subject: [PATCH 3/3] Don't complain about codec2's 700 bit/s modes in ffmpeg.c --- fftools/ffmpeg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 6aff3366c5..17989a8114 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -3502,7 +3502,8 @@ static int init_output_stream(OutputStream *ost, char *error, int error_len) av_buffersink_set_frame_size(ost->filter->filter, ost->enc_ctx->frame_size); assert_avoptions(ost->encoder_opts); - if (ost->enc_ctx->bit_rate && ost->enc_ctx->bit_rate < 1000) + if (ost->enc_ctx->bit_rate && ost->enc_ctx->bit_rate < 1000 && + ost->enc_ctx->codec_id != AV_CODEC_ID_CODEC2 /* don't complain about 700 bit/s modes */) av_log(NULL, AV_LOG_WARNING, "The bitrate parameter is set too low." " It takes bits/s as argument, not kbits/s\n"); -- 2.11.0