Re: [rtcweb] H.261 encoding samples at typical bitrates - sign language example

Justin Uberti <juberti@google.com> Thu, 05 December 2013 21:06 UTC

Return-Path: <juberti@google.com>
X-Original-To: rtcweb@ietfa.amsl.com
Delivered-To: rtcweb@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BBECA1AE11B for <rtcweb@ietfa.amsl.com>; Thu, 5 Dec 2013 13:06:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.379
X-Spam-Level:
X-Spam-Status: No, score=-1.379 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8xWBTe1Vvdni for <rtcweb@ietfa.amsl.com>; Thu, 5 Dec 2013 13:06:21 -0800 (PST)
Received: from mail-ve0-x230.google.com (mail-ve0-x230.google.com [IPv6:2607:f8b0:400c:c01::230]) by ietfa.amsl.com (Postfix) with ESMTP id C09BC1AE106 for <rtcweb@ietf.org>; Thu, 5 Dec 2013 13:06:21 -0800 (PST)
Received: by mail-ve0-f176.google.com with SMTP id oz11so14521416veb.35 for <rtcweb@ietf.org>; Thu, 05 Dec 2013 13:06:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=rsOnG5DBGO9do9/d+c9YNW/cnCoqUMc1bFsFZ20spbE=; b=SLGMGUOqzvlZz4dxmMvOOOkVjKLM6PPHkHyH+YU+g/7scO/xFEuBSqo2KDMwkaH6LD BW93YEo3RVPVvfJYgfgZi1bN38oYjc+WqrWFKB0LVoi679ggHb1k2trVp0Ymph0NlpWE 2Ezu1c0UOBoHk1ghWwZmRE2VHsDx2mqnJvhax/w2s2VE0QZhsyCOKL3hZuKVhijTOvxF 0h9B6BXbV584uagZzP43GvRn9Sb7sTmjwK8bUD6VMmI5wa2fgXhNuoGu3X/wPZalTlcl iEDQXwzvOy7DlJrcqXUR0YfLwZL/y/mp9AzHBTdqV3yuWgoTCNOVe/KbredpGC+NNU5Z /HlQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=rsOnG5DBGO9do9/d+c9YNW/cnCoqUMc1bFsFZ20spbE=; b=MN3HskfO6o3gYVzAsEeu4DmeMBikQH0kudZBJ6jcvw+H+43vc4ka0xRaJzmbNSrnJv X+sm0k1PfTnJr/1CZRbiQcFDD9YJt6Mq9CT33AoUT6Oz8hagbbF4dpdeOm6uRAIWRPZe mlbmywBiU4xKnjrKOTSNzgOj7QpZuZKCqCTwVFk/Cq5B08wdAQX5+Wy3rfNHlXSfLlN0 I22CewT5ovVzZ5W+SBphJQA9g3UJHYPhbTpkIE3YW2mvvsRqcI0HLRfgsJ5fdfSzO7yT EDDdGIasUtPixrLbgXBeiqc5+58DrSU9L1cdJdZYZCFpfsF1CQezVxgjXex415H4yVX3 OoqQ==
X-Gm-Message-State: ALoCoQmGZLnhj4x67rjppHtK2njPxqT55yFG06zEUBYnlFRYzw7y9Ey/H6Fc7seCGWVIX3dPUkiWS0Q7WFHjKNeYdIn2enO9NudPLSIYAATD/1fW9PtZDZxRJ1o/k7rEEwbl2P69K/i+rdEijHtAJjFeucSnIr/F0EvbCgAKstML3bIz49LyDxSUE4EktFFxYGHHvl3Rf3jk
X-Received: by 10.52.232.8 with SMTP id tk8mr7905vdc.76.1386277577891; Thu, 05 Dec 2013 13:06:17 -0800 (PST)
MIME-Version: 1.0
Received: by 10.52.110.101 with HTTP; Thu, 5 Dec 2013 13:05:57 -0800 (PST)
In-Reply-To: <529D5CCD.8070801@librevideo.org>
References: <529D4A06.4080708@librevideo.org> <529D5CCD.8070801@librevideo.org>
From: Justin Uberti <juberti@google.com>
Date: Thu, 05 Dec 2013 13:05:57 -0800
Message-ID: <CAOJ7v-1OOvWKd1M0xkm5Wy_rsf4_58UM-8hzB4HYqoQq4zchnw@mail.gmail.com>
To: Basil Mohamed Gohar <basilgohar@librevideo.org>
Content-Type: multipart/alternative; boundary="089e01183906977ae604eccfe6ab"
Cc: "<rtcweb@ietf.org>" <rtcweb@ietf.org>
Subject: Re: [rtcweb] H.261 encoding samples at typical bitrates - sign language example
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Real-Time Communication in WEB-browsers working group list <rtcweb.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/rtcweb/>
List-Post: <mailto:rtcweb@ietf.org>
List-Help: <mailto:rtcweb-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Dec 2013 21:06:26 -0000

