Tiny Core Extensions > TCE Tips & Tricks

firefox: enable HTML5 video + audio

<< < (3/6) > >>

pq5190362:

--- Quote from: coreplayer2 on October 18, 2015, 02:42:45 AM ---Firefox > YouTube > HTML5 - Video with sound has been supported for quite some time

I watch HTML5 video in Firefox all the time though I prefer using flash
Am I missing something?

--- End quote ---

Yes, you do seem to miss something, but let me explain ;):

First of all, I guess this thread is not really about HTML5 video in general, but rather specifically about MP4 (H.264 video / AAC audio) instead.

Yes, of course Firefox supports HTML5 video and audio for quite some time.

But there's a difference between WebM (VP8/VP9 video and Vorbis/OPUS audio) and MP4 (H.264 video and AAC audio).

Firefox for Linux supports WebM directly, but not MP4.

On Linux, Firefox currently relies on GStreamer to play MP4 (H.264/AAC) via HTML5.

Currently Firefox makes use of the old and outdated GStreamer 0.10 by default.

But since Firefox 30, it can also use the new GStreamer 1.x, see: https://bugzilla.mozilla.org/show_bug.cgi?id=806917.

But GStreamer 1.x currently is not being used by default, see: https://bugzilla.mozilla.org/show_bug.cgi?id=947287.

To make Firefox use the new GStreamer 1.x, you need to build it with:


--- Code: -----enable-gstreamer=1.0
--- End code ---

;)

On Ubuntu for example, Firefox is built with --enable-gstreamer=1.0, so that it uses the new GStreamer 1.x.

So, it would be nice if firefox-ESR.tcz and firefox-getLatest.tcz would also be built with --enable-gstreamer=1.0, so that Firefox on Tiny Core Linux would also use the new GStreamer 1.x.

For the 5.x x86_64/6.x x86_64 repos this would even be mandatory for MP4 playback in Firefox, because the 5.x x86_64/6.x x86_64 repos do not have gst-ffmpeg.tcz (which would be for GStreamer 0.10). They only have gst-libav.tcz, which is for GStreamer 1.x.

By the way:

Starting with Firefox 43 or 44, Mozilla seems plan to do MP4 (H.264/AAC) HTML5 video on Linux directly via FFmpeg/Libav instead of GStreamer, so that GStreamer will no longer be needed, see:

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

Actually I have just tested the latest Firefox Nightly 44.0a1 on Ubuntu and set media.gstreamer.enabled to false in about:config and completely uninstalled GStreamer and Firefox Nightly 44.0a1 could still play MP4 (H.264/AAC) via HTML5 and all the boxes on youtube.com/html5 were still checked :) :D.

So, GStreamer indeed is no longer required with Firefox 44 to be able to play MP4 via HTML5 :). The only thing that needs to be installed is FFmpeg/Libav and then Firefox 44 can play MP4 via HTML5 :). From reading https://bugzilla.mozilla.org/show_bug.cgi?id=1207429 and all the associated bugs, it seems like this might actually even work on Firefox 43 already, but not sure, I've only tested Firefox 44.

Anyway:

Since it will take quite a few more weeks for firefox-getLatest.tcz to reach version 43 or 44 and even months for firefox-ESR.tcz to reach version 45 (the next ESR version), it would still be nice if firefox-ESR.tcz and firefox-getLatest.tcz would be built with --enable-gstreamer=1.0 until then.

If that would be easy, then it would be nice if you could do it.

But if it would involve a lot of extra work, then I'd say it might probably be better to simply leave it as is and simply wait for Firefox to reach version 43 or 44 and for Firefox ESR to reach version 45, since it will no longer need GStreamer then ;).

Regards

coreplayer2:
html5 video is supported, however I agree H.264 support is not yet supported, but I believe that's just a matter of time.



pq5190362:

--- Quote from: coreplayer2 on October 18, 2015, 03:13:24 PM ---html5 video is supported, however I agree H.264 support is not yet supported, but I believe that's just a matter of time.

--- End quote ---

Sorry, but did you even read my post :o :-\?

If you would have read my post, then you would know that H.264 is already supported...

All you need to do is install:

ffmpeg.tcz
gstreamer0.10.tcz
gst-plugins-base0.10.tcz
gst-plugins-good0.10.tcz
gst-plugins-bad0.10.tcz
gst-plugins-ugly0.10.tcz
gst-ffmpeg.tcz

and making sure that media.gstreamer.enabled is set to true in about:config, then Firefox can do MP4 (H.264/AAC)...

That was even explained in post #1 by dentonlt...

What I asked you to do is building Firefox with --enable-gstreamer=1.0, so that one can use the NEW 1.x versions of:

gstreamer.tcz
gst-plugins-base.tcz
gst-plugins-good.tcz
gst-plugins-bad.tcz
gst-plugins-ugly.tcz
gst-libav.tcz

instead of the OLD 0.10 versions...

Regards

coreplayer2:
I'm talking about native support, which I think is inevitable..
 

Additionally, the goals of firefox-getLatest.tcz are:

1: provide an effective means to install the latest firefox release from scratch
2. provide ability to update a previous installed firefox version to the latest release
3. minimize the confusion from having various firefox versions in the repo

We accomplish this with a script "firefox-getLatest.sh" which downloads the latest stable prebuilt Firefox binary release (and if specified in a users language) direct from Mozilla.  Then package the extension per tinycore's specifications for immediate use.   

To cut a long story short; While Mozilla continue to provide prebuilt stripped and stable firefox binaries, we have no requirement to compile our own binaries.  therefore compiling with the --enable-gstreamer=1.0 option is a request for upstream Mozilla.

regards


pq5190362:
Okay.


--- Quote from: coreplayer2 on October 18, 2015, 05:04:40 PM ---therefore compiling with the --enable-gstreamer=1.0 option is a request for upstream Mozilla.
--- End quote ---

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


--- Quote from: coreplayer2 on October 18, 2015, 05:04:40 PM ---I'm talking about native support, which I think is inevitable..
--- End quote ---

Well, as already mentioned, beginning with Firefox 43 or 44, GStreamer will no longer be needed (only FFmpeg/Libav will be needed):

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

Regards

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version