12 ms·
VLC already supports Youtube URLs via an included lua script[1]. You can feed the URL as an argument or open it from a VLC window with Ctrl+n, which is equivale
by jolmg 6y ago
VLC already supports Youtube URLs via an included lua script[1]. You can feed the URL as an argument or open it from a VLC window with Ctrl+n, which is equivalent to using the menu for "Media > Open Network Stream...". It's failing me at the moment, though. Perhaps the script needs updating.
It's a valid argument to perhaps modify the script to use youtube-dl when available, since it might be more reliable. Merging the 2 projects doesn't make sense when one can just optionally depend on the other.
If you're looking for a video player that uses youtube-dl to support Youtube URLs, mpv[2] does that. Just feed it Youtube URLs as arguments to make your playlist. You can also pass in the option --no-video to just play the sound of the youtube video. You can probably pass in options to mpv to play all the videos of a Youtube playlist URL, too.
> Maybe a more generic question is why aren't there more integrations of the form x in y while both are open source and would clearly improve the user experience?
Because it's work. If you see something is lacking in open source, it's because nobody has wanted it badly enough to do the work themselves. And even if somebody did, choosing to share their work is another matter.
[1] https://code.videolan.org/videolan/vlc-3.0/-/blob/d590d61de4001c9ddb155613bbe9b269a9fc9daa/share/lua/playlist/youtube.lua https://code.videolan.org/videolan/vlc-3.0/-/blob/d590d61de4...
[2] https://mpv.io/ https://mpv.io/