wiki:TransCoding

Version 12 (modified by anna, 7 years ago) (diff)

--

Flash Transcoding and Playback on Plumi with Indytube

When a user uploads video to a Plumi site in any format, the video is automatically transcoded by the server in the background to a .flv Flash video file by mencoder.

The video takes a short time to transcode (depending on how big the file is, what format it is, and the processing power of the server) and is then displayed in the Flowplayer Flash video player on the video/view page.

The video does not load until the play button or splash image in the player is clicked. The video then buffers and plays back as it downloads onto the users computer.

The user can access play, pause and scrub controls, and has the ability to watch the video fullscreen.

The video is also available for download in it's original format.

We have added this functionality for OGG files also. This works currently, although the Cortado java applet is not as developed as the flash player.

http://plumi.org/browser/indytube

Installing IndyTube on Plumi

Restarting Indytube

We have noticed that indytube can stop working on occasion. Obviously we are working on a fix for this, but in the meantime, here are some instructions regarding restarting indytube.

Note that this has been written for a system that has several running Plumi instances (eg: stable and testing). It would be a lot easier with only one running instance - you would skip step 1.b.

  1. kill the process
    1. discover which process is the one you want to restart.
      user@plumibox:$ ps auxwww | grep indy
      
      root 16946 0.3 0.3 11484 7636 ? S 19:23 0:33 /usr/bin/python2.4 ./indytube.py
      
      user 19665 0.0 0.0 3200 720 pts/0 R+ 21:42 0:00 grep indy
      
      the second column is the PID
    2. check the /proc psuedo file system , which gives links to info about each process running
      user@plumibox:$ls -ltr /proc/
      
      user@plumibox:$ sudo ls -ld /proc/16946/cwd 
      lrwxrwxrwx 1 root root 0 2007-07-25 11:44 /proc/16946/cwd -> /opt/instances/indytube-svn
      
    3. That's the process to kill, in this case, and where to restart it from:
      user@plumibox:$sudo kill -9 16946
      
  1. Restart indytube
user@plumibox:/opt/instances/indytube-svn$ sudo ./run_indytube.sh

The directory from which you start indytube represents the Plumi instance that it is running on - make sure you restart it from the right place!

Transcoding Errors - Indytube / Variable Frame Rates

Errors have been reported when videos inputting into mencoder (Indytube) have a variable frame rate. See this ticket for info:  http://www.plumi.org/ticket/130

See this wiki page for more research notes: TranscodingErrors