Bug 227121 - [GTK][MiniBrowser] Video can not be played HLS
Summary: [GTK][MiniBrowser] Video can not be played HLS
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: Other
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-17 06:58 PDT by luigifab
Modified: 2021-06-27 06:29 PDT (History)
2 users (show)

See Also:


Attachments
Screenshot of the browser error (86.69 KB, image/png)
2021-06-17 06:58 PDT, luigifab
no flags Details
gst.log (727.23 KB, text/x-log)
2021-06-26 11:37 PDT, luigifab
no flags Details
gst-inspect-1.0 hlsdemux (2.99 KB, text/plain)
2021-06-26 11:37 PDT, luigifab
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description luigifab 2021-06-17 06:58:03 PDT
Created attachment 431660 [details]
Screenshot of the browser error

OS: Debian Testing amd64
Package: libwebkit2gtk-4.0-37 (v2.32.1-2) (http://ftp2.fr.debian.org/debian/pool/main/w/webkit2gtk/libwebkit2gtk-4.0-37_2.32.1-2_amd64.deb)

Command line used: /usr/lib/x86_64-linux-gnu/webkit2gtk-4.0/MiniBrowser --enable-media-stream=True --enable-encrypted-media=True --enable-media-capabilities=True

Go to: https://developer-tools.jwplayer.com/stream-tester
Check "Force type to HLS" and click on "Test Stream" button.

Result is: This video file cannot be played. (Error Code: 102630)
Do the same with Firefox 89, Chrome 91, Edge 91, Opera 77, no error.


I found and installed the package gstreamer1.0-wpe, same result.
How to fix the problem?
Comment 1 Philippe Normand 2021-06-26 07:11:01 PDT
(In reply to luigifab from comment #0)
> Created attachment 431660 [details]
> Screenshot of the browser error
> 
> OS: Debian Testing amd64
> Package: libwebkit2gtk-4.0-37 (v2.32.1-2)
> (http://ftp2.fr.debian.org/debian/pool/main/w/webkit2gtk/libwebkit2gtk-4.0-
> 37_2.32.1-2_amd64.deb)
> 
> Command line used: /usr/lib/x86_64-linux-gnu/webkit2gtk-4.0/MiniBrowser
> --enable-media-stream=True --enable-encrypted-media=True
> --enable-media-capabilities=True
> 

None of these should matter for this page.

> Go to: https://developer-tools.jwplayer.com/stream-tester
> Check "Force type to HLS" and click on "Test Stream" button.
> 
> Result is: This video file cannot be played. (Error Code: 102630)
> Do the same with Firefox 89, Chrome 91, Edge 91, Opera 77, no error.
> 
> 
> I found and installed the package gstreamer1.0-wpe, same result.

gstreamer1.0-wpe is not used either for this page.

> How to fix the problem?

Please set these env vars and share the gst.log file.
GST_DEBUG="3,webkit*:6" GST_DEBUG_FILE="gst.log"

What is the output of gst-inspect-1.0 hlsdemux ?
Did you install gst-plugins-bad?
Comment 2 luigifab 2021-06-26 11:37:01 PDT
Created attachment 432331 [details]
gst.log

I have now installed gstreamer1.0-plugins-bad and gstreamer1.0-gl.
When I run the browser with:

GST_DEBUG="3,webkit*:6" GST_DEBUG_FILE="gst.log" /usr/lib/x86_64-linux-gnu/webkit2gtk-4.0/MiniBrowser https://developer-tools.jwplayer.com/stream-tester

Video is readable, there is sound but video is always black.
Comment 3 luigifab 2021-06-26 11:37:54 PDT
Created attachment 432332 [details]
gst-inspect-1.0 hlsdemux

Here is the output of gst-inspect-1.0 hlsdemux.
Thanks.
Comment 4 Philippe Normand 2021-06-27 02:00:44 PDT
Now you need an h.264 decoder. Try to install gstreamer1.0-libav.
Comment 5 luigifab 2021-06-27 06:29:04 PDT
Your are right. Now it works. Thank you very much.