LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-26-2019, 07:42 AM   #1
oren_daniel
LQ Newbie
 
Registered: Apr 2019
Location: Ra'anana Israel
Distribution: Debian
Posts: 13

Rep: Reputation: Disabled
[Help] Webkit can't play videos altough gstreamer is installed.


I am using a webkit based browser, and I have the following installed:
-gstreamer
-gst-libav
-gst-plugins-base
-gst-plugins-bad
-gst-plugins-good
-gst-plugins-ugly

When I go for example to youtube, and try to play a video I get white screen and a loading circle, after a few seconds I get a screen which tells me that "an error occured".

The strange thing is when I do the same with gnome Web which is also webkit based, everythings works fine.

What should I do to make webkit play videos?
thanks for the help!
 
Old 06-26-2019, 11:46 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
And pray tell what is the identity of this browser?
Why do you guard its secret?
Please start it in a terminal, make it misbehave, and show us what it spits out.

Your servant,

o.
 
Old 06-26-2019, 04:14 PM   #3
oren_daniel
LQ Newbie
 
Registered: Apr 2019
Location: Ra'anana Israel
Distribution: Debian
Posts: 13

Original Poster
Rep: Reputation: Disabled
Hello ondoho thanks for the quick response
Quote:
And pray tell what is the identity of this browser?
Why do you guard its secret?
I use a browser called Luakit.
However I am also interseted in embeding a webkit browser in some of my projects so I am asking a general question about webkit.

Quote:
Please start it in a terminal, make it misbehave, and show us what it spits out.
I tried to open a terminal and run Luakit from there but it doesn't report anything when it misbehaves.
 
Old 06-26-2019, 04:17 PM   #4
oren_daniel
LQ Newbie
 
Registered: Apr 2019
Location: Ra'anana Israel
Distribution: Debian
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Please start it in a terminal, make it misbehave, and show us what it spits out.
[ 34.096648] I [lua/webview]: Requested link: https://www.youtube.com/watch?v=3X9LvC9WkkQ (text/html)
This is what it spits when I open a video, if it helps.
 
Old 06-27-2019, 12:51 PM   #5
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,138
Blog Entries: 6

Rep: Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827
Have a look at youtube-dl
Code:
youtube-dl -F https://www.youtube.com/watch?v=3X9LvC9WkkQ
[youtube] 3X9LvC9WkkQ: Downloading webpage
[youtube] 3X9LvC9WkkQ: Downloading video info webpage
[info] Available formats for 3X9LvC9WkkQ:
format code  extension  resolution note
249          webm       audio only DASH audio   59k , opus @ 50k, 1.30MiB
250          webm       audio only DASH audio   76k , opus @ 70k, 1.69MiB
140          m4a        audio only DASH audio  128k , m4a_dash container, mp4a.40.2@128k, 3.05MiB
171          webm       audio only DASH audio  134k , vorbis@128k, 2.93MiB
251          webm       audio only DASH audio  143k , opus @160k, 3.18MiB
278          webm       192x144    144p   73k , webm container, vp9, 25fps, video only, 1.42MiB
160          mp4        192x144    144p   83k , avc1.4d400b, 25fps, video only, 909.82KiB
242          webm       320x240    240p  167k , vp9, 25fps, video only, 2.33MiB
133          mp4        320x240    240p  183k , avc1.4d400d, 25fps, video only, 1.59MiB
243          webm       480x360    360p  305k , vp9, 25fps, video only, 4.44MiB
134          mp4        480x360    360p  455k , avc1.4d4015, 25fps, video only, 3.73MiB
244          webm       640x480    480p  564k , vp9, 25fps, video only, 8.00MiB
135          mp4        640x480    480p  869k , avc1.4d401e, 25fps, video only, 8.32MiB
18           mp4        480x360    medium , avc1.42001E, mp4a.40.2@ 96k, 10.97MiB
43           webm       640x360    medium , vp8.0, vorbis@128k, 15.07MiB (best)
Make a little script using it.
Code:
1) Quit      3) Formats   5) Listen    7) GetURL
2) Search    4) Watch     6) Download  8) ClearLog

Select an option.:  7
Enter/Paste Utube URL:  https://www.youtube.com/watch?v=3X9LvC9WkkQ
What format number?  Ex: 0 18 22 139 140:  18
https://r2---sn-vgqskne6.googlevideo.com.....
Download it/save it...play with a media player...take the audio out of it....etc.
Won't matter what browser that you use.
 
