LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-06-2015, 11:34 PM   #1
cathartes
LQ Newbie
 
Registered: Oct 2015
Location: U.S.A.
Distribution: Slackware, Tails
Posts: 20

Rep: Reputation: Disabled
HTML5 Video Playback Issues in Firefox 42.0


I'm unable to play many HTML5 videos sourced from many common sites like ArkVid and Vimeo in Firefox. ArkVid, for example, will load one frame of the video but offers no playback controls to play the video. Vimeo appears to start loading, then abruptly stops with cutesy error messages, e.g., "Awww, snap! This video cannot be played with your current setup."

My Slackware x64 -current (as of 6 November 2015) install uses Firefox 42.0 with only the Adblock Plus add-on installed. (The Cisco H.264 add-on has been disabled.) Using older versions of Firefox (back to 38.x) do not help with this problem, nor does restarting Firefox with all add-ons disabled (in "Protected Mode").

But what puzzles me is that the same version of Firefox configured identically on Windows 7 (including ABP, sans Flash, H.264 add-on disabled) loads and plays the "problem" videos just fine. In fact, so does a stock install of the Tor Browser Bundle 5.0.x running on the same Slackware machine, as well as the version of Tor Browser bundled with Tails 1.7.

As this is almost certainly a Firefox configuration issue rather than a problem with Slackware proper, I apologize for posting to this forum. However, I am not seeing this problem in Windows 7, Tails, or a live boot of Trisquel (for testing), and my hope is that another Slackware user can at least confirm the problem. Or better still, offer pointers to how I might go about troubleshooting the matter.

Thank you!
 
Old 11-07-2015, 02:19 AM   #2
lems
Member
 
Registered: May 2004
Distribution: BSD
Posts: 269

Rep: Reputation: 119Reputation: 119
I think you need to install gst1-libav from SBo. When I remove that package, I can't play HTML5 videos (on vimeo, for example) either. Do you have it installed?
 
2 members found this post helpful.
Old 11-07-2015, 03:01 AM   #3
cathartes
LQ Newbie
 
Registered: Oct 2015
Location: U.S.A.
Distribution: Slackware, Tails
Posts: 20

Original Poster
Rep: Reputation: Disabled
No, I did not have this library installed. And it is apparently just what I needed to get HMTL5 videos working in the browser. Thank you kindly!

Now I can get back to my DataCamp tutorials . . .
 
Old 12-23-2015, 09:15 AM   #4
mats_b_tegner
Member
 
Registered: Nov 2009
Location: Gothenburg, Sweden
Distribution: Slackware
Posts: 946

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Vimeo still doesn't play HTML5 videos in Firefox 43.0.2 under -current even with the gst1-libav 1.6.2 plug-in installed.

Edit: HTML5 video playback works on YouTube with the YouTube All HTML5 extension and the gst1-libav plug-in.

I solved it by modifying the media.* settings in Firefox about:config. I also have Alien Bob's restricted ffmpeg package installed.

Last edited by mats_b_tegner; 12-24-2015 at 10:13 AM.
 
Old 12-23-2015, 11:31 AM   #5
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
if you are using a asoundrc html5 will not play. It will not have sound. this goes back to 2011 when html5 video started. That means no jackd or jackd2 unless you runn a full pulseaudio and set it up through cubec.
if you must run a asoundrc then you will need to do something like this.
in /etc/modprobe.d/ create sound.conf one or if you have one.
I use everything through my headphones. so I make my usb head phones device 0.
this way below I do not need a asoundrc everything goes through my head phones. even skype with apulse.
Code:
alias snd-card-0 snd-usb-audio
alias sound-slot-0 snd-usb-audio
options snd slots=snd-usb-audio,snd-hda-intel,snd-usb-audio
the other way is to
again we are making it card0 /etc/modprobe.d/sound.conf
Code:
options snd_hda_intel index=1,0
create your asoundrc
Code:
defaults.pcm.card 0
defaults.ctl.card 0
defaults.ctl.card 0
HTML5 is a joke. It is up to the web developers to embed it correctly.
And now anytime you want to use jackd it will break the sound.
I have tried rerouting alsa_in alsa_out but html5 will paly video but the sound
device will not sync and will say it is busy.
 
