Tiny Core Extensions > TCE Tips & Tricks

firefox: enable HTML5 video + audio

(1/6) > >>

dentonlt:
I had some trouble getting HTML5 av working in Firefox, but all set now. In case anyone else goes this way, this is what is working for me on an Acer C720 Chromebook running TC 6.x.

If anyone has luck without pulseaudio (ALSA only) or just has a faster/slimmer way, I'll be interested to hear.

1) Turn on dbus from ~/.X.d . I use:

--- Code: ---/usr/local/share/etc/init.d/dbus start
--- End code ---

2) Turn on pulseaudio from ~/.X.d . I use:

--- Code: ---/start-pulseaudio-x11
--- End code ---

3) Install extensions. Installation order sometimes matters. ffmpeg, gst-ffmpeg, and the gstreamer plugins need to be in place at the time firefox is started. Perhaps not necessary to on-boot, but this is what I do:

- dbus [onboot]
- alsa-config [onboot]
- alsa [onboot]
- pulseaudio [onboot]
- ffmpeg
- gst-ffmpeg
- gst-plugins-good0.10
- gst-plugings-ugly0.10
- firefox-official (I used firefox-get.tcz to create this)

4) Start firefox. Browse to about:config and change the following values:

media.fragmented-mp4* = true
media.fragmented-mp4.use-blank-decoder = false [if you're getting green video blocks, this is probably not set correctly]
media.mediasource.enabled = true
media.mediasource.mp4.enabled = true

5) Test via YouTube or an online HTML5 Video/audio test page. First bug check is to just restart firefox.

In my case, failed video was due to missing extensions: gst-plugins-ugly with x264 provides mp4 playback. Failed audio was due to an incorrect system audio setup: ALSA alone fails; gst-plugins-good gives firefox access to pulseaudio.

HTH

coreplayer2:
Great, thanks for this info

however...

--- Quote ---firefox-official (I used firefox-get.tcz to create this)
--- End quote ---
firefox-get is outdated, instead use the updated firefox-latest extension (based on firefox-get) which will auto-detect and create a firefox-official extension based on the latest version of firefox, or a version of your choice if specified for both tc5.x & tc6.x  in  x86 & x86_64 repo's

The thought now crossed my mind to rename the firefox-latest to firefox-get  and continue with updates to that extension ?? 

dentonlt:
Thanks for this, coreplayer. I think you're right - I would have used the firefox-latest extension. Typo on my part.

I'll fix the original text, above =)

EDIT: Hmm. Or maybe I won't - no edit tab there now. Must be new timeout policy since I was last in :p

pq5190362:

--- Quote from: dentonlt on June 06, 2015, 05:05:55 AM ---If anyone has luck without pulseaudio (ALSA only) or just has a faster/slimmer way, I'll be interested to hear.

[...]

In my case, failed video was due to missing extensions: gst-plugins-ugly with x264 provides mp4 playback. Failed audio was due to an incorrect system audio setup: ALSA alone fails; gst-plugins-good gives firefox access to pulseaudio.
--- End quote ---

Unfortunately the Firefox extensions in the Tiny Core Linux repos are not built with --enable-gstreamer=1.0 and therefore Firefox can only use the old and outdated GStreamer 0.10 instead of the new GStreamer 1.0 (1.x).

I've asked coreplayer2 to build the Firefox extensions with --enable-gstreamer=1.0 in the respective thread:

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

On Ubuntu 15.10 for example, Firefox is built with --enable-gstreamer=1.0 and then gst-plugins-ugly does not seem to be needed. gst-plugins-base and gst-plugins-good seem to suffice when using GStreamer 1.0 (1.x), at least on Ubuntu.

So, it would be really nice if coreplayer2 would build the Firefox extensions with --enable-gstreamer=1.0.

Regards

dentonlt:
Ah - of course. I think coreplayer2 has focused on wrapping pre-built binaries, but this definitely points in the right direction for a build script. I'll experiment with this.

Sent from my HTC_0P6B6 using Tapatalk

Navigation

[0] Message Index

[#] Next page

Go to full version