Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

epiphany: cant play videos #221102

Open
ghost opened this issue Mar 14, 2023 · 6 comments
Open

epiphany: cant play videos #221102

ghost opened this issue Mar 14, 2023 · 6 comments
Labels
0.kind: bug Something is broken

Comments

@ghost
Copy link

ghost commented Mar 14, 2023

Describe the bug

I tried to test it because I want see if hw media acceleration actually works now, but I've found out that it doesn't reproduce a single video at all!

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install epiphany
  2. Open it (called Web)
  3. Try to watch a video on youtube

Expected behavior

Video plays.

Additional context

I set the environment variable to have full gstreamer support on all apps that support it, and thought that could be interfering, but even disabling it, video still can't be played.

Notify maintainers

@jtojnar @bobby285271 @maxeaubrey

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - system: `"x86_64-linux"`
 - host os: `Linux 6.2.2-zen2, NixOS, 23.05 (Stoat), 23.05pre461993.0c4800d579a`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.3`
 - channels(root): `"nixos"`
 - channels(l911p): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@ghost ghost added the 0.kind: bug Something is broken label Mar 14, 2023
@jtojnar
Copy link
Member

jtojnar commented Mar 14, 2023

What environment variable did you set?

Epiphany should already have GStreamer set up by default:

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

@ghost
Copy link
Author

ghost commented Mar 14, 2023

This one

environment.variables.GST_PLUGIN_SYSTEM_PATH_1_0 = lib.makeSearchPathOutput "lib" "lib/gstreamer-1.0" [
				pkgs.gst_all_1.gst-plugins-base
				pkgs.pkgsi686Linux.gst_all_1.gst-plugins-base
				pkgs.gst_all_1.gst-plugins-good
				pkgs.pkgsi686Linux.gst_all_1.gst-plugins-good
				pkgs.gst_all_1.gst-plugins-bad
				pkgs.pkgsi686Linux.gst_all_1.gst-plugins-bad
				pkgs.gst_all_1.gst-plugins-ugly
				pkgs.pkgsi686Linux.gst_all_1.gst-plugins-ugly
				pkgs.gst_all_1.gst-libav
				pkgs.pkgsi686Linux.gst_all_1.gst-libav
				pkgs.gst_all_1.gst-vaapi
				pkgs.pkgsi686Linux.gst_all_1.gst-vaapi
			];

@ghost
Copy link
Author

ghost commented Mar 15, 2023

I disabled that, rebooted and tried to watch a video and it still didn't play. Re-enabled afterwards. :/

@bobby285271
Copy link
Member

bobby285271 commented Mar 15, 2023

Having issues with my VPN setup right now and cannot properly test 🙃. Some of the things I can think of:

  • Try the Flathub epiphany
  • Check the environment variables env | grep GST
  • Get some logs using GST_DEBUG="3,webkit*:6" GST_DEBUG_FILE="$HOME/gst.log" GST_DEBUG_NO_COLOR=1 WEBKIT_FORCE_SANDBOX=0 LANG=en_US.UTF-8 epiphany "https://insert-your-youtube-link-here.com", and look for errors in $HOME/gst.log
  • In a nix-shell -p gst_all_1.gst-libav -p gst_all_1.gst-plugins-bad -p gst_all_1.gst-plugins-base -p gst_all_1.gstreamer -p gst_all_1.gst-plugins-good -p gst_all_1.gst-plugins-ugly shell try to play the test videos with gst-play-1.0 --videosink glimagesink /path/to/video.

@ghost
Copy link
Author

ghost commented Mar 26, 2023

Check the environment variables

GST_PLUGIN_SYSTEM_PATH_1_0=/nix/store/ha7ch8yvf8vnskvpmzbjlbcy2pfyjs9m-gst-plugins-base-1.20.3/lib/gstreamer-1.0:/nix/store/jhps7krca8gvvrwv0dsk82jlflm5pz84-gst-plugins-base-1.20.3/lib/gstreamer-1.0:/nix/store/pdvly0xsq1s8375y234r25j4211gzm6k-gst-plugins-good-1.20.3/lib/gstreamer-1.0:/nix/store/a89vsqlscrqk9y3axjn2qffp69s9zdi6-gst-plugins-good-1.20.3/lib/gstreamer-1.0:/nix/store/59dsxx78bigjdqyrgnchv94vgajkxzss-gst-plugins-bad-1.20.3/lib/gstreamer-1.0:/nix/store/g8wi7v1kf7c5qap44qwzclyfpqn33pql-gst-plugins-bad-1.20.3/lib/gstreamer-1.0:/nix/store/06hr2k9shx38d2al4kyd2ahpqai508sm-gst-plugins-ugly-1.20.3/lib/gstreamer-1.0:/nix/store/5795paz1m7vb867arfxf0q0jddx4c2vn-gst-plugins-ugly-1.20.3/lib/gstreamer-1.0:/nix/store/aqn4ac2qbmmzqmhlcp2ahkhgnyqhs7d3-gst-libav-1.20.3/lib/gstreamer-1.0:/nix/store/6h5i6cfh3vf1m5whxambqg9931ph3xws-gst-libav-1.20.3/lib/gstreamer-1.0:/nix/store/yn7j91nlgjm2mh82dqdda6vja8fcql6l-gstreamer-vaapi-1.20.3/lib/gstreamer-1.0:/nix/store/gcz29pc69viakn8xjjmwflbq060xx8hy-gstreamer-vaapi-1.20.3/lib/gstreamer-1.0

Get some logs

gst.log

in a shell try to play the test videos

I tried the highest resolutions and they all work fine.

@dariof4
Copy link
Contributor

dariof4 commented Jun 6, 2023

I have the same problem, but videos work if setting WEBKIT_DISABLE_COMPOSITING_MODE=1 before launching epiphany, I think this issue has to do with nvidia drivers (I use the proprietary ones on a laptop) and webkitgtk.
This issue may be related: #32580

@dariof4 dariof4 mentioned this issue Jun 6, 2023
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

3 participants