You are not logged in.

#1 2021-10-23 13:12:56

skythedragon
Member
Registered: 2021-10-12
Posts: 18

[SOLVED] Youtube videos don't work 95% of the time

SOLVED: Pihole was on and was blocking googlevideo, which causes issues with youtube videos.

As the title says, youtube videos don't play back most of the time for me. This goes for all browsers (firefox, chromium, min, even embedded in discord)

I randomly seemed to have been able to fix it by synchronizing the time, but this only worked once, and it worked once after installing the libva-mesa-driver.
Now it's broken again for whatever reason. Twitter videos, soundcloud still work fine, and on the video test website, only mpeg4 is not working when youtube isn't (haven't checked when it is working)

I have an AMD IGPU and an NVIDIA dedicated GPU. I've not done nvidia-xconfig as that causes x to crash (if I run it without arguments, haven't tested with)
By the looks of it x (and firefox) default to the IGPU.

I'm using the zen kernel and the NVIDIA drivers are installed via nvidia-dkms

Last edited by skythedragon (2021-10-24 21:35:03)

Offline

#2 2021-10-23 13:46:53

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: [SOLVED] Youtube videos don't work 95% of the time

Don't work means what exactly?
Black video (do you have sound), browser crashes, the javascript player failing, …
Do you use any browser extensions (notably adblockers) and does it work™ without them?
Can you play videos w/ mpv+youtube-dl or youtube-viewer?

In other words: Don't work means what exactly?

Offline

#3 2021-10-23 14:39:24

skythedragon
Member
Registered: 2021-10-12
Posts: 18

Re: [SOLVED] Youtube videos don't work 95% of the time

Don't work means: The video just becomes a black box with a loading icon in it. It doesn't play anything (sound, video, ads)
For the browser extensions I have ublock origin (on firefox), but that doesn't seem to affect it.
I'll try with mpv+youtubedl

Offline

#4 2021-10-23 14:47:12

skythedragon
Member
Registered: 2021-10-12
Posts: 18

Re: [SOLVED] Youtube videos don't work 95% of the time

Ok looks like it can't connect:

mpv https://www.youtube.com/watch?v=Jm932Sqwf5E
[ffmpeg] tcp: Connection to tcp://r7---sn-32o-guhl.googlevideo.com:443 failed: Connection refused
Failed to open https://r7---sn-32o-guhl.googlevideo.com/videoplayback?expire=1635021849&ei=uR90YYmJEdmP1gL4uJboCQ&ip=86.82.236.141&id=o-ALtdsBHKGscGt4-Nqz4uB8Y0LhPGMy0-mUg3UZRIZQSl&itag=248&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=wp&mm=31%2C29&mn=sn-32o-guhl%2Csn-32o-5hnl&ms=au%2Crdu&mv=m&mvi=7&pl=26&initcwndbps=2788750&vprv=1&mime=video%2Fwebm&ns=XxwuqIx7FdRrvPdtRPu7JWMG&gir=yes&clen=2333946719&dur=7693.085&lmt=1613355857915877&mt=1634999814&fvip=7&keepalive=yes&fexp=24001373%2C24007246&c=WEB&txp=5432432&n=f6qODvvHfSuONOOB33u&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRAIgG8e5w4gURg5QvpZt-1VhBjl7eiorCIooZR-QDDpyXugCIDCX85wFcLwKmODabjbn03sjTooVK0zq7FEUOhYghNMz&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAMVqIPPqpbrME9tqzl36w738yGlvJcb7gFqLS9kU07pcAiEAy6vXJXnNZPdrZ9JER00Z61yjiUHSHd9V_uRxnz6ZSdw%3D.
EDL: Could not open source file 'https://r7---sn-32o-guhl.googlevideo.com/videoplayback?expire=1635021849&ei=uR90YYmJEdmP1gL4uJboCQ&ip=86.82.236.141&id=o-ALtdsBHKGscGt4-Nqz4uB8Y0LhPGMy0-mUg3UZRIZQSl&itag=248&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=wp&mm=31%2C29&mn=sn-32o-guhl%2Csn-32o-5hnl&ms=au%2Crdu&mv=m&mvi=7&pl=26&initcwndbps=2788750&vprv=1&mime=video%2Fwebm&ns=XxwuqIx7FdRrvPdtRPu7JWMG&gir=yes&clen=2333946719&dur=7693.085&lmt=1613355857915877&mt=1634999814&fvip=7&keepalive=yes&fexp=24001373%2C24007246&c=WEB&txp=5432432&n=f6qODvvHfSuONOOB33u&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRAIgG8e5w4gURg5QvpZt-1VhBjl7eiorCIooZR-QDDpyXugCIDCX85wFcLwKmODabjbn03sjTooVK0zq7FEUOhYghNMz&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAMVqIPPqpbrME9tqzl36w738yGlvJcb7gFqLS9kU07pcAiEAy6vXJXnNZPdrZ9JER00Z61yjiUHSHd9V_uRxnz6ZSdw%3D'.
No video or audio streams selected.

Offline

#5 2021-10-23 14:58:28

seth
Member
Registered: 2012-09-03
Posts: 51,017

Re: [SOLVED] Youtube videos don't work 95% of the time

VPN?
Firewall?
Bad system time?
Flaky network connection?

TZ=UTC date
find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

Offline

#6 2021-10-23 15:24:04

skythedragon
Member
Registered: 2021-10-12
Posts: 18

Re: [SOLVED] Youtube videos don't work 95% of the time

I don't have a VPN, not sure about firewall. Regular webbrowsing works fine (both ethernet and wifi)
Might be system time, here's the output:

Sat Oct 23 03:22:20 PM UTC 2021
dbus-org.freedesktop.nm-dispatcher.service | system
dbus-org.freedesktop.timesync1.service   | system
dirmngr.socket                           | sockets.target.wants
getty@tty1.service                       | getty.target.wants
gpg-agent-browser.socket                 | sockets.target.wants
gpg-agent-extra.socket                   | sockets.target.wants
gpg-agent.socket                         | sockets.target.wants
gpg-agent-ssh.socket                     | sockets.target.wants
NetworkManager.service                   | multi-user.target.wants
NetworkManager-wait-online.service       | network-online.target.wants
ntpd.service                             | multi-user.target.wants
p11-kit-server.socket                    | sockets.target.wants
pulseaudio.socket                        | sockets.target.wants
remote-fs.target                         | multi-user.target.wants
systemd-timesyncd.service                | sysinit.target.wants

Offline

#7 2021-10-23 15:24:39

skythedragon
Member
Registered: 2021-10-12
Posts: 18

Re: [SOLVED] Youtube videos don't work 95% of the time

In other news: it suddenly started to work again

Edit: stopped too

Last edited by skythedragon (2021-10-23 15:34:59)

Offline

#8 2021-10-23 15:25:42

skythedragon
Member
Registered: 2021-10-12
Posts: 18

Re: [SOLVED] Youtube videos don't work 95% of the time

At least via browser, mpv still gets the connection refused

Offline

#9 2021-10-23 15:33:31

skythedragon
Member
Registered: 2021-10-12
Posts: 18

Re: [SOLVED] Youtube videos don't work 95% of the time

I might have pihole enabled somewhere, I'll see if I can turn that off
Edit: Pihole was running, I've disabled it for my laptop, and now ytdl, mpv and regular youtube work.
I'll try it for a bit and mark this as solved if I don't encounter any further issues

Last edited by skythedragon (2021-10-23 16:29:10)

Offline

#10 2021-10-24 21:33:20

skythedragon
Member
Registered: 2021-10-12
Posts: 18

Re: [SOLVED] Youtube videos don't work 95% of the time

Yep can confirm it was pihole. Turning pihole on/off caused/fixed the issue.

Offline

Board footer

Powered by FluxBB