This course will become read-only in the near future. Tell us at community.p2pu.org if that is a problem.

Collecting and Moving Video Metadata [Dec. 16, 2012, 4:15 a.m.]



Video Metadata can move in mysterious ways.

Metadata as a part of the video

As we say in one of the introductory sections, there are a limited number of standard metadata fields that can be included, or subtitle metadata can be included in some


Metadata as external files

Srt files are often delivered in torrent files in subdirectories -

Metadata as part of a repository system

Systems like Pandora that

There is often no clear way of moving this metadata from one repository to another.

Metadata as part of a repository system

Hands On - Drupal + Feeds for MRSS

As part of the Open Video Forum, there was a presentation of the aims of the transmission.cc website. Part of the aim of that website was to act as an aggregator and searchable archive of video metadata.

[developer/installer notes]

It used the Drupal content management system as base to build on and extended the functionality already present in existing Drupal modules. 

The feeds are pulled with the http://drupal.org/project/feeds module. It uses the simplepie parser variant. Simple pie parse MRSS out of the box but feeds doesn't know what to do with this data.

It also uses an extention module to read the MRSS. This module is checked out as a submodule but is also now in a sandbox on drupal.org https://drupal.org/sandbox/ekes/1867408

In the transmission.cc site there are two content types for feeds: 'MRSS feed' and  'Video'. Posting a new 'MRSS feed' with the URL of the RSS feed adds that to the list of feeds that are pulled. Items in the feed are created as 'Video' nodes.

The node types, and the feeds settings to use them, and to map which parts of a feed item to which parts of the node, are stored in a 'feature' [this is a way of storing settings in Drupal, the main module is http://drupal.org/project/features ].

The relevant feature for this is the one found in 'tx/modules/features/mrss_feeds'

To make the site itself output MRSS in the RSS feed there is another module, again included but now also in a sandbox

 

The complete transmission.cc code can be found at:
  git://git.iskra.net/drupal/projects/tx
This is a git repository with submodules [
http://git-scm.com/book/th/Git-Tools-Submodules ]. If you're on the command line to get the rest of the code you then type (in the git repository you just pulled):
  $ git submodule init
  $ git submodule update
If you're using your favourite gui there should be a way of getting all the submodules.

All the code is standard Drupal and contrib with a couple of important additions.