Old 06-27-2019, 12:59 PM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by oren_daniel View Post
I use a browser called Luakit.
OK.
What version, on what distro, is the distro up-to-date.
AFAIK luakit hasn't seen any development at all for a few years now. The version in debian stretch is from 2012, they really should just chuck it out

Try surf (although that hasn't seen much development recently either).

Last edited by ondoho; 06-27-2019 at 01:00 PM.
 
Old 06-27-2019, 03:55 PM   #7
oren_daniel
LQ Newbie
 
Registered: Apr 2019
Location: Ra'anana Israel
Distribution: Debian
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
OK.
What version, on what distro, is the distro up-to-date.
AFAIK luakit hasn't seen any development at all for a few years now. The version in debian stretch is from 2012, they really should just chuck it out

Try surf (although that hasn't seen much development recently either).
I am using both Arch and Debian 9, I compile luakit from source, using webkit2gtk 2.24.2-1, so I am using its latest version.

I know for a fact that luakit can play videos because I once got it working on my last computer.

I tried surf and it also doesn't solve my problem because it is also based on webkit.

As I understand the problem, it doesn't concern which browser I am using because all browsers(which aren't firefox) use the same engine webkit, so I either I am missing a codecs or a decoding package in gstreamer or I have installed webkit differently than the last time I got it working.

If you got video decoding working on surf thats awesome I would like to hear how you achieved it because than I can achieve the same with any webkit based browser.

If you need further information about the distro or package version I will be happy to provide it to you.
 
Old 06-27-2019, 03:57 PM   #8
oren_daniel
LQ Newbie
 
Registered: Apr 2019
Location: Ra'anana Israel
Distribution: Debian
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by teckk View Post
Have a look at youtube-dl
Code:
youtube-dl -F https://www.youtube.com/watch?v=3X9LvC9WkkQ
[youtube] 3X9LvC9WkkQ: Downloading webpage
[youtube] 3X9LvC9WkkQ: Downloading video info webpage
[info] Available formats for 3X9LvC9WkkQ:
format code  extension  resolution note
249          webm       audio only DASH audio   59k , opus @ 50k, 1.30MiB
250          webm       audio only DASH audio   76k , opus @ 70k, 1.69MiB
140          m4a        audio only DASH audio  128k , m4a_dash container, mp4a.40.2@128k, 3.05MiB
171          webm       audio only DASH audio  134k , vorbis@128k, 2.93MiB
251          webm       audio only DASH audio  143k , opus @160k, 3.18MiB
278          webm       192x144    144p   73k , webm container, vp9, 25fps, video only, 1.42MiB
160          mp4        192x144    144p   83k , avc1.4d400b, 25fps, video only, 909.82KiB
242          webm       320x240    240p  167k , vp9, 25fps, video only, 2.33MiB
133          mp4        320x240    240p  183k , avc1.4d400d, 25fps, video only, 1.59MiB
243          webm       480x360    360p  305k , vp9, 25fps, video only, 4.44MiB
134          mp4        480x360    360p  455k , avc1.4d4015, 25fps, video only, 3.73MiB
244          webm       640x480    480p  564k , vp9, 25fps, video only, 8.00MiB
135          mp4        640x480    480p  869k , avc1.4d401e, 25fps, video only, 8.32MiB
18           mp4        480x360    medium , avc1.42001E, mp4a.40.2@ 96k, 10.97MiB
43           webm       640x360    medium , vp8.0, vorbis@128k, 15.07MiB (best)
Make a little script using it.
Code:
1) Quit      3) Formats   5) Listen    7) GetURL
2) Search    4) Watch     6) Download  8) ClearLog

Select an option.:  7
Enter/Paste Utube URL:  https://www.youtube.com/watch?v=3X9LvC9WkkQ
What format number?  Ex: 0 18 22 139 140:  18
https://r2---sn-vgqskne6.googlevideo.com.....
Download it/save it...play with a media player...take the audio out of it....etc.
Won't matter what browser that you use.
youtube-dl is a good idea, and in fact that is what I use now, I am just looking for a more "natural" way to play videos on my web browser.
 
Old 06-28-2019, 02:12 AM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by oren_daniel View Post
I am using both Arch and Debian 9, I compile luakit from source, using webkit2gtk 2.24.2-1, so I am using its latest version.

