• Benvenuto su Altrove Consulting Forum.
 

Link url per video di youtube con risoluzione HD e altri parametri utili

Aperto da Max Brezzi, Mercoledì, 04 Aprile 2012, 19:23:25 PM

Discussione precedente - Discussione successiva

0 Utenti e 1 Visitatore stanno visualizzando questa discussione.

Max Brezzi

Link ufficiale di google per i parametri Player di Youtube:

https://developers.google.com/youtube/player_parameters

Generatore di Google per parametri per player youtube:

https://developers.google.com/youtube/youtube_player_demo

------

Per mandare un link che apra direttamente un video youtube in HD 720 in finestra piena del browser e parte automaticamente:

es: http://www.youtube.com/v/qCFa47rdAwY?hl=en&fs=1&autoplay=1

Anche questo piu' corto fa stesse cosa senza autoplay e con player versione nuova

es: http://www.youtube.com/v/qCFa47rdAwY?version=3

Questo fa vedere il video senza menu con i comandi in basso

es: http://www.youtube.com/apiplayer?video_id=qCFa47rdAwY&version=3

Player HTML5 compatibile in HD 720:

es: http://www.youtube.com/embed/qCFa47rdAwY

Per mandare un link per un video youtube in HD 720:

es:
http://www.youtube.com/watch?v=qCFa47rdAwY&feature=related&hd=1


qui generatore di codice html da inserire in blog o altro: http://screencastprofits.com/youtube/


qui i vari parametri da usare nella url ricavati dal generatore:

http://www.youtube.com/v/Q0sE2zoEXiw&hd=1&hl=en&fs=1&egm=1&autoplay=1&loop=1&color2=0x000000&ap=&fmt=22&showinfo=1


Altro link con tutti i consigli e parametri usabili: http://www.techairlines.com/2010/08/21/useful-youtube-url-tricks/


----

Altro link per evitare i cookie e visione a schermo intero (da verificare a chi corrisponde questo dominio e cosa fa esattamente)

https://www.youtube-nocookie.com/embed/VO1WKsbjpSk
;)
Massimiliano Brezzi

Max Brezzi

Useful YouTube URL Tricks
BRIAN YANG / AUGUST 21, 2010 / 141 COMMENTS
YouTubeEver wanted to share a YouTube video with someone but want to share just a certain part of it without having them start from the beginning? Need to have a video automatically loop?

YouTube URLs can be modified with various query string parameters to change certain features and how to video player works. In most cases, parameters follow the video URL with an ampersand (&). The most commonly seen parameter is probably &feature=related which shows that the video was found through clicking on a Related Video. This parameter basically does absolutely nothing for the actual user though.

This guide is outdated. Check out my updated version of this guide, including an easy to use URL and embed code generator, at the following link:
Useful YouTube Player Parameters
There are many URL parameters you can add to YouTube video URLs as well as the embed codes. Let's start with the video URL.

Click here to jump to the Embedded Video URL Parameters.

Video URL Parameters

There are parameters to add to the URL of a YouTube video. Video ID is a placeholder for the YouTube video ID which is the string of alphanumeric characters after the watch?v=.

High Quality Videos

YouTube supports up to HD quality videos, but some videos might not have an HD format available. Some might just have a High Quality option available. To create a link that automatically loads the video in HQ or HD, simply add &fmt=6 (480p HQ FLV), &fmt=18 (480p MP4) or &fmt=22 (720p HD) to the end of the video URL.

Update: YouTube has made many changes recently and the fmt parameter does not seem to work anymore. For HD, add &hd=1 instead. The fmt parameter no longer does anything.

This example video link will start automatically in 720p HD (&hd=1).

http://www.youtube.com/watch?v=Video ID&hd=1
Skip to Specific Time

Suppose you're trying to share a video clip with someone, but you don't really think its necessary for them to watch the whole thing from the beginning. You can specify where the video should start as well as easily jump to a specific point by adding #t=7m30s. The number in front of the 'm' is the minute and in front of the 's' would be seconds. In this example, I'm skipping to 7:30.

