Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Youtube - How to force 480p video quality in embed link / <iframe>

Tags:

youtube

iframe

How to force 480p video quality for iframed Youtube videos?

Sample code:

<iframe width="560" height="315" src="http://www.youtube.com/embed/FqRgAs0SOpU" frameborder="0" allowfullscreen></iframe> 
like image 690
tomexx Avatar asked Apr 19 '12 13:04

tomexx


People also ask

How do I add quality to YouTube links?

To force a specific video quality during playback, add the VQ parameter to the URL to specifically set the video quality, regardless of the window size. For example, using the code below causes the video to play at 480p by default. (The highest for this particular video.) Notice this URL uses the vq=large parameter.

Why does YouTube reduce quality to 480p?

The cap on video quality was implemented to ease load on the networks, which had seen unprecedented surge across the world due to coronavirus lockdown. YouTube has removed the standard definition video quality restriction on smartphones, including iOS and Android devices, but not for everyone.


2 Answers

Append the following parameter to the Youtube-URL:

144p: &vq=tiny
240p: &vq=small
360p: &vq=medium
480p: &vq=large
720p: &vq=hd720

For instance:

src="http://www.youtube.com/watch?v=oDOXeO9fAg4" 

becomes:

src="http://www.youtube.com/watch?v=oDOXeO9fAg4&vq=large" 
like image 60
Avatar Avatar answered Oct 05 '22 04:10

Avatar


You can also use for 1080 hd values:

240p: &vq=small , 360p: &vq=medium , 480p: &vq=large , 720p: &vq=hd720 , &vq=hd1080

like image 32
Danny Avatar answered Oct 05 '22 04:10

Danny