Old 12-23-2015, 12:51 PM   #6
number22
Member
 
Registered: Sep 2006
Location: Earth
Distribution: Slackware 14.1 Slackware64-current multilib
Posts: 278
Blog Entries: 7

Rep: Reputation: Disabled
Quote:
Originally Posted by mats_b_tegner View Post
Vimeo still doesn't play HTML5 videos in Firefox 43.0.2 under -current even with the gst-libav plug-ins installed (I've both the 0.10.13 version as well as 1.6.2)
I have exactly problem with vimeo and others, but youtube html5 works flawlessly.
 
1 members found this post helpful.
Old 12-23-2015, 03:25 PM   #7
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,753

Rep: Reputation: Disabled
Quote:
Originally Posted by mats_b_tegner View Post
Vimeo still doesn't play HTML5 videos in Firefox 43.0.2 under -current even with the gst1-libav 1.6.2 plug-in installed.

Edit: HTML5 video playback works on YouTube with the YouTube All HTML5 extension and the gst1-libav plug-in.
This is because youtube supports vp8/vp9 that is shipped with slackware package, but vimeo apparently only provides mp4 and swf which is not shipped.
You could try gst1-ffmpeg, or install full ffmpeg and rebuild browser with --enable-ffmpeg --enable-fmp4 but note that I did this once before, and it's using sw rendering.
That means no vdpau, mass tearing, no vsync, and heavy load on cpu core, my previous attempts to force hw rendering into the browser were mostly inefficient or failed completely.
A dirty workaround would be extracting url from javascript src on site, and passing the stream directly to mplayer.
 
Old 12-24-2015, 07:48 AM   #8
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,753

Rep: Reputation: Disabled
Just a small update: the tearing I had previously seems fixed in more recent versions of ffmpeg.
This morning I cleaned up the environment and rebuilt the thing, this is what I used:

ffmpeg-2.8.4 full with nonfree enabled
gst-ffmpeg-0.10.13 from SBo with default config
icecat-38.5.0-gnu1 built with gstreamer (not gstreamer1) and new ffmpeg

Then I tested vimeo HD it works, still uses way more cpu than mplayer, but doesn't tear at all.
I did also rebuild mplayer 1.2 stable and replaced bundled ffmpeg with new ffmpeg-2.8.4 - works fine.

The problem with firefox in -current seems that is built with gstreamer1 but gst1-ffmpeg is not on SBo
Maybe gst1-libav helps there but I didn't test on -current since it's a moving target, I only build these things on stable.
 
Old 12-24-2015, 08:52 AM   #9
CTM
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 308

