YouTube command line in VLC player - quality control?

I am trying to make a little script that includes playing YouTube videos from the command line using VLC. I am using Windows 7 with VLC in the search path.

Enter

vlc http://www.youtube.com/watch?v=v0faacLn8K4 

plays video, but always at the highest level. In an Internet browser, adding the term "& fmt = 18" results in a low resolution mode. However, using this on the command line,

 vlc http://www.youtube.com/watch?v=v0faacLn8K4&fmt=18 

gives an error:

 ´fmt´ is not recognized as an internal or external command, operable program or batch file. 

I tried linking to the URL with various quotes, but to no avail. All link is passed to VLC, including quotation marks.

What is the solution for this? Is there a VLC switch to select stream quality? the VLC command prompt may have an answer, but understanding the meaning of all the switches is a bit superior to me.

Music Credit: By Your Side by Breakbot

+6
source share
3 answers

Go to the VLC directory from the command line and enter

 vlc "http://www.youtube.com/watch?v=v0faacLn8K4&fmt=18" 

It works for me.

+9
source

Install Streamlink :

 sudo -H pip install streamlink 

Send stream to cvlc --fullscreen :

 streamlink --player="cvlc --fullscreen" "https://www.youtube.com/freecodecamp/live" best 

To save bandwidth, you can use worst instead of best .
Also posted here .

0
source

Do you need to run from the command line?

If you just start VLC and then use “Ctrl + N” to open the “Open Media” dialog box, which will be located on the “Network” tab, you can enter URL + “& fmt = 18” in the “Please enter Network URL: "area.

those. just the full path without quotes.

Works with my VLC version 2.2.1.

0
source

All Articles