"YouTube HTML5 player not working in Pale Moon for Linux"

Please reproduce your error on a second machine before posting, and check the error by running without saved changes or extra modules (See FAQ No. 13, "How to report a bug"). For unstable Porteus versions (alpha, beta, rc) please use the relevant thread in our "Development" section.
Post Reply
User avatar
Rava
Contributor
Contributor
Posts: 1319
Joined: 11 Jan 2011, 02:46
Distribution: Porteus 3.1.0 x86-64 XFCe
Location: Germany

"YouTube HTML5 player not working in Pale Moon for Linux"

Post#1 by Rava » 24 Dec 2015, 06:23

As found in the thread of the same name "YouTube HTML5 player not working in Pale Moon for Linux"
These are the steps to make HTML5 audio and video work in Pale Moon on PCLinuxOS (with KDE):
  1. Set the preference media.gstreamer.enabled in about:config to "true".
  2. Install the "gstreamer1.0-libav" package.
  3. Make sure the following packages are installed as well:
    • ffmpeg
    • gstreamer0.10-ffmpeg
    • x264
So far, so doable. But I have no PCLinuxOS, and I don't run KDE, but XFCe.

While I am working on tweaking the tzm into xzm's, I have no clue of how to do the next part:
Open the PCLinuxOS Control Center, click Hardware > Sound Configuration, enable the "Glitch-Free mode", and click "Ok".
I first tried following this thread Enable Media Source Extensions, MSE & H.264, Firefox, Opera and realized that when running a current x86-64 palemoon, you have none of the mentioned setting Boolean value existing, so first I tried enabling them all, but it still failed. Then I looked into the palemoon forum and found the above solution.


Any ideas how to do that settings "Control Center, click Hardware > Sound Configuration, enable the "Glitch-Free mode", and click "Ok"" when running XFCe?

Why does the XFCe settings manager has no "sound" or "hardware" config part anyway?

Searching the XFCe menu for either "sound" or "hardware" also gives me no entries.


UPDATE
After rebooting, I try it again in a fresh system.

For now, I created and activated the following modules:
ffmpeg-2.6.4-x86_64_custom-1ponce.xzm
gst-ffmpeg-0.10.13-x86_64-2ponce.xzm
gst1-plugins-ugly-1.4.5-x86_64-1ponce.xzm
gstreamer1-1.4.5-x86_64-1ponce.xzm
x264-20150223-x86_64-1ponce.xzm

According to the PM forum article (linked above), I only created the boolean media.gstreamer.enabled

Seems, some stuff ismissing but I have no clue why,or where to find it. Also no clue if it's even needed:

Code: Select all

root@porteus:/# gst-inspect-1.0 

(gst-plugin-scanner:5185): GStreamer-WARNING **: Failed to load plugin '/usr/lib64/gstreamer-1.0/libgsta52dec.so': libgstaudio-1.0.so.0: cannot open shared object file: No such file or directory

(gst-plugin-scanner:5185): GStreamer-WARNING **: Failed to load plugin '/usr/lib64/gstreamer-1.0/libgstamrnb.so': libgstaudio-1.0.so.0: cannot open shared object file: No such file or directory

(gst-plugin-scanner:5185): GStreamer-WARNING **: Failed to load plugin '/usr/lib64/gstreamer-1.0/libgstamrwbdec.so': libgstaudio-1.0.so.0: cannot open shared object file: No such file or directory

(gst-plugin-scanner:5185): GStreamer-WARNING **: Failed to load plugin '/usr/lib64/gstreamer-1.0/libgstasf.so': libgstriff-1.0.so.0: cannot open shared object file: No such file or directory

(gst-plugin-scanner:5185): GStreamer-WARNING **: Failed to load plugin '/usr/lib64/gstreamer-1.0/libgstcdio.so': libgstaudio-1.0.so.0: cannot open shared object file: No such file or directory

(gst-plugin-scanner:5185): GStreamer-WARNING **: Failed to load plugin '/usr/lib64/gstreamer-1.0/libgstdvdlpcmdec.so': libgstaudio-1.0.so.0: cannot open shared object file: No such file or directory

