Plumi

Set up debord.mayfirst.org server. Then tried to set up plumi. What I currently have done is install apache2 php5 mysql-server and walked through  this instruction set.

also see:

 http://en.flossmanuals.net/Plumi/Installation

I tried creating a zope user but it did not work.

  • created video.debord.mayfirst.org
  • Setup Steps
  • Created Virtual Environment
    virtualenv -p /user/bin/python2.4 --no-site-packages src/pyvirt
    

This is a python virtual environment to use python2.4 rather than 2.5, it lives at src/pyvirt

  • Did plumi buildout
    svn co https://svn.plone.org/svn/collective/plumi.buildout/trunk plumi3
    cd plumi3
    python2.4 bootstrap.py 
    ./bin/buildout
    

The plumi build is at web/src/pyvirt/plumi3

  • Started services
    ./bin/instance fg
    
    • zope server

The zope server can be configured inside the development environment @ plumi3/parts/instance/zope.conf

  • apache httpd.conf

Made configuration changes here to rewrite the url from video.debord.mayfirst.org:8080/ussfvideo to video.debord.mayfirst.org. /etc/apache2/httpd.conf

Transcoding Problems

Looking into the twisted.log I find the following transcoding process results.

2010/05/04 12:55 -0400 [-] New job
2010/05/04 12:55 -0400 [-] DOWNLOADING http://localhost:8080/Members/jamie/videos/north-american-voices-at-the-wsf/download/video_file/north_american_voices_at_the_WSF.m4v
2010/05/04 12:55 -0400 [-] RUNNING: scripts/transcodeMp4 /tmp/tmpBmjtbm.m4v transcoded/http/localhost/8080/Members/jamie/videos/north-american-voices-at-the-wsf/download/video_file/north_american_voices_at_the_WSF.m4v/mp4/n\
orth_american_voices_at_the_WSF.mp4
2010/05/04 12:55 -0400 [-] Transcoder returned 256 {'path': 'transcoded/http/localhost/8080/Members/jamie/videos/north-american-voices-at-the-wsf/download/video_file/north_american_voices_at_the_WSF.m4v/mp4/north_american_v\
oices_at_the_WSF.mp4', 'type': 'video/mp4'}
2010/05/04 12:55 -0400 [-] New job
2010/05/04 12:55 -0400 [-] DOWNLOADING http://localhost:8080/Members/jamie/videos/north-american-voices-at-the-wsf/download/video_file/north_american_voices_at_the_WSF.m4v
2010/05/04 12:55 -0400 [-] called back plone
2010/05/04 12:55 -0400 [-] callbackURL = http://admin:admin@localhost:8080/Members/jamie/videos/north-american-voices-at-the-wsf/@@streaming_RPC
2010/05/04 12:55 -0400 [-] callback return for profile mp4 is [Failure instance: Traceback (failure with no frames): twisted.python.failure.DefaultException: FAIL 256
2010/05/04 12:55 -0400 [-] ]
2010/05/04 12:55 -0400 [-] RUNNING: scripts/transcodeTheora /tmp/tmpf0kLX2.m4v transcoded/http/localhost/8080/Members/jamie/videos/north-american-voices-at-the-wsf/download/video_file/north_american_voices_at_the_WSF.m4v/og\
g/north_american_voices_at_the_WSF.ogv
2010/05/04 12:55 -0400 [-] Transcoder returned 256 {'path': 'transcoded/http/localhost/8080/Members/jamie/videos/north-american-voices-at-the-wsf/download/video_file/north_american_voices_at_the_WSF.m4v/ogg/north_american_v\
oices_at_the_WSF.ogv', 'type': 'video/ogg'}
2010/05/04 12:55 -0400 [-] called back plone
2010/05/04 12:55 -0400 [-] callbackURL = http://admin:admin@localhost:8080/Members/jamie/videos/north-american-voices-at-the-wsf/@@streaming_RPC
2010/05/04 12:55 -0400 [-] callback return for profile ogg is [Failure instance: Traceback (failure with no frames): twisted.python.failure.DefaultException: FAIL 256
2010/05/04 12:55 -0400 [-] ]

It looks as if the trancoding daemon is getting called, but cannot complete.

The first thing that needed to be changed to deal with transcoding was this page.  http://video.debord.mayfirst.org/portal_properties/plumi_properties

I set the following server properties:

trancodedaemon_address  http://localhost:8888
videoserver_address  http://video.debord.mayfirst.org
plonesite_address  http://video.debord.mayfirst.org

This resulted in a successful transcoding of the thumbnail, tested with the following command from the ../pyvirt/plumi3 directory.

./scripts/getThumb ~/test.mp4 ~/test.jpg

While this resulted in a successful thumbnail conversion, the subsequent attempt to transcode video failed.

Failure to transcode video

The ffmpeg package from the main debian repository failed to recognize the option -vpre which resulted in an aborted trancoding. In order to get ffmpeg working in lenny, I took the following steps from this how to  http://techsiteblog.com/ffmpeg-and-x264/

Steps for ffmpeg install

  1. Installed needed libraries
    aptitude install build-essential subversion git-core checkinstall yasm
    texi2html libfaac-dev libfaad-dev libmp3lame-dev libopencore-amrnb-dev
    libopencore-amrwb-dev libsdl1.2-dev libx11-dev libxfixes-dev
    libxvidcore4-dev zlib1g-dev libogg-dev
    
  2. Added x264
    git clone git://git.videolan.org/x264.git
    cd x264
    ./configure
    make
    checkinstall --pkgname=x264 --pkgversion "1:0.svn`date +%Y%m%d`" --backup=no --default
    
  3. Installed libtheora
    wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.gz
    tar xzvf libtheora-1.1.1.tar.gz
    cd libtheora-1.1.1
    ./configure
    make
    checkinstall --pkgname=libtheora --pkgversion "1.1.1" --backup=no --default
    
  4. Installed ffmpeg
    svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
    cd ffmpeg
    ./configure --enable-gpl --enable-version3 --enable-nonfree
    --enable-pthreads --enable-libfaac --enable-libfaad
    --enable-libmp3lame --enable-libtheora --enable-libx264
    --enable-x11grab 
    make 
    checkinstall --pkgname=ffmpeg --pkgversion "4:0.5+svn`date +%Y%m%d`" --backup=no --default
    
    1. The initial make did not work, and I had to run:
      aptitude purge libx264-dev
      
    2. And repeat the ffmpeg configuration.
  5. Installed qt-faststart

From the ffmpeg source directory

make tools/qt-faststart

At this point, ffmpeg can transcode mp4 formats using the following command:

./scripts/transcodeMp4 ~/test.mp4 ~/test2.mp4

However, still cannot transcode into ogg format due to the ffmpeg2theora package.

ffmpeg2theora on debian lenny

Looking [ here] to determine how to get ffmpeg2theora latest release working on lenny:

Used these steps to install ffmpeg2theora

  1. Installed scons
    aptitude install scons
    
  2. downloaded ffmpeg2theora from [ here]
  3. extracted the file
    tar xvf ffmpeg2theora-0.26.tar.bz2
    
  4. Following steps to install
    cd ffmpeg2theora-0.26
    ./get_ffmpeg_svn.sh
    scons install
    

Success!