Rep: Reputation: 287Reputation: 287Reputation: 287
Be aware that, as of version 43, Firefox only uses Gstreamer (and thus packages like gst-ffmpeg, gst1-libav, etc) to play MP3 audio - if ffmpeg is installed at run-time, it is now used directly to play everything else. An upcoming version of Firefox will feature its own MP3 decoder (it's currently in 43 but is considered experimental, and is disabled by default); Firefox 44 will disable Gstreamer, and Firefox 46 will remove the remaining Gstreamer code from the codebase entirely.
 
3 members found this post helpful.
Old 12-24-2015, 10:31 AM   #10
mats_b_tegner
Member
 
Registered: Nov 2009
Location: Gothenburg, Sweden
Distribution: Slackware
Posts: 946

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
Originally Posted by elcore View Post
The problem with firefox in -current seems that is built with gstreamer1 but gst1-ffmpeg is not on SBo
Maybe gst1-libav helps there but I didn't test on -current since it's a moving target, I only build these things on stable.
I've built gst1-libav 1.6.2 under -current using the SlackBuild-script from SBo and it seems to work. gst-ffmpeg 1.x is gst1-libav:
http://gstreamer.freedesktop.org/src...1.x-README.txt

Last edited by mats_b_tegner; 12-24-2015 at 10:34 AM.
 
Old 12-24-2015, 12:52 PM   #11
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,753

Rep: Reputation: Disabled
Right. A bit confusing that plugin name, I originally thought libav was a separate ffmpeg fork and that the plugins may not be compatible.
And thanks for bugzilla links CTM, very informative, I guess if mozilla supports ffmpeg directly, they probably won't force all the media into EME adobe module then.
I'm not too keen on providing a sandbox for adobe to run encrypted modules, I'd much rather use ffh264vdpau directly.
 
Old 12-24-2015, 08:50 PM   #12
Nille_kungen
Member
 
Registered: Jul 2005
Distribution: Slackware64-current
Posts: 587

Rep: Reputation: 201Reputation: 201Reputation: 201
To sum up the thread.
The fix is that you don't need gst to use firefox anymore (i removed all third-party gst-plugins) and you should use ffmpeg instead.
I installed ffmpeg from alienbob (it doesn't matter if you use restricted or not) and everything works.
http://taper.alienbase.nl/mirrors/pe...builds/ffmpeg/

Last edited by Nille_kungen; 12-24-2015 at 08:57 PM.
 
1 members found this post helpful.
Old 12-26-2015, 03:40 PM   #13
CTM
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 308

Rep: Reputation: 287Reputation: 287Reputation: 287
Quote:
Originally Posted by Nille_kungen View Post
The fix is that you don't need gst to use firefox anymore
You almost don't need it: if you want to play MP3s directly in Firefox (i.e., streaming them without the use of an intermediate Flash applet), you'll still need Gstreamer and libmad installed and Firefox compiled with Gstreamer support (--with-gstreamer). The experimental MP3 decoder built in to Firefox apparently now works acceptably and is expected to be enabled by default as of Firefox 44, at which point Gstreamer won't be needed at all.
 
Old 12-27-2015, 02:16 AM   #14
Nille_kungen
Member
 
Registered: Jul 2005
Distribution: Slackware64-current
Posts: 587

Rep: Reputation: 201Reputation: 201Reputation: 201
Quote:
Originally Posted by CTM View Post
You almost don't need it: if you want to play MP3s directly in Firefox (i.e., streaming them without the use of an intermediate Flash applet), you'll still need Gstreamer and libmad installed and Firefox compiled with Gstreamer support (--with-gstreamer). The experimental MP3 decoder built in to Firefox apparently now works acceptably and is expected to be enabled by default as of Firefox 44, at which point Gstreamer won't be needed at all.
I didn't notice that but since i got mplayerplug-in-3.55 from extra installed it handles mp3 (looks like it in about:plugins).
Do you know what config string that enables the experimental mp3 decoder?

Last edited by Nille_kungen; 12-27-2015 at 02:19 AM.
 
Old 12-30-2015, 06:47 AM   #15
CTM
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 308

Rep: Reputation: 287Reputation: 287Reputation: 287
Quote:
Originally Posted by Nille_kungen View Post
Do you know what config string that enables the experimental mp3 decoder?
Creating a new Boolean named "media.mp3.enabled" and setting its value to "true" should do it. You can test the effect of doing that on this HTML5 audio codec test page.

Last edited by CTM; 12-30-2015 at 06:50 AM. Reason: typo
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Firefox HTML5 mp3 playback bosth Slackware 9 06-08-2015 11:09 PM
LXer: Mozilla Firefox 38.0 Will Bring True HTML5 YouTube Playback on OS X and Linux, Tab-Based Prefe LXer Syndicated Linux News 0 04-03-2015 01:24 AM
LXer: Mozilla Firefox 37.0 Officially Released with Native HTML5 YouTube Playback, Firefox 40 Pushed LXer Syndicated Linux News 0 04-01-2015 02:20 AM
LXer: Firefox 36 Won't Bring Native YouTube HTML5 Playback, But Will Sync Pinned Tiles LXer Syndicated Linux News 0 02-15-2015 03:00 PM
[SOLVED] Firefox 4 in Slackware 12.2 and HTML5 video problem mycinka Slackware 1 03-23-2011 08:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration