Using ffmpeg to create a single thumbnail image from a red5 recorded flv file

June 7th, 2011

Below is a simple php code to manipulate with ffmpeg and create a thumbnail image from a recorded flv file. Assuming that we used oflaDemo to record the video and we want the image to be the frame on the 4th second of the video:

<?php

//Set video flv path
$videoFilePath = “/usr/local/red5/webapps/oflaDemo/streams/9.flv”;

//Set Image path
$videoImageFilePath = “/home/username/public_html/test/test.jpg”;

//Set time
$time = ’00:00:04′;

//Execute ffmpeg command
exec(“/usr/local/bin/ffmpeg -i $videoFilePath -an -ss ” . $time . ” -an -r 1 -s qcif -vframes 1 -y $videoImageFilePath “);

?>

Check if exec is enabled on your account, in most of our servers it is disabled, contact support to have it enable in your account, this is done by adding a php.ini file to your account.

admin folder on red5 version 1.0 – Red5 1.0 RC1 setup problem

May 30th, 2011

Setup problem on the new Red5 1.0 RC1 – The admin interface.

On the new version of red5 which came out some weeks ago the admin is not there, it is going to be a plugin this time. to install it, please follow the instructions below:

First of all, you will need to download two files as provided the links below

http://red5.googlecode.com/files/AdminPlugin-1.0.zip

http://red5.googlecode.com/files/admin.jsp

Extract the zip file into the Red5′s plugin folder. And put admin.jsp
inside red5/webapps/root folder.  Restart your Red5 system.
Go to your Red5′s http access to view admin.jsp ( which should be
http://localhost:5080/admin.jsp by default)

If you do see any such errors, then you will need to add/delete some
jars.

Issue: Exception java.lang.ClassCastException:
org.slf4j.helpers.BasicMDCAdapter cannot be cast to
ch.qos.logback.classic.util.LogbackMDCAdapter

Solution: Delete the following jar files below.
com.springsource.slf4j.juli-1.6.1.jar
com.springsource.slf4j.log4j-1.6.1.jar

Issue: Unable to view jsp via http access

Solution: Add these following jar files to plugin folder.
jasper-6.0.18.jar (or newer)
jasper-jdt-6.0.18.jar (or newer)
jasper-el-6.0.18.jar (or newer)

Issue: Unable to create usename and/or password or invalid database.

Solution: Delete the admin folder completely from the root folder of
your disk drive.

Successfully create username and password?  Next step.

Go to http://localhost:5080/demos/adminPanel.html to view your admin panel (exactly
similar to the previous admin panel look alike).

Goldenrod server Update

March 17th, 2011

Hello

The last 2 days the goldenrod is slow and has a high server load, we are not sure what is it, perhaps one of the hard disks needs to be replaced, we have test it and this about 5 hours of downtime, we are thinking of doing this sometime this evening, is that ok?

Please reply to this email with your ideas.

Thank you for your patience.

Warm regards,
Chris Black
Customer Support Manager?

Getting Event Cue Points to work with Red5 0.8 and Red5 0.9.1

December 30th, 2010

I’ve written a flash app (in AS3) that streams video to a red5 server (over RMTP of course) and embeds event cue points into the stream. The red5 server is using the OFLA demo that comes with red5, which converts the streams to FLV files. I then have another flash app that reads the FLV (over HTTP in this case not RTMP) and calls a function when an event cue point is reached while playing the FLV.
Now – the code you need to write to ensure that the cue points get properly written into the FLV depends on what RED5 version you are running. The code I’m talking about is the AS3 code in the app that streams the video. When you want to insert an event cuepoint you need to format the “send” function call with the following code (where ns is the netstream object):


For Red5 0.8

ns.send(“onCuePoint”, cueData); 

For Red5 0.9.1

ns.send(“@setDataFrame”,  ”onCuePoint”, cueData);

And thats pretty much it. And the other thing you need to ensure is that when you are setting up your netconnection, make sure you are using AMF0 encoding. I noticed this is needed for cue points to be added successfully in the right format.

nc.objectEncoding = flash.net.ObjectEncoding.AMF0

Jeremy is the webmaster of http://builderscrack.co.nz

Red5 Server upgraded all its servers to 1 GigE (1000Mbit) dedicated port

December 5th, 2010

Yesterday Mr. Paul Santos CEO of Red5 Server a division of Hosting Marketers, Inc. announced at Piazza Hotel in New York the upgrade of all the managed servers, over 745 that Red5 Server manages on its datacenter in Chicago to a staggering 1 GigE (1000Mbit) dedicated port! The cost of this upgrade was $325.880 which Hosting Marketers, Inc. advanced 65% to be repaid in 2 years.

Mr. Paul Santos congratulated all the staff of Red5 Server for the good work during this last 12 months, which saw an increase of 350% in customers numbers, “We are now the premier Red5 Hosting and red5 servers suppliers in the all USA, we must keep the position, and increase it, next year we will start promoting our services to the Chinese market, and we hope that next year at this time we celebrate  as we are celebrating today, thank you all, from the customer support team, and a work of special thanks to Chris our Customer support manager whose hard work as once more made all of us proud! Thank you, thank you all. ”

red5 server

red5 server

Red5 Server can be visited at http://www.red5-server.com/