(gst-plugin-scanner:5185): GStreamer-WARNING **: Failed to load plugin '/usr/lib64/gstreamer-1.0/libgstdvdsub.so': libgstvideo-1.0.so.0: cannot open shared object file: No such file or directory

(gst-plugin-scanner:5185): GStreamer-WARNING **: Failed to load plugin '/usr/lib64/gstreamer-1.0/libgstlame.so': libgstaudio-1.0.so.0: cannot open shared object file: No such file or directory

(gst-plugin-scanner:5185): GStreamer-WARNING **: Failed to load plugin '/usr/lib64/gstreamer-1.0/libgstmad.so': libgstaudio-1.0.so.0: cannot open shared object file: No such file or directory

(gst-plugin-scanner:5185): GStreamer-WARNING **: Failed to load plugin '/usr/lib64/gstreamer-1.0/libgstmpeg2dec.so': libgstvideo-1.0.so.0: cannot open shared object file: No such file or directory

(gst-plugin-scanner:5185): GStreamer-WARNING **: Failed to load plugin '/usr/lib64/gstreamer-1.0/libgstrmdemux.so': libgstrtsp-1.0.so.0: cannot open shared object file: No such file or directory

(gst-plugin-scanner:5185): GStreamer-WARNING **: Failed to load plugin '/usr/lib64/gstreamer-1.0/libgsttwolame.so': libgstaudio-1.0.so.0: cannot open shared object file: No such file or directory

(gst-plugin-scanner:5185): GStreamer-WARNING **: Failed to load plugin '/usr/lib64/gstreamer-1.0/libgstx264.so': libgstvideo-1.0.so.0: cannot open shared object file: No such file or directory
coreelements:  valve: Valve element
coreelements:  multiqueue: MultiQueue
coreelements:  typefind: TypeFind
coreelements:  tee: Tee pipe fitting
coreelements:  filesink: File Sink
coreelements:  queue2: Queue 2
coreelements:  queue: Queue
coreelements:  output-selector: Output selector
coreelements:  input-selector: Input selector
coreelements:  identity: Identity
coreelements:  funnel: Funnel pipe fitting
coreelements:  filesrc: File Source
coreelements:  fdsink: Filedescriptor Sink
coreelements:  fdsrc: Filedescriptor Source
coreelements:  fakesink: Fake Sink
coreelements:  fakesrc: Fake Source
coreelements:  downloadbuffer: DownloadBuffer
coreelements:  capsfilter: CapsFilter
xingmux:  xingmux: MP3 Xing muxer
dvdread:  dvdreadsrc: DVD Source
staticelements:  bin: Generic bin
staticelements:  pipeline: Pipeline object

Total count: 17 plugins (13 blacklist entries not shown), 22 features
But it seems, due to usm again not working (see the usm bug thread for that), I missed dependencies, seems jack is needed:

Code: Select all

rava@porteus:/mnt/live/memory/images$ ffplay 
ffplay: error while loading shared libraries: libjack.so.0: cannot open shared object file: No such file or directory
And the dependencies are quite the overkill, as it seems:

Code: Select all

rava@porteus:/mnt/live/memory/images$ ldd /usr/bin/ffplay|grep not
	libjack.so.0 => not found
	libdc1394.so.22 => not found
	libopenal.so.1 => not found
	libcaca.so.0 => not found
	libvidstab.so.0.9 => not found
	libopencv_core.so.2.4 => not found
	libopencv_imgproc.so.2.4 => not found
	libflite_cmu_us_awb.so.1 => not found
	libflite_cmu_us_kal.so.1 => not found
	libflite_cmu_us_kal16.so.1 => not found
	libflite_cmu_us_rms.so.1 => not found
	libflite_cmu_us_slt.so.1 => not found
	libflite_usenglish.so.1 => not found
	libflite_cmulex.so.1 => not found
	libflite.so.1 => not found
	libssh.so.4 => not found
	libsmbclient.so.0 => not found
	librtmp.so.1 => not found
	libquvi.so.7 => not found
	libmodplug.so.1 => not found
	libzvbi.so.0 => not found
	libx265.so.59 => not found
	libschroedinger-1.0.so.0 => not found
	libilbc.so.2 => not found
	libfdk-aac.so.1 => not found
	libcelt0.so.2 => not found