Ow, my eyes...

The 256 kbps and lower clips are unusable. The 512 kbps clip is borderline,
but might be usable if the framerate was cut in half.

Remember also that these test clips are far better than what would be
obtained from consumer webcams (i.e. good lighting, no shake, no temporal
noise), so real-world performance is likely to be worse than what you see
here.


On Mon, Dec 2, 2013 at 8:23 PM, Basil Mohamed Gohar <
basilgohar@librevideo.org> wrote:

> On 12/02/2013 10:03 PM, Basil Mohamed Gohar wrote:
> > Let's let any further discussions about the usability of H.261, or any
> > other codec for that matter, use actual examples going forward.
> >
> > The following is a VERY quick test of ffmpeg's h261 encoder in the
> > context of the IETF's rtcweb working group's discussion of an MTI
> > (mandatory-to-implement) video codec.
> >
> > sine_irene_cif.y4m taken from derf's collection:
> >
> > http://media.xiph.org/video/derf/y4m/sign_irene_cif.y4m
> >
> > ffmpeg version N-58565-gc122e69
> >
> > bitrate=64k,128k,256k,512k
> >
> > ffmpeg -i sign_irene_cif.y4m -codec:v h261 -b:v $bitrate -g 30
> > sign_irene_cif.y4m-$bitrate.h261
> >
> > http://media.basilgohar.com/rtcweb/sign_irene_cif.y4m-64k.h261
> > (real rate: 157.8kbits/s)
> >
> > http://media.basilgohar.com/rtcweb/sign_irene_cif.y4m-128k.h261
> > (real rate: 165.6kbits/s)
> >
> > http://media.basilgohar.com/rtcweb/sign_irene_cif.y4m-256k.h261
> > (real rate: 289.5kbits/s)
> >
> > http://media.basilgohar.com/rtcweb/sign_irene_cif.y4m-512k.h261
> > (real rate: 541.8kbits/s)
> >
> > I apologize for the bitrate inflation, but if I had more time I can
> > tweak the settings for a more accurate number.  These are simply the
> > rates that ffmpeg produced with such a short clip at the given requested
> > rates.
> >
>
> I've updated the encoding settings as follows to get more accurate
> resulting bitrates, but ffmpeg's h261 encoder seems to bottom-out at
> around ~140kbps, so the only examples from above that are close (after
> using the new settings) are 256k and 512k.
>
> for bitrate in {1..512}k; do ffmpeg -i ../sign_irene_cif.y4m -codec:v
> h261 -b:v $bitrate -minrate $bitrate -maxrate $bitrate -bufsize $bitrate
> -qmax 1024 -g 30 -y sign_irene_cif.y4m-$bitrate.h261; done;
>
> All the above posted examples can be viewed with mplayer and a bash
> command line using the following, if you're interested:
>
> mplayer
>
> http://media.basilgohar.com/rtcweb/sign_irene_cif.y4m-{64,128,256,512}k.h261
>
> The full integer range of bitrates from 1 to 512 can be found here:
>
> http://media.basilgohar.com/rtcweb/h261/
>
> Target bitrate and actual bitrate start to match around 150kbps with
> these new settings.
>
> I am currently exploring other codecs with the same methodology and will
> share the results accordingly.
>
> --
> Libre Video
> http://librevideo.org
> _______________________________________________
> rtcweb mailing list
> rtcweb@ietf.org
> https://www.ietf.org/mailman/listinfo/rtcweb
>