# RTMP to RTSP vod stream conversion

**URL:** <https://community.wowza.com/t/rtmp-to-rtsp-vod-stream-conversion/36173>\
**Category:** Wowza Streaming Engine\
**Created:** [March 14, 2011, 4:07pm UTC](https://community.wowza.com/t/rtmp-to-rtsp-vod-stream-conversion/36173 "2011-03-14T16:07:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ravi\_Gupta](https://avatars.discourse-cdn.com/v4/letter/r/e56c9b/32.png) [@Ravi\_Gupta](https://community.wowza.com/u/Ravi_Gupta)\
**Post date:** [March 14, 2011, 4:07pm UTC](https://community.wowza.com/t/rtmp-to-rtsp-vod-stream-conversion/36173/1 "2011-03-14T16:07:31Z")

</div>

Can we convert rtmp vod stream to rtsp vod stream,

I have seen this link…

[https://www.wowza.com/docs/how-to-re-stream-video-from-an-ip-camera-rtsp-rtp-re-streaming](https://www.wowza.com/docs/how-to-re-stream-video-from-an-ip-camera-rtsp-rtp-re-streaming)

and i created ravi.stream file in which i wrote rtmp://[wowza-address]/AddVideo/mp4:sample.mp4

and try to play on vlc player the following link rtsp://[wowza-address]/rtplive/ravi.stream

but it’s play when we wrote in ravi.stream file rtsp://[wowza-address]:1935/AddVideo/mp4:sample

so in case of rtmp it’s not play and the following error is occur

INFO server comment - onAppStop…

INFO server comment - onAppStop: AddVideo/_definst_

INFO application app-start _definst_ rtplive/_definst_

INFO rtsp connect 5760827 -

INFO server comment - sortPackets[1]: sortBufferSize:500

INFO stream create - -

INFO server comment - RTPMediaCaster.create[735700397]

INFO server comment - RTPMediaCaster.init[735700397]

INFO server comment - RTPMediaCaster.Reconnector[735700397:rtplive/_definst_:rtmp.stream]: start: 1

INFO server comment - RTPStream.lockRepeaterStreams: repeaterLock: rtmp.stream

INFO server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo[rtplive/_definst_]: /usr/local/WowzaMediaServer/content/rtmp://localhost/AddVideo/mp4:sample.mp4

WARN server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo: SDP file missing: /usr/local/WowzaMediaServer/content/rtmp://localhost/AddVideo/mp4:sample.mp4

INFO server comment - RTPStream.unlockRepeaterStreams: repeaterUnLock: rtmp.stream

INFO stream unpublish - -

INFO stream destroy - -

INFO rtsp disconnect 5760827 -

INFO server comment - RTSPTunnelingSession.newSessionGET[localhost|63db61bf682891c1ca3d2f2]

INFO server comment - RTSPTunnelingSession.newSessionPOST[localhost|63db61bf682891c1ca3d2f2]

INFO rtsp connect 358245146 -

INFO server comment - sortPackets[2]: sortBufferSize:500

INFO stream create - -

INFO server comment - RTPStream.lockRepeaterStreams: repeaterLock: rtmp.stream

INFO session disconnect 996191687 -

INFO server comment - RTPStream.unlockRepeaterStreams: repeaterUnLock: rtmp.stream

INFO stream unpublish - -

INFO stream destroy - -

INFO server comment - RTSPTunnelingSession.closeSessionGET[localhost|63db61bf682891c1ca3d2f2]: true

INFO server comment - RTSPTunnelingSession.closeSessionPOST[localhost|63db61bf682891c1ca3d2f2]: true

INFO server comment - RTPMediaCaster.shutdown[735700397:rtplive/_definst_:rtmp.stream]: rtmp.stream

INFO server comment - RTPMediaCaster.disconnect[735700397:rtplive/_definst_:rtmp.stream]

INFO server comment - RTPMediaCaster.closeRTPSession[735700397:rtplive/_definst_:rtmp.stream]

INFO server comment - RTSPTunnelingSession.shutdown[119.82.75.68|63db61bf682891c1ca3d2f2]

INFO server comment - RTPMediaCaster.Reconnector[735700397:rtplive/_definst_:rtmp.stream]: done: 1

INFO application app-stop _definst_ rtplive/_definst_

INFO application app-start _definst_ vod/_definst_

give me right direction???

can we convert, RTMP to RTSP vod stream conversion

---

<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:** [March 14, 2011, 4:45pm UTC](https://community.wowza.com/t/rtmp-to-rtsp-vod-stream-conversion/36173/2 "2011-03-14T16:45:05Z")

</div>

You cannot re-stream video on demand over rtmp. This will not work the way you are trying to use it:

```auto
rtmp://[wowza-address]/AddVideo/mp4:sample.mp4

```

Use MediaCache instead for video on demand:

[https://www.wowza.com/docs/how-to-scale-video-on-demand-streaming-with-media-cache](https://www.wowza.com/docs/how-to-scale-video-on-demand-streaming-with-media-cache)

For live rtmp streaming, you can use an Application with StreamType “liverepeater-edge” to re-stream live rtmp stream.

[https://www.wowza.com/docs/how-to-configure-a-live-stream-repeater](https://www.wowza.com/docs/how-to-configure-a-live-stream-repeater)

Use an Application with StreamType “rtp-live” to re-stream rtsp:

[https://www.wowza.com/docs/how-to-re-stream-video-from-an-ip-camera-rtsp-rtp-re-streaming](https://www.wowza.com/docs/how-to-re-stream-video-from-an-ip-camera-rtsp-rtp-re-streaming))

Or, instead of liverepeater-edge or rtp-live, you can use StreamType “live” in both cases then start the stream with StreamManager with MediaCaster type “liverepeater” or “rtp”

[https://www.wowza.com/docs/how-to-use-stream-manager-in-wowza-media-server-3](https://www.wowza.com/docs/how-to-use-stream-manager-in-wowza-media-server-3)

Richard

---

<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:** [March 15, 2011, 3:21pm UTC](https://community.wowza.com/t/rtmp-to-rtsp-vod-stream-conversion/36173/3 "2011-03-15T15:21:31Z")

</div>

Restreaming vod from RTSP will not work either:

```auto
[COLOR="red"]rtsp://[wowza-address]/vod/mp4:sample.mp4[/COLOR]

```

Follow the guide included with the MediaCache package, which does not have anything like above.

Richard

---

<div class="post-metadata">

**Author:** ![Ravi\_Gupta](https://avatars.discourse-cdn.com/v4/letter/r/e56c9b/32.png) [@Ravi\_Gupta](https://community.wowza.com/u/Ravi_Gupta)\
**Post date:** [March 15, 2011, 2:58pm UTC](https://community.wowza.com/t/rtmp-to-rtsp-vod-stream-conversion/36173/4 "2011-03-15T14:58:11Z")

</div>

Respected Sir ,

I have got MediaCache\_2.0.zip file by mail link,

I have try rtsp to rtmp is not running , so

Hence , Further i try rtsp to rtsp:

means –

i created ravi.stream file in which i wrote rtsp://[wowza-address]/vod/mp4:sample.mp4

and try to play on vlc player the following link rtsp://[wowza-address]/rtplive/ravi.stream

then it’s play but when again i try this link on another or same system on another vlc…

then video is not start from starting rather it start from where , there first vlc video is currently running.

So how to solve out this problem , with using of MediaCache package .

Give me right way ???
