-
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.
To transcode your videos locally on your server, OpenPackage Video uses FFmpeg. This is free software, like Drupal.
If you are using the transcoder at openpackage.biz, then you do not require FFmpeg.
Some of the technology in FFmpeg is covered by software patents. Most countries do not recognise software patents, the notable exception being the USA. Check out this video.
If you use FFmpeg for commercial purposes in a country that does recognise software patents you are exposing yourself to the risk of litigation. Here is what FFmpeg have to say on the matter.
However, if you are a private user using FFmpeg for your own personal purposes, then there is nothing to worry about.
If you are using OpenPackage Video in a commercial manner in a country that recognises software patents, we recommend you outsource the transcoding to us. This frees you from the risk of litigation and also offers the advantage of not having to worry about FFmpeg maxing out your web server. Also, it is not usually possible to have FFmpeg installed in a basic web hosting package.
These instructions are specific to unix systems like Linux. For FFmpeg under Microsoft Windows see this site. We, of course, recommend you use OpenPackage Video (and Drupal in general) on a unix system.
The important thing when installing FFmpeg is ensuring that it supports the codecs you require. The FFmpeg packaged with your distro may have poor codec support (e.g. Debian / Ubuntu's FFmpeg doesn't support mp3).
To ensure you have all the codecs you require we recommend you compile the latest version of FFmpeg.
You need subversion installed. Use your distro's package manager to install it. Then checkout FFmpeg from its repository:
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
cd ffmpeg
You then need to configure FFmpeg. Below is the configure command we recommend. However, it may detect that you do not have all the required libraries in place. In this case, either install them with your distro's package manager or remove them from the configure command. If you are using Fedora, you may wish to try Livna.
./configure --prefix=/usr --enable-static --enable-shared --enable-gpl --enable-postproc --enable-swscale --enable-pthreads --enable-liba52 --enable-libamr-nb --enable-libamr-wb --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libx264 --disable-ffserver --disable-ffplay --disable-debug --disable-network --enable-nonfree --enable-avfilter --enable-avfilter-lavf --disable-devices --disable-vhook
You then need to build FFmpeg and install it:
make
sudo make install
Video transcoding at a shared web host presents a few challenges due to resource usage restrictions put in place by any sane/competent host. Even if you were able to compile FFmpeg on the server, you'd likely exceed CPU limits for your user account if you tried to use it. Alternatively, when using our remote transcoding services, you'll likely encounter limitations on the execution time of your scripts (i.e. Drupal's cron.php) and allowable file upload sizes.
Here are some notes from one of our users about getting our remote transcoding service working on a Pair Networks shared server:
~/public_html/cgi-bin/ (hypothetically, you could do this via .htaccess, but i didn't test that)
Killed: 9max_execution_time = 600max_input_time = 600 (added to Pair's default php.ini)upload_max_filesize = 60Mpost_max_size = 60M (added to Pair's default php.ini)