NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.08k stars 14.06k forks source link

epiphany: cant play videos #221102

Open ghost opened 1 year ago

ghost commented 1 year ago

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`
jtojnar commented 1 year ago

What environment variable did you set?

Epiphany should already have GStreamer set up by default:

https://github.com/NixOS/nixpkgs/blob/7943ea66b6c1c671d44066c5e17df766836e9b13/pkgs/desktops/gnome/core/epiphany/default.nix#L79-L84

ghost commented 1 year ago

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 commented 1 year ago

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

bobby285271 commented 1 year ago

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

ghost commented 1 year ago

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 commented 1 year ago

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