You are not logged in.

#1 2016-01-29 14:31:26

easysid
Member
From: India
Registered: 2013-01-01
Posts: 256

[SOLVED] Firefox - webm vs H.264 - wiki recommendation

Hi,

I would just like a clarification on the following tweak:

The ArchWiki page on Firefox Tweaks has the following suggestion

ArchWiki wrote:

If WebM MSE is enabled when Youtube is set to use the HTML5 player by default, Youtube will use VP9 video by default to save bandwidth. However, hardware acceleration is not available for VP9, if you want to use hardware acceleration with youtube video especially if you have less capable hardware consider setting

media.mediasource.webm.enabled

to false to make youtube stream H.264 video for which hardware acceleration is widely available.

To verify if WebM (VP9) is enabled go to youtube.com/html5. If "MSE & WebM VP9" is not supported, youtube will use H264.

AFAIK, Firefox does not yet accelerate H.264 on Linux anyway. So, isn't the tweak kind of irrelevant at this point in time, and aren't we better off using webm to save bandwidth.

I am running radeon drivers with mesa-vdpau.

Thanks.

Last edited by easysid (2016-01-30 09:49:41)

Offline

#2 2016-01-29 16:35:51

The Loko
Member
From: Spain
Registered: 2014-07-23
Posts: 103

Re: [SOLVED] Firefox - webm vs H.264 - wiki recommendation

This option is enabled by default since FF 43 (or 44 not sure), I think Firefox already have H.264 video acceleration.

Offline

#3 2016-01-29 17:08:45

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: [SOLVED] Firefox - webm vs H.264 - wiki recommendation

Nope, there's no hardware video decoding in Firefox yet. Watch these two bugs: vaapi and vdpau.

That said, "bandwidth saving" would not be my criteria for choosing the format. Yeah, bitrates of webm videos on youtube do tend to be lower than the h264 bitrates, but considering how bloated today's web is, I seriously doubt it makes a noticeable difference.

Offline

#4 2016-01-30 08:23:45

easysid
Member
From: India
Registered: 2013-01-01
Posts: 256

Re: [SOLVED] Firefox - webm vs H.264 - wiki recommendation

Gusar wrote:

Nope, there's no hardware video decoding in Firefox yet. Watch these two bugs: vaapi and vdpau.

That said, "bandwidth saving" would not be my criteria for choosing the format. Yeah, bitrates of webm videos on youtube do tend to be lower than the h264 bitrates, but considering how bloated today's web is, I seriously doubt it makes a noticeable difference.

But there isn't any performance advantage then, by choosing h264 over webm. Is there?

Offline

#5 2016-01-30 09:23:39

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: [SOLVED] Firefox - webm vs H.264 - wiki recommendation

It could be that ffmpeg's h264 decoder is more optimized than its vp9 decoder, in which case choosing h264 will give you less CPU usage. But I don't have numbers to back this up, you'd need to test yourself which decoder is more efficient.

Offline

#6 2016-01-30 09:49:11

easysid
Member
From: India
Registered: 2013-01-01
Posts: 256

Re: [SOLVED] Firefox - webm vs H.264 - wiki recommendation

OK. Thanks for the help. I will mark the thread as solved. I think that the wiki can do with a little clarification though.

Offline

Board footer

Powered by FluxBB