Yoast: Video SEO: A technical guide

As mentioned in a previous post, recently I have started playing with Video SEO, and found it to be a part of SEO I quite like. It’s a very technical trade so far, so apologies for all the code in the article lying in front of you, but there just is no way around it: you’ll need to know about the technical part of these implementations.

Talking about that, it seems as though everyone is focussing on XML Sitemaps, while there’s actually not 1 but 4 methods of getting Google to recognize your video content.

Video SEO consists of 3 parts: indexation, ranking and click through optimization. While I might cover #2 and #3 in a later article, I’m focusing on the technical aspects of Video SEO for this article, and thus on the methods of getting your video’s indexed. I’ll focus mainly on Video SEO for Google, as I haven’t really looked at other search engines so far in testing.

XML Video Sitemaps

There’s several ways to tell Google you’ve got video on your site. The most well known, and probably also easiest, is the XML Video Sitemap. Just like a normal XML Sitemap, this sitemap contains URL’s, and for each URL it contains a video section, outlining all the details about that video, from its location and / or player location to its keywords.

class="wp_syntax"> class="code">
<url> <loc>http://example.com/video/</loc> <video:video> <video:title>Sitemap Example Video</video:title> <video:publication_date> 2010-06-17T18:00:00UTC </video:publication_date> <video:player_loc allow_embed="yes"> http://example.com/video/player.swf </video:player_loc> <video:content_loc> http://example.com/video/video.mp4 </video:content_loc> <video:thumbnail_loc> http://example.com/video/poster.png </video:thumbnail_loc> <video:description> example description of a sitemap example video </video:description> <video:category>Example Videos</video:category> <video:tag>Examples</video:tag> <video:tag>Videos</video:tag> <video:tag>Xml Sitemap</video:tag> <video:duration>180</video:duration> </video:video>
</url>

Most of the attributes of a video are optional, but you need either a location or a player, preferably both, and a “poster“ image. We’ll touch on the image later on, but remember to add this for each and every video.

Once you’ve created an XML video sitemap, make sure to submit it to Google through Google’s Webmaster Tools. While you can submit it manually, you can also ping Google with the URL of the sitemap every time you’ve updated it. Pinging Google is very simple, just open the following URL (replacing the sitemap URL with your own, of course):

http://www.google.com/webmasters/tools/ping?sitemap=http://example.com/sitemap.xml

Within Google Webmaster Tools you can also check whether Google understands your sitemap, or if it’s missing any vital components.

MediaRSS

Another way of telling Google that your site carries video, that also uses XML, is by adding MediaRSS tags to your RSS feed, and then submitting your RSS feed to Google as a sitemap.

MediaRSS is a standard conceived by Yahoo!, which Google fully supports for the discovery of all sorts of Rich Media, ranging from images to video. Because it’s an add on to your RSS feed, this has one downside compared to XML video sitemaps: usually it’ll only contain your last 10, 20 or 100 posts, while you might have hundreds of posts and pages containing video. The upside is there too: for a lot of sites, their RSS feed get’s indexed very regularly, allowing for fast inclusion of your video in Google’s index.

class="wp_syntax"> class="code">
<media:content 
 url="http://example.com/video/video.mp4" 
 medium="video" 
 duration="180"> <media:player 
 url="http://example.com/video/player.swf?file=video.mp4" /> <media:thumbnail 
 url="http://example.com/video/poster.png"/> <media:title type="html">Sitemap Example Video</media:title> <media:description type="html"> Example description of a sitemap example video </media:description> <media:keywords> Examples,Videos,XML Sitemap </media:keywords>
</media:content>