Aggregating video feeds on your site using OpenPackage Video

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
jbrown's picture

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.