*le sigh*

UPDATE 2
Now I also have jack-audio-connection-kit-0.124.1-x86_64-1ponce.xzm

The missing dependencies of ffplay are not really that much better:

Code: Select all

rava@porteus:/mnt/live/memory/images$ ldd /usr/bin/ffplay|grep not
	libdc1394.so.22 => not found
	libopenal.so.1 => not found
	libcaca.so.0 => not found
	libvidstab.so.0.9 => not found
	libopencv_core.so.2.4 => not found
	libopencv_imgproc.so.2.4 => not found
	libflite_cmu_us_awb.so.1 => not found
	libflite_cmu_us_kal.so.1 => not found
	libflite_cmu_us_kal16.so.1 => not found
	libflite_cmu_us_rms.so.1 => not found
	libflite_cmu_us_slt.so.1 => not found
	libflite_usenglish.so.1 => not found
	libflite_cmulex.so.1 => not found
	libflite.so.1 => not found
	libssh.so.4 => not found
	libsmbclient.so.0 => not found
	librtmp.so.1 => not found
	libquvi.so.7 => not found
	libmodplug.so.1 => not found
	libzvbi.so.0 => not found
	libx265.so.59 => not found
	libschroedinger-1.0.so.0 => not found
	libilbc.so.2 => not found
	libfdk-aac.so.1 => not found
	libcelt0.so.2 => not found
and to boot, jackd is also not working:

Code: Select all

root@porteus:/x/porteus/HTML5# jackd  --realtime --driver=alsa
jackd 0.124.1
Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details

could not open driver .so '/usr/lib64/jack/jack_net.so': libcelt0.so.2: cannot open shared object file: No such file or directory

JACK compiled with System V SHM support.
loading driver ..
creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 32bit integer little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 16bit little-endian
ALSA: use 2 periods for playback
Illegal instruction
Okay, seems Ponce ffmpeg is either broken,or needs additional modules, since the alienBOB version works fine. I now have ffmpeg-2.8-x86_64-1alien.xzm

Code: Select all

rava@porteus:/mnt/live/memory/images$ ffplay 
ffplay version 2.8 Copyright (c) 2003-2015 the FFmpeg developers
  built with gcc 4.8.2 (GCC)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/doc/ffmpeg-2.8 --mandir=/usr/man --enable-gnutls --enable-gpl --enable-version3 --enable-avfilter --enable-avresample --enable-libass --enable-libdc1394 --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-postproc --enable-runtime-cpudetect --enable-vaapi --enable-vdpau --enable-memalign-hack --enable-pthreads --enable-x11grab --enable-bzlib --enable-zlib --enable-shared --enable-static --disable-debug --arch=x86_64 --enable-pic --extra-cflags='-I/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/include -I/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/include/SDL -DRUNTIME_CPUDETECT' --extra-ldflags='-L/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/lib64 -ldl -lssl -lcrypto -lz -lusb' --pkg-config-flags=--static
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
Simple media player
usage: ffplay [options] input_file

An input file must be specified
Use -h to get full help or, even better, run 'man ffplay'
Playback test of ffplay :

Code: Select all

[mp3 @ 0x7fa71c000900] Skipping 0 bytes of junk at 310.  0B f=0/0   
Input #0, mp3, from '/my/path/to.mp3':
  Metadata:
    major_brand     : dash
    minor_version   : 0
    compatible_brands: iso6mp41
    encoder         : Lavf54.29.104
  Duration: 00:55:08.75, start: 0.025057, bitrate: 213 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 213 kb/s
  16.63 M-A:  0.000 fd=   0 aq=   23KB vq=    0KB sq=    0B f=0/0    
See? :D
Cheers!
Yours Rava

aus9

Re: "YouTube HTML5 player not working in Pale Moon for Linux

Post#2 by aus9 » 24 Dec 2015, 11:40

Hi
I don't use PM but in the search bar for about:config if one of the settings is not there, you can create it. It is not clear to me,you have all settings but I don't need the "ignore" setting to pass the youtube tick box tests

