Postby rfrazier » 09 Nov 2019 06:09
Part 1 of 2 by rfrazier.
(I believe the following can be done on Windows even though I did it on Raspbian.)
Hello, my name is Ron. I'm a newbie to the forum but am a long time user of VLC on multiple platforms including Windows, Linux, and now Raspbian (Raspberry Pi.) What I'm about to describe was done on my Raspberry Pi but I think it's applicable to other OS's. At the bottom, I have some questions I need help with as well. This turned out to be long, but bear with me.
I've set up a new Raspberry Pi 4 to serve as a driver for a video projector so I don't have to lug my laptop around. I learned that VLC could play youtube videos, possibly better than the browser, but have also learned that it usually pulls up a low res video instead of the higher quality.
I've been virtually pulling my hair out trying to find a solution. Well, after hours and hours of searching, I've found one, although it's a bit kludgy.
Maybe some of you developers can figure out how this works under the covers and incorporate it into VLC. Or, maybe some of you can write a script to do this.
I've tried this on VLC 3.0.8 on Raspbian 10 (buster). Procedures should be similar on other systems. I'm using the Chromium 74.0 browser but I doubt that matters.
The following article was quite helpful in putting me onto this procedure.
How to Watch YouTube (above 720p DASH streams) in VLC
https://www.reddit.com/r/youtube/comments/3ijei1/how_to_watch_youtube_above_720p_dash_streams_in/
which mentions this article
YouTube Audio Quality Bitrate Used For 360p, 480p, 720p, 1080p, 1440p, 2160p
(old 2015)
https://www.h3xed.com/web-and-internet/youtube-audio-quality-bitrate-240p-360p-480p-720p-1080p
which mentions a website we'll use below.
The main problem seems to be that many of youtube's videos split the audio and video apart and don't give you a high res audio video link from the basic url.
Well, it turns out that it IS possible to stream hi res video and audio separately and simultaneously in VLC and merge them on playback. You just have to go to some trouble. This is actually harder to type and read than it is to do once you get used to it.
The best way to explain is to show you the procedure. I'm doing this without being signed into youtube, but even so, your results could be different. Also, this uses an external website to analyze youtube videos. This works today but who knows how long it will.
Let's say I go to youtube and search for ragtime piano. Then I filter by HD. This is the url for the list that appears:
https://www.youtube.com/results?search_query=ragtime+piano&sp=EgIgAQ%253D%253D
As an example, I chose the first video to appear as I'm writing this:
ALAN THOMPSON JR. RAGTIME PIANO PERFORMANCE AT DISNEYLAND
and its url is:
https://www.youtube.com/watch?v=cOJb2qx1QAU
01) Copy the url from the address bar of your browser for whatever youtube video you choose after opening the individual page for the video.
02) Now go to this website:
YouTube Info Tool
http://www.h3xed.com/blogmedia/youtube-info.php
I'm not running javascript for most sites, so I might not see everything on this site, but it still works. You'll see a blank that says paste youtube url or video id here.
03) Paste the url of the video you selected in the blank and hit enter. In my case, it's what I showed above:
https://www.youtube.com/watch?v=cOJb2qx1QAU
continued in part 2.
Last edited by
rfrazier on 09 Nov 2019 06:22, edited 1 time in total.