Sitemap video

The standard sitemap format for videos concerns sharing sites and all sites that upload videos to the network. It allows search engines to index the contents of video files, including the title and description.
You can also index HTML pages containing videos inserted using the "engine" - the object or embed tag.
Video beacons cannot be added to a regular sitemap, it is placed in a specific file containing only the URL of the video: pages with video or video files.

Google supports the following extension formats: .mpg .mpeg .mp4 .mov .wmv .asf .avi .ram .rm .flv.
Files must be available over HTTP.

List of tags

You need to know that Google can use text on the page instead of the name and description specified in the tags.

global loc container

video: video container for URL.

video:content_loc a URL pointing to the video.

video:thumbnail_loc a URL that points to a thumbnail representing the video. In the absence of the image provided on the site, the Google robot creates it itself.

video: Video title, less than 100 characters.

Video: Description less than 2048 characters.

video:family_friendly Yes or No video for any audience (yes) or not.

Video: Duration in seconds, 0 to 28,800 or eight hours.

Only the loc and video: video beacons are required.

Example video site

Based on an example provided by Google.

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:video="https://www.google.com/schemas/sitemap-video/1.0">
<url>
  <loc>http://www.scriptol.com/videos/page-montrant-video.html</loc>
  <video:video>
    <video:content_loc>http://www.scriptol.com/video123.flv</video:content_loc>
    <video:player_loc allow_embed="yes">http://www.scriptol.com/videoplayer.swf?video=123</video:player_loc>
    <video:title>Ma vidéo</video:title>
    <video:thumbnail_loc>http://www.scriptol.com/thumbs/123.jpg</video:thumbnail_loc>
    <video:description>Ce que montre ma vidéo</video:description> 
  </video:video>
</url>
</urlset>

Size limit

The sitemap file is restricted to:
- 50,000 videos.
- 10 gigabytes.
In addition, you need to split it into several files and create an index file.