[SOLVED] firefox html5 stuck at 360p

Everything about X, Gnome, KDE, ... and everything running on it

[SOLVED] firefox html5 stuck at 360p

Postby ticketman » 2015-08-22 14:50

youtube now automatically serves html5 content if it detects you are using firefox version 40 or above.
Unfortunately as a result, all youtube videos are now served to me at 360p resolution, and there is no way to change that on the youtube web page.

Before upgrading firefox, I could watch hd videos using flash. The ability to switch to html5 was also available on https://www.youtube.com/html5.
But with the later version of firefox, the option to switch back to using flash is no longer there on that page.

When I could view both flash and html5 videos (with the older firefox), I found that html5 played back very poorly. flash, despite being a known resource hog, actually played back better (with no h/w acceleration of flash in linux, I resigned myself to expect to use faster PCs to run flash hd at full screen). Which is a great pity, as we all know flash is disappearing, but it appears I now have an even bigger issue with html5. Where's the hd video?

So how can I get a better html5 experience? My machine is an i3 with GTS250 nVidia running Stretch.

The problem of only getting 360p resolution is probably a bug in firefox. Once I can get hd, I am then uncertain if firefox could handle it.

The advice of setting 'media.mediasource.enabled' in about:config to true to get higher resolutions did not work for me.
When I do that, the https://www.youtube.com/html5 page says I have:

HTMLVideoElement, WebM VP8 and Media source Extensions support, and
H.264, MSE & H.264 and MSE & WebM VP9 unsupported.

I have hardware acceleration enabled in firefox, and have the OpenH264 Video Codec (Cisco) plugin installed.

Some more info here:
http://blog.mjg.im/2014/05/08/testing-m ... xtensions/

I could switch back to using flash by using a user-agent switcher to fool youtube I have an older firefox, but that is a poor solution.

Any advice?
Last edited by ticketman on 2015-08-22 17:46, edited 1 time in total.
ticketman
 
Posts: 75
Joined: 2012-06-30 11:06

Re: firefox html5 stuck at 360p

Postby Head_on_a_Stick » 2015-08-22 15:01

In Iceweasel version 38 (sid), HTML5 videos will play in full HD as long as media.mediasource is enabled.

Have you tried that?
I suffer from depression and may lash out occasionally, try not to take it personally.
User avatar
Head_on_a_Stick
 
Posts: 8175
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: firefox html5 stuck at 360p

Postby ticketman » 2015-08-22 15:49

I haven't installed iceweasal, only the 'real' firefox (hangs head in shame ...)

More research and experimentation has given me this solution:

Enable all of the following to be true:

media.mediasource.enabled
media.mediasource.webm.enabled
media.fragmented-mp4.ffmpeg.enabled
media.fragmented-mp4.gmp.enabled
media.peerconnection.video.h264_enabled

This results in the following features still unsupported:

H.264, MSE & H.264

However, youtube now offers html5, and in all the same resolutions as the orginal flash (including hd).

The hd html5 video playback is also quite smooth, so if this sticks I'll mark as solved!
ticketman
 
Posts: 75
Joined: 2012-06-30 11:06

Re: firefox html5 stuck at 360p

Postby ticketman » 2015-08-22 17:46

I found I can get

H.264, MSE & H.264

supported by setting this to true:

media.fragmented-mp4.exposed

Now I have all lights green!
ticketman
 
Posts: 75
Joined: 2012-06-30 11:06

Re: [SOLVED] firefox html5 stuck at 360p

Postby geoaraujo » 2015-08-22 17:50

Nice! Thanks for sharing.
Debian 9.4

KDE Plasma 5.8.6
Dell N4050 Intel i5-2450M CPU 2.50GHz 64-bit Integrated Graphics 4GB ram

TDE R14.0.4
Acer AOD260 Intel Atom N450 1.66GHz 32-bit Integrated Graphics 2GB ram
User avatar
geoaraujo
 
Posts: 31
Joined: 2015-07-04 22:25

Re: [SOLVED] firefox html5 stuck at 360p .. But ...

Postby ticketman » 2015-08-22 22:39

Well here's another mystery :

I repeated the exercise on a older laptop (Acer, celeron 540 1.86GHz, 1280x800 display, i915 graphics).
The correct video driver is loaded.

For this laptop, firefox html5 is terrible. 480p stutters, and 720p is a slide show.

I tried all differnt combinations of turning on/off h/w acceleration, compositor (I use compton), but no improvement.

By using the user-agent switcher, I was able to try flash again with firefox, and 720p is watchable. Not perfectly smooth, but not a slideshow!

My fears of firefox not handling html5 are confirmed for older hardware. It is worse than flash!

So it appears that older hardware needs to use flash, as the firefox implementation of html5 is far worse than adobe's implementation of flash!!
This is just plain ridiculous.

I then installed google chrome on the laptop, and hey, it can play the html5 720p youtube video quite well, better than flash.
This proves it's firefox's implemenation of html5 that is bad, and it only really shows up on older hardware.

Does anyone know how to fix this for firefox?
Or is it time to move to chrome?
ticketman
 
Posts: 75
Joined: 2012-06-30 11:06

Re: [SOLVED] firefox html5 stuck at 360p

Postby Head_on_a_Stick » 2015-08-22 23:05

Image
I suffer from depression and may lash out occasionally, try not to take it personally.
User avatar
Head_on_a_Stick
 
Posts: 8175
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: [SOLVED] firefox html5 stuck at 360p .. But ...

Postby ticketman » 2015-08-23 12:34

LoL, but too true!

Whenever I try to convince others to use linux, it always falls at the first hurdle: the first thing they try is full screen web video. Not a problem if you have 1024 processors, but it is a show stopper for older machines (which could in fact do the job if they had h/w acceleration support).

