[Red5] Publishing to Red5 via Java (a bunch of newbie questions)

Jase jason at hybd.net
Fri May 8 08:40:46 PDT 2009


In case any one is wondering, and to validate my need to use a Java
publishing client instead of Flash/ActionScript, the main reason why I
need to use JACK is due to the fact ALSA doesn't publicly show up all 8
recording inputs on the sound card (which I'm using 6 of them). Flash
also has an issue under Linux where it only supports one mic device, and
by using JACK I can test things remotely over the VPN without faffing
with wires/mics etc.

J

On Fri, 2009-05-08 at 16:05 +0100, Jase wrote:
> Hi,
> 
> I'm pretty new to all this, so try not to go too deep. I have some very
> basic Java knowledge (mainly from Ruby background, but know C++ as well)
> 
> Basically I'm looking to write a Java publishing client, which needs to
> pull data from a a JACK (as in the audio daemon) port and transcode it
> and publish to red5 for live streaming. 
> 
> I gather I need to use the API for this, and hunted high and low for
> some examples and found:
> 
> http://www.nabble.com/RTMP-java-Client-for-video-publishing-tt20939125.html#a20939125
> 
> After some modifications (noticed an interface changed name/path, and
> log variable needed changing) I got it to compile and partly stream to a
> local standalone Red5 server instance. I noticed the program wasn't was
> trying to upload the FLV rather than stream it at the proper speed
> however. (I noticed the demo apps reported the right length / codec
> stats but didn't play the stream, and the stats were only reported as
> the program finished).
> 
> Could someone point me in the right direction in order to resolve this
> issue.
> 
> Further more, the above program is obviously for publishing FLV files.
> In the end I need to transcode a live stream and publish it. Could
> someone please point out what I need to look at in order to do this. It
> seems there are few examples on the net and obviously an API doc is of
> limited reference for someone who has little background on the Red5
> architecture (I'm pretty new to Flash altogether). 
> 
> Ideally I'm wanting to pull the data from JJACK (initially will just
> read an WAV file to save external compilations form here) and transcode
> to Speex. I assume once done I need to wrap this up in an RTMP stream
> some how and the Speex encoded data is somehow converted to an instance
> of org.red5.server.net.rtmp.event.AudioData and then some how a RMTP
> stream wraps round this.
> 
> Hopefully someone will be able to point me in the right direction here.
> 
> Regards
> Jase.
> 
> 
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org




More information about the Red5 mailing list