WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: firefox: enable HTML5 video + audio  (Read 24421 times)

Offline dentonlt

  • Sr. Member
  • ****
  • Posts: 318
    • the trombone analog
Re: firefox: enable HTML5 video + audio
« Reply #15 on: October 19, 2015, 01:52:11 AM »
Just to keep beating the horse and all ...

I'm working on a build script that works with gstreamer-1.0. x86_64 repo doesn't currently have all the 0.10 plugins, and, though I've packaged all those already, I'm not sure it's worthwhile putting up the older plugins when the 1.0 stream may be more valuable long-term.

At the very least, this will remind me of why building firefox is not ... desirable. (big/time-consuming build)

I think we can safely say the original topic is closed here :p

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: firefox: enable HTML5 video + audio
« Reply #16 on: October 31, 2015, 09:19:52 AM »
Is there something that can use vaapi?
Or even better a button like in the fifth browser which just starts mplayer for video and sounds?
Or perhaps best a conversion of video and audio objects into simple <a href> links...

Offline pq5190362

  • Sr. Member
  • ****
  • Posts: 286
Re: firefox: enable HTML5 video + audio
« Reply #17 on: October 31, 2015, 09:40:31 AM »
Is there something that can use vaapi?

Yes, there is. You need gstreamer-vaapi.tcz, it's in the 64-bit Tiny Core Linux 6.x repo now, as requested over there:

http://forum.tinycorelinux.net/index.php/topic,18998.0.html

It's performance is suboptimal though, see:

https://bugzilla.mozilla.org/show_bug.cgi?id=894372

Or even better a button like in the fifth browser which just starts mplayer for video and sounds?

There is a "Watch with MPV" Firefox add-on available, see:

"https://addons.mozilla.org/en-US/firefox/addon/watch-with-mpv/

mpv.tcz is now available in the 64-bit Tiny Core Linux 6.x repo, see:

http://forum.tinycorelinux.net/index.php/topic,16246.0.html

 ;)

Offline pq5190362

  • Sr. Member
  • ****
  • Posts: 286
Re: firefox: enable HTML5 video + audio
« Reply #18 on: October 31, 2015, 09:45:01 AM »
PS:

Or perhaps best a conversion of video and audio objects into simple <a href> links...

Might also want to have a look at:

https://addons.mozilla.org/en-US/firefox/addon/yt2player/

 ;)

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: firefox: enable HTML5 video + audio
« Reply #19 on: October 31, 2015, 11:20:04 AM »
i don't want mpv. and i don't want 64-bit.
i already submitted mplayer with vaapi support, and it works perfectly with high performance and low cpu usage, so i'd like to use that.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: firefox: enable HTML5 video + audio
« Reply #20 on: October 31, 2015, 11:30:08 AM »
I'm using FlashGot plugin + youtube-dl + (S)MPlayer.
Download a copy and keep it handy: Core book ;)

Offline pq5190362

  • Sr. Member
  • ****
  • Posts: 286
Re: firefox: enable HTML5 video + audio
« Reply #21 on: November 01, 2015, 08:50:59 AM »
i don't want mpv. and i don't want 64-bit.

Maybe RTFM before complaining about an advice given to you by another user?

The descriptions of both add-ons:

https://addons.mozilla.org/en-US/firefox/addon/watch-with-mpv/
https://addons.mozilla.org/en-US/firefox/addon/yt2player/

tell you straight away that you can specify pretty much any external player, not just a specific one (if the player works with YouTube).

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: firefox: enable HTML5 video + audio
« Reply #22 on: November 01, 2015, 10:05:29 AM »
Sorry if it sounded like a complaint. be sure i'm trying to just cooperate efficiently.

So far i've been using opera. in there when i right-click->n->enter it pushes the current page's url to xdg-open.

quvi and mplayer would be run automatically from xdg-open (in my case it's just a 10 lines shell-script).
But quvi broke regularly and required a lot of updating so far, it is site-specific and i hope in the time of html5 video there's a chance it will become unnecessary to use programs like quvi and youtube-dl, which would spare me from having to update them all the time.

my last workaround was running fifth from xdg-open instead which then shows me a nice "stream" button in html5 video objects that would then give on the url to mplayer.
But even that was broken by youtube.

That's why I'm on the lookout for more alternatives.
« Last Edit: November 01, 2015, 10:18:57 AM by hiro »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: firefox: enable HTML5 video + audio
« Reply #23 on: November 01, 2015, 11:35:25 AM »
my last workaround was running fifth from xdg-open instead which then shows me a nice "stream" button in html5 video objects that would then give on the url to mplayer.
But even that was broken by youtube.

It was? I last downloaded a video from there two days ago, though I can't use the stream function on Youtube (mplayer doesn't support https). It's just a pain that Google changes their SSL certs several times a week.
The only barriers that can stop you are the ones you create yourself.

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: firefox: enable HTML5 video + audio
« Reply #24 on: November 01, 2015, 01:32:37 PM »
You're right, sadly it doesn't work with mplayer directly. I used to run
wget -O - | mplayer -
but now that also broke because of some seek issues.
It should be trivial though to change it to
wget -q -O /tmp/yt & (sleep 3; mplayer /tmp/yt)

I'll give you an example of my issue with youtube though: I get a rendering that looks like CSS is disabled and the message "This video is unavailable."

This now triggered deeper investigation. It might be related to the SSL problem you mentioned. I removed the whole .fifth folder and youtube started working again (perhaps cause the javascripts and css files come with a different certificate?).

Now with new SSL providers giving out certificates that are good for only few weeks certificate pinning sadly got less useful for the general internet :(

One issue I have on youtube still is that clicking the "Stream" button is kind of difficult cause there's that defunct play button from youtube blocking most of it ;)
« Last Edit: November 01, 2015, 01:36:46 PM by hiro »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: firefox: enable HTML5 video + audio
« Reply #25 on: November 01, 2015, 03:05:49 PM »
Some sub-sub-resources don't trigger the SSL error screen for some reason. Youtube serves CSS and images via two subdomains, s.ytimg.com and i.ytimg.com. So, as a temp workaround, you could change the fifth startup script to delete ~/.fifth/certs/{*google*,*ytimg.com} before starting it.

Adding an insecure mode, even in the form of site/domain exceptions, would be bad security design, easily hijackable by malware or misclicks.

edit: Creating an insecure minitube-like app using webkitfltk would be easy though, only for youtube use. Might I interest you in webkit app making?  ;) See the testapp in webkitfltk sources, it's a single-window browser sample, with the same video functionality, but without a SSL callback it will accept all certs.
https://github.com/clbr/webkitfltk/blob/fltk/Source/WebKit/fltk/testapp/testapp.cpp

Tweaking the style's z-order so the buttons are always on top is a TODO, in the long long TODO list...
« Last Edit: November 01, 2015, 03:18:40 PM by curaga »
The only barriers that can stop you are the ones you create yourself.