I know for a fact that luakit can play videos because I once got it working on my last computer.

I tried surf and it also doesn't solve my problem because it is also based on webkit.

As I understand the problem, it doesn't concern which browser I am using because all browsers(which aren't firefox) use the same engine webkit, so I either I am missing a codecs or a decoding package in gstreamer or I have installed webkit differently than the last time I got it working.

If you got video decoding working on surf thats awesome I would like to hear how you achieved it because than I can achieve the same with any webkit based browser.

If you need further information about the distro or package version I will be happy to provide it to you.
That is indeed a sufficiently new version of that particular webkit incarnation. But just FYI, there are several.

It also appears that I was wrong: luakit is very much alive; only the version in debian stable is stone old.

I am now installing luakit from the AUR on my arch machine. Did you also do that?
All optional dependencies are installed, both for webkit2gtk and luakit.
Code:
pacman -Qii luakit
pacman -Qii webkit2gtk
Youtube videos play alright:
Code:
$ luakit
[    0.022016] I [core/luah]: Loading rc: /etc/xdg/luakit/rc.lua
[    0.052220] I [lua/adblock]: found 0 filter lists
[    0.052246] I [lua/adblock]: subscriptions file '/home/ondoho/.local/share/luakit/adblock/subscriptions' doesn't exist
[    0.062817] I [lua/styles]: found 0 user stylesheets
[    0.063900] I [core/web_context]: Web process count: 4
[    3.830415] I [lua/webview]: Requested link: https://luakit.github.io/ (text/html)
[   16.010819] I [lua/webview]: Requested link: https://www.youtube.com/ (text/html)
[   39.595417] I [lua/webview]: Requested link: https://www.youtube.com/ad_companion?adformat=15_2_1&render=video_wall_companion&content=NtzftGb0EcM&ad_video_id=ceFhW_dgNCw&polymer=1 (text/html)

Last edited by ondoho; 06-28-2019 at 02:13 AM.
 
Old 06-28-2019, 03:11 AM   #10
oren_daniel
LQ Newbie
 
Registered: Apr 2019
Location: Ra'anana Israel
Distribution: Debian
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
That is indeed a sufficiently new version of that particular webkit incarnation. But just FYI, there are several.

It also appears that I was wrong: luakit is very much alive; only the version in debian stable is stone old.

I am now installing luakit from the AUR on my arch machine. Did you also do that?
All optional dependencies are installed, both for webkit2gtk and luakit.
Code:
pacman -Qii luakit
pacman -Qii webkit2gtk
Youtube videos play alright:
Code:
$ luakit
[    0.022016] I [core/luah]: Loading rc: /etc/xdg/luakit/rc.lua
[    0.052220] I [lua/adblock]: found 0 filter lists
[    0.052246] I [lua/adblock]: subscriptions file '/home/ondoho/.local/share/luakit/adblock/subscriptions' doesn't exist
[    0.062817] I [lua/styles]: found 0 user stylesheets
[    0.063900] I [core/web_context]: Web process count: 4
[    3.830415] I [lua/webview]: Requested link: https://luakit.github.io/ (text/html)
[   16.010819] I [lua/webview]: Requested link: https://www.youtube.com/ (text/html)
[   39.595417] I [lua/webview]: Requested link: https://www.youtube.com/ad_companion?adformat=15_2_1&render=video_wall_companion&content=NtzftGb0EcM&ad_video_id=ceFhW_dgNCw&polymer=1 (text/html)
Yes I also installed stock luakit from the AUR using luakit-git.

[oren@vaio ~]$ pacman -Qii webkit2gtk
Name : webkit2gtk
Version : 2.24.2-1
Description : GTK+ Web content engine library
Architecture : x86_64
URL : https://webkitgtk.org/
Licenses : custom
Groups : None
Provides : None
Depends On : libxt libxslt enchant gst-plugins-base-libs libsecret libwebp openjpeg2 harfbuzz-icu gtk3
libnotify hyphen woff2
Optional Deps : geoclue: Geolocation support [installed]
gst-plugins-good: media decoding [installed]
gst-plugins-bad: media decoding [installed]
gst-libav: nonfree media decoding [installed]
Required By : devhelp epiphany luakit-git zenity
Optional For : libproxy
Conflicts With : None
Replaces : None
Installed Size : 80.07 MiB
Packager : Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Build Date : Mon 20 May 2019 04:22:06 AM IDT
Install Date : Fri 21 Jun 2019 09:54:19 PM IDT
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
Backup Files :
(none)

