Hello Dan,

What i am looking for is only load balancing archive not a live stream.
Moreover i am entirely on Linux based system(Sorry that i could not able to
try your suggestion). Also I want this load balancing system to be automated
at some point of time. Thats why i want most things done through
programming(of course with little work from administrator side).

Arun

On 1/7/07, Dan Rossi <[EMAIL PROTECTED]> wrote:

 Here is extensions of mine for filename generator

red5-web.properties -

recordPath=streams/archive/ (something like
/path/to/archives/outside/application doesnt work will create a nested dir
inside the webapp)
playbackPath=streams/
dateFormat=yyyyMMddmm
streamBitrate=100

CamFileNameGenerator.java bean -

public void setDateFormat(String format) {
        dateFormat = format;
}


 public String generateFilename(IScope scope, String name,

            String extension, GenerationType type) {

        String filename;
        if (type == GenerationType.RECORD)
            filename = recordPath + formatRecordName(name);
        else
            filename = playbackPath + name;

        if (extension != null)
            // Add extension
            filename += extension;
        return filename;
 }


    private String formatRecordName(String name)
    {
        if (!dateFormat.equals(""))
        {
            DateFormat date = new SimpleDateFormat(dateFormat);
            String appendDate = date.format(new Date());
            name += "_" + appendDate + "-" + streamBitrate;
        }
        return name;
    }

Here is that junction tool if you are using windows

http://www.microsoft.com/technet/sysinternals/FileAndDisk/Junction.mspx

Dan Rossi wrote:

Hi I dont get some of that, it depends what OS you are using for windows,
you would need to setup a network drive to the other machine on the lan,
then use the junction tool to create a "link" to the drive into a path
within the red5 application for windows and then obviouslly make a symlink
to the network drive on unix. This is required because i dont think there is
a way to set a path outside the webapp application directory either using
the winows path or unix slashes.

The example is here and im sure is up on the wiki ?


http://www.joachim-bauch.de/tutorials/red5/HOWTO-StreamCustomDirectories.txt

I have a more detailed examples i might add which lets u append a date
timstamp onto the filename with a given format string. I had to
unfortunately also add minutes to the end of the name because record append
mode is broken right now so is a quick fix for creating a different file
rather than over writing it.

Arun Prasad R wrote:

Hi all,

I want to move the recorded file to another machine in the network
(through FTP). Where can I include the hook for taking the file for
transfer. Is this possible?

Before that i want to store FLV files in separate directory for each user.
Any ideas on this?

Thanks in advance,
Arun

------------------------------

_______________________________________________
Red5 mailing list
[EMAIL PROTECTED]://osflash.org/mailman/listinfo/red5_osflash.org


------------------------------

_______________________________________________
Red5 mailing list
[EMAIL PROTECTED]://osflash.org/mailman/listinfo/red5_osflash.org



_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org



_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to