pystardust / ytfzf

A posix script to find and watch youtube videos from the terminal. (Without API)
GNU General Public License v3.0
3.77k stars 345 forks source link

Trouble using vlc #694

Open Paculino opened 1 year ago

Paculino commented 1 year ago

Before Making This Post

I have taken a look at both man pages, ytfzf(1) and ytfzf(5) as well as Issue 228

What do you need help with?

I am having trouble with using vlc rather than mpv. I have tried -u vlc, -u vlc-player, -u vlc --force-youtube, -u vlc-player --force-youtube, and editing the config to have:

video_player="vlc"
audio_player="vlc --no-video"

I get the following errors regardless of which method is used (vlc opens each time, but does not load):

main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00007f83a40486e0] lua stream error: Couldn't extract youtube video URL, please check for updates to this script
[000055db448aadc0] main playlist: playlist is empty
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu

Because of the lua stream error, I tried the --force-youtube option, but that did not change it. I have searched these errors and found that it may be caused by libav versions beyond 1.16, but gPodder successfully streams video and audio into vlc without these errors. I would attempt to downgrade libav, but I am on a Debian-stable based distro, and do not want to break it.

Euro20179 commented 1 year ago

Actually I'm having the same problem myself, I ran vlc 'https://youtube.com/watch?v=ceKMnyMYIMo' and it just doesn't work, I dont think there's anything I can do to fix this.

dimyself commented 6 months ago

just wanted to comment... ytfzf -u vlc does work for me

it allows me to play videos in vlc like this