# restreaming from rtsp to http

**URL:** <https://community.wowza.com/t/restreaming-from-rtsp-to-http/38252>\
**Category:** Wowza Streaming Engine\
**Created:** [February 27, 2012, 5:33pm UTC](https://community.wowza.com/t/restreaming-from-rtsp-to-http/38252 "2012-02-27T17:33:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bartosz\_Bobrek](https://avatars.discourse-cdn.com/v4/letter/b/13edae/32.png) [@Bartosz\_Bobrek](https://community.wowza.com/u/Bartosz_Bobrek)\
**Post date:** [February 27, 2012, 5:33pm UTC](https://community.wowza.com/t/restreaming-from-rtsp-to-http/38252/1 "2012-02-27T17:33:55Z")

</div>

hi.

I want to restream rtsp from av tech ip camera to http clients.

I have all setup configured as in [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)

my avtech.stream got:

rtsp://10.181.0.122/live/h264

and when I try connect to wowza from any player with

[http://wowza:1935/aolliveinsecure/_definst_/avtech.stream/manifest.f4m](http://wowza:1935/aolliveinsecure/_definst_/avtech.stream/manifest.f4m)

all I got is error and on server sie log:

```auto
INFO stream create - -
INFO server comment - MediaStreamHTTPStreamerRepeaterBuffer.initLiveStreamRepeating: receiverClass: com.wowza.wms.httpstreamer.sanjosestreaming.liverepeater.SanJoseStreamerLiveRepeaterReceiver
INFO server comment - LiveMediaStreamReceiver.connect: rtsp://10.181.0.122/live/h264:rtmp://10.181.0.122:1935/live[h264]
INFO server comment - SanJoseStreamerLiveRepeaterReceiver.close: aolliveinsecure/_definst_/avtech.stream:avtech.stream:sanjosestreamingpacketizer
INFO server comment - MediaStreamMap.removeLiveStreamPacketizer[aolliveinsecure/_definst_/avtech.stream]: Destroy live stream packetizer: sanjosestreamingpacketizer
INFO server comment - SanJoseStreamerLiveRepeaterReceiver.resetStream: aolliveinsecure/_definst_/avtech.stream:sanjosestreamingpacketizer
INFO server comment - LiveStreamPacketizerSanJose.init[aolliveinsecure/_definst_/avtech.stream]: chunkDurationTarget: 10000
INFO server comment - LiveStreamPacketizerSanJose.init[aolliveinsecure/_definst_/avtech.stream]: chunkDurationTolerance: 500
INFO server comment - LiveStreamPacketizerSanJose.init[aolliveinsecure/_definst_/avtech.stream]: playlistChunkCount:4
INFO server comment - MediaStreamMap.getLiveStreamPacketizer: Create live stream packetizer: sanjosestreamingpacketizer:avtech.stream
INFO server comment - SanJosePacketHandler.startStream[aolliveinsecure/_definst_/avtech.stream]
INFO server comment - LiveStreamPacketizerSanJose.handlePacket[aolliveinsecure/_definst_/avtech.stream]: Video codec: H264
WARN server comment - NetConnectionConnection.connect: Failed to connect[10.181.0.122:1935]: org.apache.mina.common.RuntimeIOException: Failed to get the session[ConnectException: Connection refused].
WARN server comment - NetConnectionConnection.connect: Failed to connect[10.181.0.122:1935]: org.apache.mina.common.RuntimeIOException: Failed to get the session[ConnectException: Connection refused].

```

when i try rtmp://wowza:1935/aolliveinsecure/_definst_/avtech.stream

the stream is played.

why is it doing rtsp://10.181.0.122/live/h264:rtmp://10.181.0.122:1935/live[h264]??

what does it mean? this camera has one port for rtsp and it is 554 wihout any possibility to change.

I tried interleave and udp, and for both the result is the same.

I’m totally stuck…

BR,

bratbob

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [February 27, 2012, 6:45pm UTC](https://community.wowza.com/t/restreaming-from-rtsp-to-http/38252/2 "2012-02-27T18:45:11Z")

</div>

It sounds like it is working. The following notation is just for logging:

rtsp://10.181.0.122/live/h264:rtmp://10.181.0.122:1935/live[h264]

Charlie

---

<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:** [February 28, 2012, 3:18pm UTC](https://community.wowza.com/t/restreaming-from-rtsp-to-http/38252/3 "2012-02-28T15:18:19Z")

</div>

What is the contents of avtech.stream?

Does the camera require authentication? If so, if it is basic authentication, you can authenticate in the URL like this:

```auto
rtsp://richard:mypwd@10.181.0.122/live/h264

```

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:** [February 28, 2012, 4:28pm UTC](https://community.wowza.com/t/restreaming-from-rtsp-to-http/38252/4 "2012-02-28T16:28:10Z")

</div>

bartek,

Remove “sanjosestreamingrepeater” from LiveStreamPacketizers. It should just look like this:

```auto
<LiveStreamPacketizers>sanjosestreamingpacketizer</LiveStreamPacketizers>

```

Unless this is an edge server, in which case remove “sanjosestreamingpacketizer” instead.

What player, and what URL are you using? Try the Wowza example:

[wowza-install-dir]/examples/LiveVideoStreaming /clientOSMF/bin-release/LiveOSMFPlayer.html

I’m not sure about the connect failure. Seems to be reachable, but refused.

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:** [February 28, 2012, 4:37pm UTC](https://community.wowza.com/t/restreaming-from-rtsp-to-http/38252/5 "2012-02-28T16:37:25Z")

</div>

Cool! Thanks for the quick update

Richard

---

<div class="post-metadata">

**Author:** ![Bartosz\_Bobrek](https://avatars.discourse-cdn.com/v4/letter/b/13edae/32.png) [@Bartosz\_Bobrek](https://community.wowza.com/u/Bartosz_Bobrek)\
**Post date:** [February 28, 2012, 8:09am UTC](https://community.wowza.com/t/restreaming-from-rtsp-to-http/38252/6 "2012-02-28T08:09:43Z")

</div>

It is not working for rtsp-\>wowza-\>http.

As in the log which I copy/pasted here look at the last lines:

WARN server comment - NetConnectionConnection.connect: Failed to connect[10.181.0.122:1935]: org.apache.mina.common.RuntimeIOException: Failed to get the session[ConnectException: Connection refused].

WMS tries to connect to camera on 1935 and is not using established connection on 554. And I don’t know why? Why, when client is asking for rtmp all is good, there is no new connections from WMS to camera, but when client asks for http stream, there is such behaviour? and since my camera does not stream anything at port 1935, there is connection problem and client receives error…

br,

Bartek

---

<div class="post-metadata">

**Author:** ![Bartosz\_Bobrek](https://avatars.discourse-cdn.com/v4/letter/b/13edae/32.png) [@Bartosz\_Bobrek](https://community.wowza.com/u/Bartosz_Bobrek)\
**Post date:** [February 28, 2012, 5:00pm UTC](https://community.wowza.com/t/restreaming-from-rtsp-to-http/38252/7 "2012-02-28T17:00:45Z")

</div>

As I wrote on the begining avtech.stream contains

```auto
rtsp://10.181.0.122/live/h264

```

there is no need for authorization.

it works for rtsp-\>wowza-\>rtmp

it does not work for rtsp-\>wowza-\>http

my application.xml contains:

```auto
[...]
<LiveStreamPacketizers>sanjosestreamingpacketizer, sanjosestreamingrepeater</LiveStreamPacketizers>
[...]
<HTTPStreamers>sanjosestreaming</HTTPStreamers>
[...]

```

and it works with other stream from vlc rtsp

I does not work with avtech camera rtsp through WMS to flash http client

In my first post I have pasted WMS log, when WMS tries to connect to some strange

```auto
LiveMediaStreamReceiver.connect: rtsp://10.181.0.122/live/h264:rtmp://10.181.0.122:1935/live[h264]

```

I cannot understand why?? camere has port 1935 shut. is there any switch or property that dictates this bahaviour?

br,

bartek

---

<div class="post-metadata">

**Author:** ![Bartosz\_Bobrek](https://avatars.discourse-cdn.com/v4/letter/b/13edae/32.png) [@Bartosz\_Bobrek](https://community.wowza.com/u/Bartosz_Bobrek)\
**Post date:** [February 28, 2012, 5:33pm UTC](https://community.wowza.com/t/restreaming-from-rtsp-to-http/38252/8 "2012-02-28T17:33:06Z")

</div>

So simple… how I missed function of it…

THANKS!!! working great now 🙂
