For the sake of future questions, I'll post this to the list. If I were you I would look to using the software package "transcode" or something similar. I believe it makes use of ffmpeg. Its designed to convert between formats. Even mencoder (which comes with mplayer) will do this as far as I'm aware. These are linux/unix based programs that run from the command line and can be connected together so the output of one is the input of the next. Basically you want a simple little conversion chain like:
Camera->Transcode->Named Pipe (in the red5 streams directory). You could also just send the file via HTTP if Apache will happily read from a pipe instead of a file... Never tried it though! You're kind of asking the mailing list to do a few things for you which you'll have to figure out on your own first. 1. Getting red5 to play back video OR playing shockwave videos over HTTP. 2. Working with SWF video publishing. If you can get a video to stream via red5, I'll give you a hand with the transcoding stuff if you like. - Aaron -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Myers, Jon W Sent: Wednesday, April 11, 2007 5:16 AM To: [email protected] Subject: Re: [Red5] live streaming.... Sorry, by "live" I mean "its happening right now".. as in not from a pre-recoded file. Video is coming from an axis 214 camera which outputs mpeg4 video and (according to ffmpeg), pcm_mulaw, 8000 Hz, mono, 64 kb/s encoded audio. I can get the direct feed from the camera via rtsp. As far as the fitcDemo, on my "FITCSpeakerBroadcaster.swf" page, I get an input box with a url, a picture of a 5 next to it, and a blue blob under it. Cant do anything else on that page.. opening the .swf file in notepad shows it seems to be a binary file... so it doesnt look like I can get any ideas from there. - - - Jon -----Original Message----- From: [EMAIL PROTECTED] on behalf of Nathan P. Johansen Sent: Tue 4/10/2007 1:10 PM To: [email protected] Subject: Re: [Red5] live streaming.... Hi Jon, When you say a "live mpeg4 stream" what sort of device is this coming from to begin with? If it's a camera, then that can be broadcast in much the same way that the Video Conference demo (fitcDemo) works - the incoming video and audio are encoded into an FLV format, which you can save and/or stream on the fly. Otherwise, if what you mean by "live" as an existing file - in your case in the mpeg4 format - then you'll have to encode that into the FLV format before it can be streamed through Red5. Depending on the duration and the desired quality and pixel dimensions, these things take time to convert and generally what you get by doing this "on the fly" is not going to be as visually appealing as taking the time to encode the file properly. It might be helpful to know more about what you'd like to do so that we can suggest how to best accomplish it - or let you know what can and cannot be done at the moment. :) Yours, Nathan On Tue, 10 Apr 2007, Myers, Jon W wrote: > So, since it is impossible to use ffmpeg to create a working live swf > stream, does that mean red5 can't do it either, since from what I can > find, it would normally use ffmpeg to encode? So the only "solution" > is to drop $4000 for FMS? Or is there some other product out there? > So far, I've tried vlc, ffmpeg, ffserver, and darwin streaming server > (only streams to quicktime). > > If re-encoding a live mpeg4 stream to swf/flv is indeed possible, > please post a working example (or send me something off list). I've > been seaching the net, mailing lists, forums, IRC, etc.. for the past > two weeks trying to do this, to no avail. I'm not even sure FMS can > do it, so its a bit scary to throw away that kind of money on an > unknown. Sure, it SAYS it can do it, but so do all the other > packages. _______________________________________________ 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