It could be that firefox html5 isn't quite ready for prime time, but I sure would like to know why chrome currently beats the pants off of firefox for html5.
ticketman
 
Posts: 75
Joined: 2012-06-30 11:06

Re: [SOLVED] firefox html5 stuck at 360p .. But ...

Postby thanatos_incarnate » 2015-08-23 15:35

ticketman wrote:LoL, but too true!

Whenever I try to convince others to use linux, it always falls at the first hurdle: the first thing they try is full screen web video. Not a problem if you have 1024 processors, but it is a show stopper for older machines (which could in fact do the job if they had h/w acceleration support).

It could be that firefox html5 isn't quite ready for prime time, but I sure would like to know why chrome currently beats the pants off of firefox for html5.

Honestly, I have a current low spec laptop that runs fullscreen HD HTML5 video just fine. It's running on an AMD video card and uses the open source drivers. Even machines not older than 15y had some form of video acceleration. It's just a question of proper driver support.

Firefox chokes because Mozilla is yet to implement multithreading and proper usage of memory. Chrome for instance is using slightly more CPU and RAM on my machine, but video playback is great both on Flash and HTML5.

Maybe we should
1. stop blaming Linux (kernel, ecosystem, whatever your simplified term is when you say "Linux sucks") for shitty proprietary video card drivers,
2. stop blaming Linux because your video card manufacturer doesn't properly implement video acceleration on cheaper video cards
3. stop blaming Linux for the fact that browsers blacklist many very capable video cards from getting real 3d acceleration just because they don't run the drivers they want you to and force you to manually edit the flags.
4. explain to novice Linux users that Linux is not necessarily a product. It's more a collection of volunteers that do their best to support said hardware with a semi-official stepchild treatment from the manufacturers.

Sorry if it sounds like a rant, but I'm frankly annoyed by this "Linux sucks because my particular hardware that isn't well supported in it doesn't do X / because a software that isn't under the control of Linux does X this one way I don't like" attitude. Interestingly, if someone were to say the same about a Mac in relation to unsupported hardware, they'd be called crazy, since Apple only supports a fixed selection of hardware.

In short, In my experience, I think that nvidia users should in general stick to proprietary drivers and vdpau for proper video acceleration and ATI users should shun the proprietary drivers like the devil and stick to mesa with vdpau. Correct me if your experience is a different one.
User avatar
thanatos_incarnate
 
Posts: 717
Joined: 2012-11-04 20:36

Re: [SOLVED] firefox html5 stuck at 360p

Postby ticketman » 2015-08-30 14:20

I think that nvidia users should in general stick to proprietary drivers and vdpau for proper video acceleration and ATI users should shun the proprietary drivers like the devil and stick to mesa with vdpau.


What would your advice be for a celeron 540 1.86GHz with intel i915 graphics?
ticketman
 
Posts: 75
Joined: 2012-06-30 11:06

Re: [SOLVED] firefox html5 stuck at 360p

Postby Head_on_a_Stick » 2015-08-30 15:07

ticketman wrote:intel i915 graphics?

Hobson's choice m8.
I suffer from depression and may lash out occasionally, try not to take it personally.
User avatar
Head_on_a_Stick
 
Posts: 8175
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: [SOLVED] firefox html5 stuck at 360p

Postby JanPenguin » 2015-09-09 23:16

I'm running AMD 64 bit Debian 8.0.

I installed Firefox 40. It stops playing sound suddenly on Youtube viedos.
Instead Iceweasel 31.6.0 plays any flash video nicely. It seams Iceweasel uses all the latest Firefox features and user setting too, which is unexpected behavior.
JanPenguin
 
Posts: 136
Joined: 2011-01-16 13:00

Re: [SOLVED] firefox html5 stuck at 360p

Postby Head_on_a_Stick » 2015-09-10 06:51

JanPenguin wrote:I'm running AMD 64 bit Debian 8.0.

You should update your system -- the 8.2 point release is out and contains some important security fixes.
https://www.debian.org/News/2015/20150905

Also, jessie has switched to version 38 (ESR) of Iceweasel.
https://packages.debian.org/jessie/iceweasel
I suffer from depression and may lash out occasionally, try not to take it personally.
User avatar
Head_on_a_Stick
 
Posts: 8175
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: [SOLVED] firefox html5 stuck at 360p

Postby ticketman » 2015-09-10 20:13

firefox html5 performance bug reported here:

https://bugzilla.mozilla.org/show_bug.cgi?id=821984
ticketman
 
Posts: 75
Joined: 2012-06-30 11:06

Re: [SOLVED] firefox html5 stuck at 360p

Postby JanPenguin » 2015-09-10 23:16

I was relieved last night.

Code: Select all
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: ALC887-VD Analog [ALC887-VD Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0


/etc/asound.conf that fixed no sound problem of Firefox v40.
Code: Select all
defaults.pcm.card 0
defaults.pcm.device 0
defaults.ctl.card 0


ineffective methods that I had tried.

~/.asoundrc
Code: Select all
defaults.pcm.card 0
defaults.pcm.device 0
defaults.ctl.card 0

pcm.!default {
type hw
card 0
}

ctl.!default {
type hw
card 0
}


/etc/asound.conf
Code: Select all
pcm.!default {
    type hw
    card SB
}

ctl.!default {
    type hw
    card SB   
}


Code: Select all
$ cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-3.16.0-0.bpo.4-amd64 root=UUID=854fdbc7-dc14-4566-bddf-2a1cdc1ef1fc ro radeon.dpm=0 quiet snd-hda-intel.index=0
JanPenguin
 
Posts: 136
Joined: 2011-01-16 13:00

Next

Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable