jvolker / Openframe-VLC

Openframe extension to play video and image content via VLC.
2 stars 1 forks source link

Youtube video on Pi 4 fails to play. #2

Open jmwohl opened 4 years ago

jmwohl commented 4 years ago

Testing using this extension on a Pi 4 with a YouTube video failed with the following error:

[b1d18a90] lua stream error: Couldn't extract youtube video URL, please check for updates to this script

Doing a little searching led me to the solution here, which worked — seems like the lua script that scrapes the youtube page for the video needs to be updated when youtube makes changes...

So I had to remove the existing script that came with the VLC install and add the latest one from VLC source:

sudo rm /usr/lib/arm-linux-gnueabihf/vlc/lua/playlist/youtube.luac
sudo curl "http://git.videolan.org/p=vlc.git;a=blob_plain;f=share/lua/playlist/youtube.lua;hb=HEAD" -o "/usr/lib/arm-linux-gnueabihf/vlc/lua/playlist/youtube.luac"

It's possible that just updating VLC would have fixed this, which I didn't do — so maybe it would be worth adding the vlc install / upgrade to latest version in the install.sh for this extension?

jvolker commented 4 years ago

Thanks for the report. Will test it myself when I have access to my Openframe setup again.

maybe it would be worth adding the vlc install / upgrade to latest version in the install.sh for this extension?

Yeah, I was planning on doing that. I think users should get asked during install if they want to upgrade though.

jvolker commented 4 years ago

I wanted to try this but I do get other errors now:

vlcpulse audio output error: PulseAudio connection failure: Connection refused
main interface error: no suitable interface module
main libvlc error: interface "globalhotkeys,none" initialization failed

Not sure what the reason is. Sounds unrelated to the Youtube issue. Maybe this is related to rotating the screen. I might have to use a fresh Raspian image. Before I've figured this out I can't work on this issue though.

@jmwohl can you please confirm what VLC version you have installed and how your screen is rotated?