Answer the question
In order to leave comments, you need to log in
How to open vlc player from bash?
Given:
" a couple of direct links to 1080p audio and video stream from youtube"
obtained via youtube-dl -g
how do I pass them to vlc ?
I used to use the youtube.lua script for vlc ,
but it doesn’t work with the old one, although it was updated 2 months ago,
apparently YouTubers resaw their API again :(
yes, it only picks up 720p with it,
it’s better through youtube-dl (+ it has already been updated) , you can also 1080p,
but I don’t know how to do it from the terminal, how to start vlc ???
if so, it only opens the video :(
vlc $(youtube-dl -g https://www.youtube.com/watch?v=fTMXYj_a0Wo)
Answer the question
In order to leave comments, you need to log in
It turned out that everything is solved very simply))
vlc 'VIDEO_DIRECT_LINK' --input-slave 'AUDIO_DIRECT_LINK'
This parameter is mentioned only in the extended help vlc -H
,
but in the usual vlc --help
one there is not a word about it.
Given:
"a couple of direct links to a 1080p audio and video stream from youtube"
obtained via youtube-dl -g
$ youtube-dl --list-formats "https://www.youtube.com/watch?v=fTMXYj_a0Wo"
$ youtube-dl --list-formats "https://www.youtube.com/watch?v=fTMXYj_a0Wo" | grep best
22 mp4 1280x720 720p 740k , avc1.64001F, 30fps, mp4a.40.2 (44100Hz) (best)
youtube-dl --format="397+bestaudio" -g "https://www.youtube.com/watch?v=fTMXYj_a0Wo"
youtube-dl --format="bestvideo[height<=?1080]+bestaudio" -g "https://www.youtube.com/watch?v=fTMXYj_a0Wo"
youtube-dl --format="bestvideo[height<=?1080][vcodec^=h264]+bestaudio/best[height<=?1080]/best" -g "https://www.youtube.com/watch?v=fTMXYj_a0Wo"
Tried youtube-dl + MPV player.
Works by default, without dancing with a tambourine. )))
ytdl-format="...."
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question