# Understanding how RTSP/RTP stream recording really works

**URL:** <https://community.wowza.com/t/understanding-how-rtsp-rtp-stream-recording-really-works/33690>\
**Category:** Wowza Streaming Engine\
**Created:** [November 16, 2009, 12:21am UTC](https://community.wowza.com/t/understanding-how-rtsp-rtp-stream-recording-really-works/33690 "2009-11-16T00:21:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pasquale\_Giampa](https://avatars.discourse-cdn.com/v4/letter/p/fbc32d/32.png) [@Pasquale\_Giampa](https://community.wowza.com/u/Pasquale_Giampa)\
**Post date:** [November 16, 2009, 12:21am UTC](https://community.wowza.com/t/understanding-how-rtsp-rtp-stream-recording-really-works/33690/1 "2009-11-16T00:21:44Z")

</div>

Dear All,

i’ve read in this post ( [http://community.wowza.com/t/-/606](http://community.wowza.com/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

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [November 16, 2009, 1:33pm UTC](https://community.wowza.com/t/understanding-how-rtsp-rtp-stream-recording-really-works/33690/2 "2009-11-16T13:33:42Z")

</div>

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