This example video link will automatically skip to 1:32 (#t=1m32s).

http://www.youtube.com/watch?v=Video ID#t=1m32s
Browser Window Full Size Player

This will load a large player that fills your entire browser window.

Simply replace the '?' and '?=' in the URL to '/' and remove 'watch'.

http://www.youtube.com/embed/Video ID
This example video will start in a full size player.

Prevent Video from Autoplaying

Same procedure as using the large player. This player does not start playing automatically. If you are using this full size player and want it to autoplay, then simply add ?autoplay=1 to the end of the URL. Use an ampersand (&autoplay=1) if this is not the only parameter.

http://www.youtube.com/embed/Video ID?autoplay=1
Loop Video

There are many online websites offering this functionality (often involving just changing the domain name), but there is no need to use an external service because YouTube actually has this built in.

Same procedure as using the large player, but add ?loop=1. Use an ampersand (&loop=1) if this is not the only parameter. This is very useful for looping music.

http://www.youtube.com/v/Video ID?loop=1
Embedding Videos URL Tricks

The video URL in the source code for embedded YouTube videos also allows for various query string parameters in addition to the ones provided by YouTube in the embed video options.

Video-ID is a placeholder for the YouTube video ID which is the string of alphanumeric characters after the watch?v=.

Start the parameter string using a ? question mark. Then, use an ampersand & to connect additional parameters. An example parameter would be http://www.youtube.com/embed/VIDEO-ID?modestbranding=1&rel=0.

Since this is HTML, all ampersands must be replaced with & or it won't be validated markup.

For these examples, replace PARAMETER with the provided parameters (excluding the ampersands). Highlighted lines show where changes are needed.

1
2
3
4
5
6
<object width="480" height="385">
<param name="movie" value="http://www.youtube.com/v/VIDEO-ID?fs=1&amp;hl=en_US"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/VIDEO-ID?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed>
</object>
Then the modified code would be:

1
2
3
4
5
6
<object width="480" height="385">
<param name="movie" value="http://www.youtube.com/v/VIDEO-ID?fs=1&amp;hl=en_US&amp;PARAMETER"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/VIDEO-ID?fs=1&amp;hl=en_US&amp;PARAMETER" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed>
</object>
For the new iframe embed method, its easier since there is only one URL.

<iframe width="560" height="349" src="http://www.youtube.com/embed/VIDEOID?PARAMETER&amp;PARAMETER2" frameborder="0" allowfullscreen></iframe>
Embed High Quality Videos

Add the following parameters to embed a higher quality video:

&vq=small – 240p
&vq=medium – 360p
&vq=large – 480p
&vq=hd720 – 720p

Of course, if the quality is not available, this parameter won't do anything.

Autoplay

By default, embedded videos do not autoplay. If you want the videos to autoplay, simply add &autoplay=1 to the URL.

Auto Loop

If you want your videos to automatically loop, simply add &loop=1.

Hide Search Box

Want to prevent users from searching for other videos on your embedded video? Simply add &showsearch=0 to the end of the URLs, which currently appear twice in the standard embed code.

Disable Related Videos

By default, YouTube videos show links to several related videos at the end. However, this might be videos of your competitors and you certainly don't want that. To turn off related videos, add &rel=0.

No Related Videos
This embedded video does not show any related videos thanks to a parameter.
Remove YouTube Branding

You can now remove the YouTube branding from the video. This can make videos look more professional. Add the parameter ?modestbranding=1.

So your code will look like this:

<iframe width="560" height="349" src="http://www.youtube.com/embed/VIDEOID?modestbranding=1&amp;rel=0" frameborder="0" allowfullscreen></iframe>
For removing the branding, this parameter should be first or it might not work properly.

Here is a video using the embed URL with the YouTube logo removed and related videos disabled.

Remove Title

When a user hovers over an embedded video, the title of the video shows. This also serves as a link back to the video page on YouTube. If you want to hide it, use the parameter ?showinfo=0.

Note that this does NOT work with removing the YouTube branding. Adding this parameter causes the modestbranding parameter to break.

Disable Backlink

To disable any backlinks to YouTube, add a a parameter allownetworking to the Flash object and set it to internal. This only works on the old embed code. See this comment for more details.

Please note that disabling the backlink may be a violation of Section 4F of the YouTube Terms of Service. Since YouTube is a free service, you should provide this backlink.

Start Video from Specific Point

If you want the embedded video to start from a specific point rather than the beginning, simply add &start=60. The number is in seconds.

Disable Fullscreen

Do you want to prevent your viewers from watching the video in full screen? Configuring this is slightly different from the other options.

In the video URL, toggle both fs=1 to fs=0. Then toggle both AllowFullScreen options to false. This is a total of 4 changes. Your code should look like this.

1
2
3
4
5
6
<object width="480" height="385">
<param name="movie" value="http://www.youtube.com/v/VIDEO-ID?fs=0&amp;hl=en_US&amp;PARAMETER"></param>
<param name="allowFullScreen" value="false"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/VIDEO-ID?fs=0&amp;hl=en_US&amp;PARAMETER" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="false" width="480" height="385"></embed>
</object>
;)
Massimiliano Brezzi