Re: [rtcweb] H261/MPEG-1 video quality

Maik Merten <maikmerten@googlemail.com> Fri, 15 November 2013 15:17 UTC

Return-Path: <maikmerten@googlemail.com>
X-Original-To: rtcweb@ietfa.amsl.com
Delivered-To: rtcweb@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B47A211E80F5 for <rtcweb@ietfa.amsl.com>; Fri, 15 Nov 2013 07:17:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, J_CHICKENPOX_45=0.6]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id v066V6fu2xVS for <rtcweb@ietfa.amsl.com>; Fri, 15 Nov 2013 07:17:17 -0800 (PST)
Received: from mail-bk0-x233.google.com (mail-bk0-x233.google.com [IPv6:2a00:1450:4008:c01::233]) by ietfa.amsl.com (Postfix) with ESMTP id 8E08F11E80E7 for <rtcweb@ietf.org>; Fri, 15 Nov 2013 07:17:16 -0800 (PST)
Received: by mail-bk0-f51.google.com with SMTP id my10so1037117bkb.10 for <rtcweb@ietf.org>; Fri, 15 Nov 2013 07:17:15 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=OuYF8FO/xvt4QE7E0SREOzfdxaniUxanZTXADDPOppY=; b=JFO6s217+8vXYSzaxXOX/aCxwcCXfYAAYaTLXQOiHZ8sP7qujSXWUTTnC89uWN5kCG FpJqXQkiaAwSQKjhcM9TXqF8pDgesSGSbgk0bEGZ8hH814p8z2e4cMXsNeujJfvpJFtZ wh6rq2MYXQStDqLZPliw2I4mnth24mjmRnHGhXkKVKJ/nsndvM7U3YbY9q8Xu8rV2Rwh 5GXVQQrU1b9vInDJ/1BXNPT4taUQxE0Okoh5WgzZjT/SZdzGlCrTkRgAqrId9hrUssgK hIXxWKXe3WAUy+aWA5vCKF1mOwSM0uCOxjS/1fvCnxmRIWBTuRsU64IfQP00pbuUIHZz VPOQ==
X-Received: by 10.204.247.10 with SMTP id ma10mr62924bkb.63.1384528635530; Fri, 15 Nov 2013 07:17:15 -0800 (PST)
Received: from [192.168.2.101] (dslb-088-078-139-230.pools.arcor-ip.net. [88.78.139.230]) by mx.google.com with ESMTPSA id pk7sm7331769bkb.2.2013.11.15.07.17.13 for <rtcweb@ietf.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 15 Nov 2013 07:17:14 -0800 (PST)
Message-ID: <52863AF8.1060200@googlemail.com>
Date: Fri, 15 Nov 2013 16:17:12 +0100
From: Maik Merten <maikmerten@googlemail.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0
MIME-Version: 1.0
To: rtcweb@ietf.org
References: <5284AB73.5030505@googlemail.com> <5285209D.7020407@googlemail.com> <CAGgHUiSROwRznKZWD4kjn8Vu7SrUVwOnHN1EJ-PTgR=WQmcxAQ@mail.gmail.com> <CAOJ7v-2najyMhcVNC8r0Sg+8xgkgDwasBSz476zA0BEpi2X5Pg@mail.gmail.com> <528559E4.3020903@nostrum.com> <5286272B.5000005@bbs.darktech.org>
In-Reply-To: <5286272B.5000005@bbs.darktech.org>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Subject: Re: [rtcweb] H261/MPEG-1 video quality
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.12
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: Fri, 15 Nov 2013 15:17:17 -0000

As pointed out by Stephan and after investigating a bit on the format 
specifics I feel compelled to state that H.261 and MPEG-1 are indeed 
different enough from each another so that performance evaluations on 
one codec cannot directly be transferred to the other. I'm still tempted 
to assume that CIF H.261 can deliver acceptable quality for talking head 
scenarios at ~256 kbit/s - however, I've yet to find a reliable H.261 
encoder implementation with up-to-date psychovisual optimizations to 
generate actual test vectors.

Best regards,

Maik

Am 15.11.2013 14:52, schrieb cowwoc:
>
> Excellent work Adam. I can't speak for others, but at 254 kbps
> (corrected figure from your follow-up post) H.261 is definitely "good
> enough" and better than an audio-only connection.
>
> Gili
>
> On 14/11/2013 6:16 PM, Adam Roach wrote:
>> I sent a reply to this earlier, but just now realized that it went
>> only to Justin, not to the list.
>>
>>
>> On 11/14/13 13:59, Justin Uberti wrote:
>>> Thanks, this is interesting. Is the ffmpeg 261 encoder limited to
>>> CIF/QCIF, or can you specify arbitrary sizes?
>>
>> It looks like the ffmpeg mpeg-1 coder works for arbitrary sizes. I'm
>> not sure what the difference between mpeg-1 and H.261 are, though, so
>> we could be talking apples and oranges (or at least apples and pears)
>> here. I'll note that mpeg-1 came out in 1991, which is a good 22 years
>> in the past. I'm not drawing IPR conclusions for you, but invite you
>> to ponder the implications yourself.
>>
>> Following Maik's lead with the mpeg-1 js decoder, I put this together:
>>
>> https://dl.dropboxusercontent.com/u/53717247/mpg/maven.html
>>
>> ...with this commandline:
>>
>>   ffmpeg -i maven.mp4 -f mpeg1video -flags qprd -mbd rd -cmp rd
>> -subcmp rd -mbcmp rd -precmp rd -trellis 2 -g 100 -vb 256k maven.mpg
>>
>> I don't really understand most of those options (I just cribbed them
>> from Maik's example) or whether any of them would introduce more
>> latency than is reasonable for a real-time conversation, but I will
>> observe:
>>
>>  1. The encoder claims that it was performing on the order of 90 - 100
>>     fps on my (admittedly modern) system;
>>  2. The resolution is 640x360 (somewhat larger than DCIF);
>>  3. The video is not, to my eye, unusable (draw your own conclusions,
>>     as it's clearly not as nice as modern codecs);
>>  4. At 74 seconds and 4.7 MBytes (i.e., 37.6 Mbits), this encoding
>>     works out to 508 kbits/second total.
>>
>>
>> Source video here, and NASA is acknowledged as the source of the
>> material contained therein: http://www.youtube.com/watch?v=ijAO0FFExx0
>>
>> /a
>>
>>
>>
>> _______________________________________________
>> rtcweb mailing list
>> rtcweb@ietf.org
>> https://www.ietf.org/mailman/listinfo/rtcweb
>
>
>
> _______________________________________________
> rtcweb mailing list
> rtcweb@ietf.org
> https://www.ietf.org/mailman/listinfo/rtcweb
>