[Red5] Newbie trying to get beyond 'ant server' broadcasting withred5 0.8
Andy Shaules
bowljoman at hotmail.com
Mon Oct 26 09:18:33 PST 2009
Well, something has to encode the video frames to a compressed format.
Something also has to form rtmp packets.
If you would rather not go through a browser, then I suggest to look at the
hardware/device api and use xuggler to compress the frames into a suitable
codec and wrap it into a rtmp stream.
You would think that more people have done this, but surpisingly not.
Good luck. The critical point to make this happen is getting a pointer to
the pixel data using either interprocess communication or java api's.
----- Original Message -----
From: "Nick Fenwick" <neek at tcp.co.uk>
To: <red5 at osflash.org>
Sent: Monday, October 26, 2009 4:10 AM
Subject: [Red5] Newbie trying to get beyond 'ant server' broadcasting
withred5 0.8
> Hi all,
>
> I'm very new to red5, and trying to understand how to set up a webcam
> broadcasting system for part of a project I'm trying to get off the
> ground. I have red5 0.8, on my (Fedora) linux system, can build and run
> with command line 'ant server', and can run the demos/publisher.html page
> to broadcast my webcam from the browser using rtmp://localhost/oflaDemo,
> and watch the published RTSP stream in another browser. This all seems
> very sexy and the way I want to go.
>
> Now, I want to do two things differently, and have spent a few hours
> reading tutorials and playing around, leading to much frustration.
>
> 1/ stream video direct from the webcam using only the red5 server. Do I
> really have to do what the publisher.html demo does, and leave a web
> browser running the whole time I want to broadcast video? How can I get
> around this, and leave a box just broadcasting my video, with just the
> red5 server running and no browser?
>
> This seems like it should be a common requirement from users like myself,
> but I can't see any FAQs or tutorials on this subject. Is it possible?
> It seems that the ability to read video from a webcam, as with the
> publisher demo, relies on a .swf running in a browser to use the Flash
> runtime library to read the webcam, in which case I'm going to need some
> other way to read the webcam video, right?
>
> Should I look at creating an application, deriving from
> org.red5.server.adapter.ApplicationAdapter, and investigate webcam
> streaming that way, or is that a dead end for what I want to do?
>
> I am streaming from my webcam, to the 'flowplayer' flash based player, so
> I don't need to do any client Flash/Flex programming myself - I simply
> want to get red5 server to broadcast video/audio.
>
> 2/ host the red5 server in Glassfish. I am aware there are blogs on this
> subject, but they have so far proven old and confusing. The 'ant server'
> command line runs up an embedded Jetty web server, which is all well and
> good. My main app runs in Glassfish. I have run 'ant webwar' and
> produced ROOT.war, and deployed that (having hacked build.xml to not
> include javaee*.jar which conflict with glassfish contents), and dealt
> with the .jars required that aren't packaged in the war, so the war
> deploys without error, and can serve publisher.html and its swf content to
> my browser using http://localhost:8080/ROOT/demos/publisher.html. At this
> point I should be able to click 'Connect' in the publisher.swf app,
> however with Location rtmp://localhost/oflaDemo (and root/oflaDemo) it
> fails to Connect with e.g.:
> 16:15:54:634 - Connecting to rtmp://localhost/oflaDemo
> 16:15:54:842 - NetConnection.Connect.Rejected
> 16:15:54:842 - NetConnection.Connect.Closed
>
> I can "telnet localhost 1935" while my glassfish server is running, and
> get a socket connection, but the glassfish log reports nothing, and I
> don't know exactly what part of the web app config controls the connection
> that the publisher demo is trying to make that is reported "Rejected".
> Any suggestions would be most welcome :)
>
> I have attempted to follow tutorials such as Milan Toth's
> http://www.actionscript.org/resources/articles/615/1/Getting-started-with-red5-server/Page1.html
> but my Spring skills are weak and it feels like a waste of time, as it
> leave so much unexplained I cannot see where I'm going wrong.
>
> The Jira site responding with 'Bad Gateway' is not helping :) I'm not
> sure where to report this, as the main red5 website seems to have no
> 'contact us' link. e.g. this page doesn't work for me:
> http://jira.red5.org/confluence/display/docs/FAQ
>
> I'd be grateful for any pointers on either of the two topics above.
> Nick
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
More information about the Red5
mailing list