Wowza Community

Understanding how RTSP/RTP stream recording really works

Dear All,

i’ve read in this post ( http://www.wowza.com/community/t/-/606 ) of Bruce540 about a summary of wowza & recording.

I’m writing a surveillance-central software for h264-street-cam/street-sos-totem.

The software is written in flex, with a vectorial videowall, ptz cam movement handling and so on…

I need to record with on-demand and programatic logic the rtsp streams from axis cameras.

Now, i’ve the current problems:

  • if i use MediaCasterManager method, i can record the streams respecting my needs (background recording with no connection alive), but :

a) for playing a stream while recording it, i need to use another rtmp connection with a different (but with same conf) wowza app. Using the same wowza application, if i try to record while playing a receive this message:

INFO server comment - ModuleMediaCasterStreamManager.startMediaCasterStream[rtp-record-lowlatency]: rtsp://192.168.9.101/v3

WARN server comment - ModuleMediaCasterStreamManager.startMediaCasterStream: MediaCaster already exists[mediacaster]: rtsp://192.168.9.101/v3

INFO server comment - ModuleMediaCasterStreamManager.stopMediaCasterStream: rtsp://192.168.9.101/v3

WARN server comment - MediaCasterStreamManager.stopStream: Stream does not exist: rtsp://192.168.9.101/v3

WARN server comment - ModuleMediaCasterStreamManager.stopMediaCasterStream: Stream not found: rtsp://192.168.9.101/v3

b) if i play the rtsp stream (in a different wowza rtmp connection & app) while recording, it doubled the bandwidth used (only using this method i can play & record correctly, but my cameras could stay on a UTMS network, so doubled bandwidth is a problem!).

  • if i use rtp-live (or rtp-live-lowlatency), calls to startRecording or stopRecording methods (with nc.call(methodname)), doesn’t works.

  • if i use rtp-live-record (or rtp-live-record-lowlatency) it starts recording directly when i play the streams and stop recording when i stop the streams.

Well, there is no suitable control for start/stop record, and no “background” recording!

->No background recording when the flex application is closed !!! bad!

  • I’ve still not tried the the livestreamrecord, do you know if it has one of these limit? (recording while the client flash/flex application is closed, doubling of bandwidth if recording while playing and obviously the ability to record while playing using the same wowza application.

Thanks for you attention

–pako

You can record and play the same stream in one application.

Make the StreamType “live”, and use the MediaCasterStreamManager to start a stream with rtp-record. Then try playing the stream in the SimpleVideoStreaming example. You should be able to view the live stream while it is recording.

Richard