Aggregating video feeds

The major new feature of OpenPackage Video 5.x-3.8 is integration with Feed Element Mapper (feedapi_mapper).

The development of this functionality was sponsored by Hudson Street Media using our bounty system:
http://openpackage.biz/bounty/15
http://openpackage.biz/bounty/14

Feed Element Mapper is an add-on module for FeedAPI that maps a feed's elements such as tags or (in this case) videos to taxonomy or CCK fields on your site.

This enables your site to aggregate videos from other sites.

I have set up various video feeds on our site as a demonstration. Click on the 'Feed item' links to view the videos.

The following instructions assume that you have already setup a content type with a op_video field and that your site has been configured to transcode. Your php installation needs to have cURL support.

  1. Install feedapi and feedapi_mapper on your site.
  2. Download SimplePie and copy the file simplepie.inc from the archive to feedapi/parser_simplepie. It is necessary to use SimplePie parser, as Common syndication parser does not support enclosures.
  3. Enable the following modules:
    • FeedAPI Mapper
    • FeedAPI Node Views
    • FeedAPI
    • FeedAPI Node
    • SimplePie parser
  4. Check admin/logs/status to ensure that SimplePie has been installed correctly.
  5. Go to node/add/feedapi-node. Scroll down and enter your video feed url, e.g. http://www.lullabot.com/videocast/feed.
  6. Do not select 'Update existing feed items' as this will cause all the videos in the feed to be retranscoded every time the feed changes.
  7. Click on 'Processors' and select your node type that has an op_video field.
  8. Click 'Submit' and then click on the 'Map' tab.
  9. Scroll down to 'options->enclosures->video' and select the op_video option.
  10. Scroll down to the bottom and click 'Update', then click the 'Refresh' tab.
  11. Click on the 'Feed items' link - the videos have not yet been transcoded.
  12. Run cron.php / wait for it to run and the videos will appear.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Internal paths in double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or relative path.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h1> <h2> <h3> <h4> <b>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
Complete the challenge below to prove that you are a human being.