Webcam and Red5- 0KB file

5 replies [Last post]
Joined: 03/02/2010
Points: 5

I have Red5 and KalturaCE 1.50 Beta installed on a Ubuntu 9.10 64-bit installation.

When recording from KMC via the webcam (which works brilliantly thanks) a 148KB file is shown in /usr/share/red5/webapps/oflaDemo/streams, but only a 0KB file (of the same name) is shown in /var/www/kalturaCE/content/webcam and the video won't stream from KMC.

I assume that I've messed up the symlinks so is anyone able to help advise which folder I should be pointing to which and the command to achieve this.

I have set PHP.ini to allow 100MB uploads to allow for video. Is this likely to have major impact on the server? 100MB dedicated link and 160GB disc, but light on the RAM as I can't afford much for hosting now. Given the size of the file I just created I assume I can cut it to at least half that safely.

Does it have any impact on the ability to create video files with KalturaCE?

Lastly, are there any permissions I should be changing?

All help much appreciated.

Joined: 08/20/2009
Points: 43

I had the same issue.
What I did to fix it was delete the webcam folder and replaced it with the symbolic link and made sure the symbolic link had the right permissions to be read/write. Of course the name of the sym link folder was webcam. After that everything worked just fine. Hope this helps.

Joined: 03/02/2010
Points: 5

I deleted the previous symlinks in Filezilla, and created a symlink using the below command-


ln -s /usr/share/red5/webapps/oflaDemo/streams /var/www/kalturaCE/content/webcam

Following this I restarted the batches in KalturaCE and tried to upload again. Still no change.

The permissions on /usr/share/red5/webapps/oflaDemo/streams were set to 755 but I changed this to 777 without change.

Do I need to restart the server or am I still missing something?

Joined: 03/02/2010
Points: 5

Is this issue likely to be that PHP cannot read from a directory outside of /var/www - I'm still fairly new to web server operations and this is a relatively unmodified Ubuntu (9.10 x64) LAMP install.

Do I have to change anything in php.ini to allow PHP to access /usr/share/red5/webapps/oflaDemo/streams

Those of you who have webcam working with Kaltura CE, what did you do to get videos playing- or did you install Red5 under /var/www?

Joined: 08/20/2009
Points: 43

Mine is in usr/share/red5.

Joined: 03/02/2010
Points: 5

Actually I think this isn't a problem with KalturaCE as the same videos won't play in Red5's Oflademo either.

The video doesn't download correctly in KalturaCE (has been queued for over an hour) and do not play correctly in VLC when downloaded via FTP as an additional experiment.

Another video of about ten seconds (compared to what should have been forty earlier) will play back via KalturaCE and VLC when downloaded.

Previously, before the symlink, videos would be created and play just fine when manually downloaded but would not stream via KalturaCE.

I am a bit concerned the server just can't handle running KalturaCE and Red5 based on playback from Oflademo and other use, but memory whilst not great isn't critical either-

Mem: 935 921 13 0 2 223
-/+ buffers/cache: 694 240
Swap: 3827 4 3823
Total: 4762 926 3836

All the same I'm considering decommissioning the server (or rather ceasing to pay the subscription) and bringing the Kaltura in house on a machine with quad core processor and 4GB RAM that should hopefully cope better.

Has anyone got any experience installing and using Kaltura CE on OpenSolaris? Can anyone see any obvious pitfalls to this? (I am aware it is not a supported platform, but then there is no official support on Ubuntu so it's just a matter of seeing if I can get it working or not)

I need to allow potentially twenty-thirty minute streams so realistically what specs should I be looking at? Should I be looking to re-install Red5 and/or change video settings or is this server just not able to cope?

Could AWS be an option as that should allow the server to scale for "burst performance" without having to spend a fortune on an expensive server that's mostly sat idle, plus it will allow me to run Ubuntu.

Lots of options, any experience anyone has had will be greatly appreciated.