Forgive me sucking eggs but I first do a search in about:config using mediasource gives me 3 hits all with values of default boolean true (also true for next group)
for media.mediasource.enabled, media.mediasource.mp4.enabled, media.mediasource.webm.enabled

Next I search term "fragmented"
I get all 3 hits as per Tone's tutorial but I also have one more
media.fragmented-mp4.use-blank-decoder

######################
I would agree with you that you need ffmpeg and x264

Looking at my gstreamer search results I get one extra called
media.gstreamer.enable-blacklist

searching for h264 (lower case H not capital) I get 7 hits but I am not sure how many are relevant so will only mumble the total
and 4 hits for webm


I realise I might be a bit rude here, but have you considered trying the PM on Nemesis?
:D

User avatar
Rava
Contributor
Contributor
Posts: 1319
Joined: 11 Jan 2011, 02:46
Distribution: Porteus 3.1.0 x86-64 XFCe
Location: Germany

Re: "YouTube HTML5 player not working in Pale Moon for Linux

Post#3 by Rava » 24 Dec 2015, 11:46

aus9 wrote:Hi
I don't use PM but in the search bar for about:config if one of the settings is not there, you can create it. It is not clear to me,you have all settings but I don't need the "ignore" setting to pass the youtube tick box tests
The address is always visible, that's an security option I don't want to miss, there is so much dark matter in the intertubes, I want to see if the link I amon is really the one it said it is... </digress>

Look up PM on wikipedia. It is quite FFx compatible, but more old-style looking,and they kick out all the newer GUI only bloated code while including all and every security updated code as soon as it is available. So, full FFx fun, but a more slim footprint. :)
aus9 wrote:I realise I might be a bit rude here, but have you considered trying the PM on Nemesis?
:D
I would be happy when I get everything in okay working order with my regular old-style porteus.


But yes, since usm is so buggy anyway why not at least fire up another machine and try out Nemesis.
Cheers!
Yours Rava

aus9

Re: "YouTube HTML5 player not working in Pale Moon for Linux

Post#4 by aus9 » 24 Dec 2015, 11:54

edit as suggested.

I found that a forum believes PM can not support full resolution.
http://forums.anandtech.com/showpost.ph ... ostcount=5
YouTube uses MSE to provide you with 480p and 1080p.
MSE is not implemented in Palemoon and we have no plans on supporting it
https://forum.palemoon.org/viewtopic.php?f=29&t=8138
above link is a post dated 8 nov 2015
Last edited by aus9 on 24 Dec 2015, 12:29, edited 1 time in total.

User avatar
Rava
Contributor
Contributor
Posts: 1319
Joined: 11 Jan 2011, 02:46
Distribution: Porteus 3.1.0 x86-64 XFCe
Location: Germany

Re: "YouTube HTML5 player not working in Pale Moon for Linux

Post#5 by Rava » 24 Dec 2015, 12:07

^
The folks on the PM forum say that 720p is the max resolution you get... so, your above quote seems not really accurate.

But first I need HTML5 to run. :evil:


(Above quote, when you restored your post, that is....)
Cheers!
Yours Rava

aus9

Re: "YouTube HTML5 player not working in Pale Moon for Linux

Post#6 by aus9 » 24 Dec 2015, 12:30

Hi
The folks on the PM forum say that 720p is the max resolution you get... so, your above quote seems not really accurate.
I disagree....720 is less than 1080p so me thinks link is really really accurate
:friends:

User avatar
Rava
Contributor
Contributor
Posts: 1319
Joined: 11 Jan 2011, 02:46
Distribution: Porteus 3.1.0 x86-64 XFCe
Location: Germany

Re: "YouTube HTML5 player not working in Pale Moon for Linux

Post#7 by Rava » 24 Dec 2015, 13:30

^
Your quote says they use that MSE to provide 480p and 1080p, while Palemoon can use up to 720p (that is more than 480p) without the need of MSE.
That was what I meant...

At least when using flash, 1080p is no problem.
I could make you a screenshot, if I would not be too lazy for that, especially today.


The issue here is HTML5 and HQ video. And it seems, PM only goes up to 720p, but needs no MSE for that.
Cheers!
Yours Rava

Post Reply