[oren@vaio ~]$ pacman -Qii luakit
Name : luakit-git
Version : 1:2.1.r20.g6f809182-1
Description : Luakit: now updated for WebKit 2
Architecture : x86_64
URL : https://luakit.github.io
Licenses : GPL3
Groups : None
Provides : luakit
Depends On : webkit2gtk lua51-filesystem
Optional Deps : None
Required By : None
Optional For : None
Conflicts With : luakit
Replaces : None
Installed Size : 3.33 MiB
Packager : Unknown Packager
Build Date : Fri 28 Jun 2019 11:01:08 AM IDT
Install Date : Fri 28 Jun 2019 11:05:16 AM IDT
Install Reason : Explicitly installed
Install Script : No
Validated By : None
Backup Files :
UNMODIFIED /etc/xdg/luakit/rc.lua
UNMODIFIED /etc/xdg/luakit/theme.lua


Is the following outputs the same for you also?
 
Old 06-28-2019, 02:57 PM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by oren_daniel View Post
Yes I also installed stock luakit from the AUR using luakit-git.
(...)
Is the following outputs the same for you also?
There's two luakit packages in the AUR:
luakit and luakit-git. I installed luakit:
Code:
$ pacman -Qii luakit
Name            : luakit
Version         : 2.1-1
Description     : Browser framework based on Webkit and Lua
Architecture    : x86_64
URL             : https://luakit.github.io/
Licenses        : GPL3
Groups          : None
Provides        : None
Depends On      : webkit2gtk  lua51-filesystem  luajit
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 3.33 MiB
Packager        : Unknown Packager
Build Date      : Fri 28 Jun 2019 10:05:21 EEST
Install Date    : Fri 28 Jun 2019 10:06:05 EEST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : None
Backup Files    :
MISSING	/etc/xdg/luakit/globals.lua
UNMODIFIED	/etc/xdg/luakit/rc.lua
UNMODIFIED	/etc/xdg/luakit/theme.lua
MISSING	/etc/xdg/luakit/webview.lua
MISSING	/etc/xdg/luakit/webview_wm.lua
MISSING	/etc/xdg/luakit/window.lua

$ pacman -Qii webkit2gtk
Name            : webkit2gtk
Version         : 2.24.2-1
Description     : GTK+ Web content engine library
Architecture    : x86_64
URL             : https://webkitgtk.org/
Licenses        : custom
Groups          : None
Provides        : None
Depends On      : libxt  libxslt  enchant  gst-plugins-base-libs  libsecret  libwebp  openjpeg2
                  harfbuzz-icu  gtk3  libnotify  hyphen  woff2
Optional Deps   : geoclue: Geolocation support [installed]
                  gst-plugins-good: media decoding [installed]
                  gst-plugins-bad: media decoding [installed]
                  gst-libav: nonfree media decoding [installed]
Required By     : geany-plugin-markdown  gnome-online-accounts  java-openjfx  luakit  surf  yad
Optional For    : libproxy  wxgtk3
Conflicts With  : None
Replaces        : None
Installed Size  : 80.07 MiB
Packager        : Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Build Date      : Mon 20 May 2019 04:22:06 EEST
Install Date    : Thu 23 May 2019 07:54:31 EEST
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature
Backup Files    :
(none)
Please use code tags for this sort of output.

Last edited by ondoho; 06-28-2019 at 02:58 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] QupZilla 1.8.9 won't playback YouTube videos even with all the GStreamer plugins installed. athenian200 Gentoo 6 05-23-2016 10:08 PM
gstreamer package in current puts gstconfig.h in /usr/lib64/gstreamer-1.0/include akschu Slackware 5 11-26-2015 01:46 AM
gstreamer: play-pause of audio file hangs with gst-play command on Raspberry pi 2 Roronoa Zoro Linux - Newbie 2 10-14-2015 11:33 AM
[SOLVED] gstreamer-plugins-base conflicts with gstreamer-plugins-good Raveolution Linux - Software 14 11-17-2009 12:24 PM
LXer: GStreamer brings HTML5 video support to GTK/WebKit LXer Syndicated Linux News 0 12-17-2007 12:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:12 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