| Version 8 (modified by denis, 5 years ago) (diff) |
|---|
Add debian-multimedia.org repository to your sources.list file
vi /etc/apt/sources.list
Add this line:
deb http://www.debian-multimedia.org lenny main
Then, update the list of packages
apt-get update
Installing packages necessary
apt-get install debian-multimedia-keyring g++ unzip mencoder flvtool2 python-cheetah python-twisted ffmpeg2theora cortado postfix
Installing Plone and Plumi
Follow the how-to "How To Install PlumiSVN" here
Installing flowplayer
cd /var/www/ wget http://ovh.dl.sourceforge.net/sourceforge/flowplayer/flowplayer-2.2.4.zip unzip flowplayer-2.2.4.zip mv flowplayer/* . rmdir flowplayer
Setup the configuration file indytube.conf
http://plumi.org/browser/indytube/trunk/indytube/INSTALL.plone
vi /opt/plumi-0.2.2-rc5/indytube/indytube.conf
For example:
[ffmpeg2theora] CORTADO_LOCATION=http://plumi.domainepublic.net/flowplayer/cortado-ov-stripped-0.2.2.jar [paths] VIDEO_FILE_DIRECTORY=/opt/Plone-2.5.5/zeocluster/client1/var/files/Members FLV_FILE_DIRECTORY=/var/www/plumi-flv-files/ INCLUDE_FILE_DIRECTORY=/opt/Plone-2.5.5/zeocluster/client1/var/files/Members INCLUDE_FILE_SUFFIX=.flv.inc INCLUDE_TEMPLATE=/opt/plumi-0.2-final/indytube/include.template [urls] FLOWPLAYER_LOCATION=http://plumi.domainepublic.net/FlowPlayerClassic.swf VIDEO_SERVER_URL=http://flv.domainepublic.net/ SPLASH_IMAGE_BASE=http://plumi.domainepublic.net SPLASH_IMAGE_FILE=indytube.jpg
- We must make a symlink to the debian install of cortado
ln -s /usr/share/cortado/cortado-ov-stripped-0.2.2.jar /var/www/flowplayer/cortado-ov-stripped-0.2.2.jar
- we must create the directory /var/www/plumi-flv-files/ and give it the right rights
mkdir /var/www/plumi-flv-files/ chown www-data:www-data -R /var/www/plumi-flv-files/
- And create the /opt/indytube directory
mkdir /opt/indytube/
- Copy SPLASH_IMAGE_FILE to VIDEO_SERVER_URL
cp /opt/plumi-0.2.2-rc5/indytube/indytube.jpg /var/www/plumi-flv-files/
- Copy files for Fullscreen mode to VIDEO_SERVER_URL
cp /opt/plumi-0.2.2-rc5/indytube/swfobject.js /var/www/plumi-flv-files/ cp /opt/plumi-0.2.2-rc5/indytube/fullscreen.* /var/www/plumi-flv-files/
Testing indytube
- Test if your flowplayer is working alone at FLOWPLAYER_LOCATION. For example http://plumi.domainepublic.net/FlowPlayerClassic.swf
- Launch run_indytube.sh to run as a background process
./run_indytube.sh
- Verify that the process is running
ps faux |grep indytube
And see if the process is running up
root 7188 0.0 0.3 11672 7612 pts/0 S 20:51 0:00 python2.4 indytube.py
If not, launch it directly in the command line to see the output.
python indytube.py
First Video
- Configure a mail transfer agent like postfix
- Creation of new user
- Close the browser
- Connect with the new user
- Upload a video
- Check the file ENCODER_LOCKFILE_BASE to see if the transcoding is working
tail -100 /opt/indytube/plumidemo-testing-encoder.lock 2008-11-04 12:31:06,412 INFO started main function using conf file ./indytube.conf at 11/04/08 12:31:06, calling loop every 60 seconds 2008-11-04 12:31:06,412 INFO Starting indytube... in /opt/Plone-2.5.5/zeocluster/client1/var/files/Members 2008-11-04 12:31:06,412 INFO OK to try encoding: /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/denis/videos/contre-feux_1.avi 2008-11-04 12:33:25,666 INFO Encoded /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/denis/videos/contre-feux_1.avi in 139.25 seconds, using cmd -- /usr/bin/mencoder -quiet /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/denis/videos/contre-feux_1.avi -o /var/www/plumi-flv-files/denis/videos/contre-feux_1.flv -really-quiet -of lavf -oac mp3lame -lameopts abr:br=64 -ovc lavc -lavcopts vcodec=flv:keyint=25:vbitrate=260:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -vf harddup,expand=:::::4/3,scale=320:240 -srate 22050 -ofps 25 -mc 0/10 2008-11-04 12:40:37,584 INFO Encoded /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/denis/videos/contre-feux_1.avi in 404.03 seconds, using cmd -- ffmpeg2theora /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/denis/videos/contre-feux_1.avi -o /var/www/plumi-flv-files/denis/videos/contre-feux_1.ogg 2008-11-04 12:40:37,584 INFO Making html template - original size of /opt/Plone-2.5.5/zeocluster/client1/var/files/Members/denis/videos/contre-feux_1.avi: 84.3MB, Encoded size: 27.2MB 2008-11-04 12:40:37,605 INFO Ending indytube... We checked 1 eligble files, converted 1 files
Configuring ATCountryWidget
Read this
Not clear
- Why it's not possible to log with the admin user except from /manage ?
