1

I am trying to set up a server for converting a video stream, live. The input stream is in RTSP format, and the output should be RTMP (to use in a Flash application).

I've had a look at crtmp, which seems like a good solution; however, I can't figure out the right configuration by myself (the .lua file). Is there an easy way to set it up as to convert the stream from RTSP to RTMP?

Alternatively, is there an easier-to-use video server (either Linux or Windows) that is also free, and that would do the same thing?

Timothy
  • 113
  • 1
  • 1
  • 5

3 Answers3

3

Here is the long story short. I don't know yet the details about your particular camera, but I have a nice working example for you:

  1. Open the configuration file and replace the externalStreams node from flvplaybackapplication with this one:

        externalStreams =                                                   
        {                                                                   
            {                                                               
                uri="rtsp://fms20.mediadirect.ro/live2/realitatea/realitatea",
                localStreamName="test1",                                    
                forceTcp=true                                               
            },                                                              
            {                                                               
                uri="rtsp://fms20.mediadirect.ro/live/utv/utv",             
                localStreamName="test2",                                    
                forceTcp=false                                              
            }                                                               
        },
    

After that, use jwplayer, flow player, etc. to playback the stream. The full RTMP URIs are:

 rtmp://ip/live/test1

or

 rtmp://ip/live/test2

As you can see, those streams are 2 RTSP streams. One is RTP/RTCP over UDP (forceTcp=false) and one is RTP/RTCP over RTSP (forceTcp=true). Because RTSP is over TCP, you get that flag to true.

Needless to say, you MAY experience playback glitches and issues caused by the fact that those 2 streams are very far away from you (they are here in Romania).

Hope it helps

pauska
  • 19,532
  • 4
  • 55
  • 75
  • I removed the download link, dropbox isn't exactly a trusted source. If you do want to link to something then link it against a official site of the product. – pauska Jan 14 '12 at 02:24
  • Thank you! This is exactly what I was looking for. However, I still have a problem which is adressed in [this Google Group](http://groups.google.com/group/c-rtmp-server/browse_thread/thread/c8f903dcf2a7a4c3) – Timothy Jan 16 '12 at 19:52
1

I'd try VLC or Wowza myself.

Chopper3
  • 100,240
  • 9
  • 106
  • 238
  • I'm not sure VLC supports streaming to RTMP? But in case it does, how do I open the "new" stream coming from it? As for Wowza, it's not free... – Timothy Jan 11 '12 at 17:14
  • VLC does not support RTMP. – Andrew Apr 12 '15 at 07:56
  • @Andrew: "VLC supports RTMP" -- https://wiki.videolan.org/Real_Time_Messaging_Protocol/ – David Cary Jun 09 '15 at 18:24
  • Yes @David Cary, but last time I checked, VLC, although able to stream RTMP, it was unable to broadcast as RTMP. The link you posted shows how to read from an RTMP stream, which is not what was required by the OP. – Andrew Jun 22 '15 at 11:27
0

To Convert RTSP to RTMP Streams, use Wowza Media Server and here is the restreaming guide http://www.wowza.com/forums/content.php?39

Sathish
  • 226
  • 2
  • 8