# Stream http stream to rtsp stream

**URL:** https://community.wowza.com/t/stream-http-stream-to-rtsp-stream/43448
**Category:** Wowza Streaming Engine
**Created:** [July 22, 2014, 1:07am UTC](https://community.wowza.com/t/stream-http-stream-to-rtsp-stream/43448 "2014-07-22T01:07:33Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![paul\_meeke](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@paul\_meeke](https://community.wowza.com/u/paul_meeke)
#### Post date: [July 22, 2014, 1:07am UTC](https://community.wowza.com/t/stream-http-stream-to-rtsp-stream/43448/1 "2014-07-22T01:07:33Z")

</div>

I am looking to restream a http stream to rtp. I did follow this guide [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) But it doesnt seem to work for me. Am I doing something completely stupid? Do i need to actually start the stream and if so where? The error logs dont seem to be showing too much.

---

<div class="post-metadata">

### Author: ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)
#### Post date: [July 22, 2014, 4:20am UTC](https://community.wowza.com/t/stream-http-stream-to-rtsp-stream/43448/2 "2014-07-22T04:20:34Z")

</div>

To recap, you entered in your IP Camera’s RTSP url into your stream file [as follows](https://www.wowza.com/docs/how-to-re-stream-video-from-an-ip-camera-rtsp-rtp-re-streaming#publish_admin). If this is the case, then you will need to “connect” to the stream (as mentioned in “Publishing the Stream” under 3.a within the same tutorial) or add it to your StartupStreams.xml.

---

<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: [July 22, 2014, 3:16pm UTC](https://community.wowza.com/t/stream-http-stream-to-rtsp-stream/43448/3 "2014-07-22T15:16:53Z")

</div>

> The only difference is my “.stream” file is not for an ip camera, but is for a http stream.

Wowza only supports ingress of shoutcast/icecast streams over HTTP, otherwise it is not supported. You can use VLC in between as a transcoder with the http stream as the source. Take a look at the transcoding examples at the bottom of [this VLC guide](https://www.wowza.com/docs/how-to-use-vlc-as-a-live-stream-encoder-with-wowza-media-server-mpeg-ts%28MPEG-TS%29).

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: [July 23, 2014, 2:36pm UTC](https://community.wowza.com/t/stream-http-stream-to-rtsp-stream/43448/4 "2014-07-23T14:36:38Z")

</div>

Hi,

Refer to the [FFmpeg/mpegts guide here](https://www.wowza.com/docs/how-to-use-ffmpeg-with-wowza-media-server-mpeg-ts%28MPEG-TS%29), and for the Wowza side take a look at this guide to [re-steaming MPEG-TS](https://www.wowza.com/docs/how-to-publish-and-play-a-live-stream-mpeg-ts-based-encoder%28MPEG-TS-based-encoder%29)

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: [July 23, 2014, 2:52pm UTC](https://community.wowza.com/t/stream-http-stream-to-rtsp-stream/43448/5 "2014-07-23T14:52:25Z")

</div>

Great! Thanks for the update, glad it’s working.

Richard

---

<div class="post-metadata">

### Author: ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)
#### Post date: [July 23, 2014, 3:54am UTC](https://community.wowza.com/t/stream-http-stream-to-rtsp-stream/43448/6 "2014-07-23T03:54:01Z")

</div>

I’m not sure which distribution you might be running but the VLC website does have some instructions on installation:

For example:

[http://www.videolan.org/vlc/download-redhat.html](http://www.videolan.org/vlc/download-redhat.html)

[http://www.videolan.org/vlc/download-fedora.html](http://www.videolan.org/vlc/download-fedora.html)

Thanks,

Matt

---

<div class="post-metadata">

### Author: ![paul\_meeke](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@paul\_meeke](https://community.wowza.com/u/paul_meeke)
#### Post date: [July 22, 2014, 1:24am UTC](https://community.wowza.com/t/stream-http-stream-to-rtsp-stream/43448/7 "2014-07-22T01:24:50Z")

</div>

Yes i seem to have followed all those instructions properly. The only difference is my “.stream” file is not for an ip camera, but is for a http stream.

---

<div class="post-metadata">

### Author: ![paul\_meeke](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@paul\_meeke](https://community.wowza.com/u/paul_meeke)
#### Post date: [July 22, 2014, 1:46am UTC](https://community.wowza.com/t/stream-http-stream-to-rtsp-stream/43448/8 "2014-07-22T01:46:06Z")

</div>

When i try and connect the stream file again i get this error “Publish stream already started[live/_definst_]: mp4:test.stream” which tells me it is already connected. In this case what will the address be? I am using this address. “rtsp://serverip:1935/live/myStream” Is the “/live/mystream” part of the address wrong and if so what should it be?

---

<div class="post-metadata">

### Author: ![paul\_meeke](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@paul\_meeke](https://community.wowza.com/u/paul_meeke)
#### Post date: [July 22, 2014, 3:49am UTC](https://community.wowza.com/t/stream-http-stream-to-rtsp-stream/43448/9 "2014-07-22T03:49:07Z")

</div>

My stream file is called “test.stream” I have tried connecting to this through vlc. The error logs are:

```auto
[0x7f0e14001248] main vout display error: Failed to resize display
[0x7f0e14004b78] live555 demux error: Nothing to play for rtsp://serverip:1935/live/test.stream
[0x7f0e340009b8] main input error: open of `rtsp://serverip:1935/live/test.stream' failed
[0x7f0e14010da8] live555 demux error: Nothing to play for rtsp://serverip:1935/live/test.stream
[0x7f0e340009b8] main input error: open of `rtsp://serverip:1935/live/test.stream' failed

```

I checked the incomming streams section and it states that the test.stream file is incomming with the correct url which i know works. The url is for a http ts stream so i am not sure if this will make any difference to what i am trying to achieve.

---

<div class="post-metadata">

### Author: ![paul\_meeke](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@paul\_meeke](https://community.wowza.com/u/paul_meeke)
#### Post date: [July 22, 2014, 7:51am UTC](https://community.wowza.com/t/stream-http-stream-to-rtsp-stream/43448/10 "2014-07-22T07:51:53Z")

</div>

> Wowza only supports ingress of shoutcast/icecast streams over HTTP, otherwise it is not supported. You can use VLC in between as a transcoder with the http stream as the source. Take a look at the transcoding examples at the bottom of [this VLC guide](https://www.wowza.com/docs/how-to-use-vlc-as-a-live-stream-encoder-with-wowza-media-server-mpeg-ts%28MPEG-TS%29).
> 
> Richard

Yes! reading through a few guides i have noticed this. I have tried to get VLC installed on my Amazon instance, which is the one from the marketplace with wowza on it. But cannot seem to get it installed via yum. Do you have a repository i need to add to get vlc installed or will i need to use another seperate instance running vlc?

---

<div class="post-metadata">

### Author: ![paul\_meeke](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@paul\_meeke](https://community.wowza.com/u/paul_meeke)
#### Post date: [July 23, 2014, 6:14am UTC](https://community.wowza.com/t/stream-http-stream-to-rtsp-stream/43448/11 "2014-07-23T06:14:45Z")

</div>

> I’m not sure which distribution you might be running but the VLC website does have some instructions on installation:
> 
> For example:
> 
> [http://www.videolan.org/vlc/download-redhat.html](http://www.videolan.org/vlc/download-redhat.html)
> 
> [http://www.videolan.org/vlc/download-fedora.html](http://www.videolan.org/vlc/download-fedora.html)
> 
> Thanks,
> 
> Matt

Thanks for getting back.

Vlc seems to be a difficult task to install on the amazon instance, it seems to be a brew of their own. I think i have managed to “almost” get it working with just using ffmpeg. This is my command.

```auto
ffmpeg -y -f mpegts -i http://[stream.url] -deinterlace -f h264 "udp://127.0.0.1:10000"

```

I can see in the monitoring tab that the stream is connected and showing traffic in. But still cannot connect to the server via vlc or the test players.

My streamfile is called “test.stream” and in this files i have the following url

```auto
udp://127.0.0.1:10000

```

Also all outgoing security is currently disabled until i can get this going.

---

<div class="post-metadata">

### Author: ![paul\_meeke](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@paul\_meeke](https://community.wowza.com/u/paul_meeke)
#### Post date: [July 23, 2014, 6:43am UTC](https://community.wowza.com/t/stream-http-stream-to-rtsp-stream/43448/12 "2014-07-23T06:43:52Z")

</div>

_updadte_

I almost have it going. I have changed the ffmpeg to look like this.

```auto
ffmpeg -i "http://[stream.url]" -vcodec libx264 -tune zerolatency -b 900k -f mpegts udp://127.0.0.1:10000

```

Now I can connect to the rtsp stream on vlc, and it is registered as a connection on the server. But I get no picture or sound and the connection breaks after about 10 seconds.

---

<div class="post-metadata">

### Author: ![paul\_meeke](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@paul\_meeke](https://community.wowza.com/u/paul_meeke)
#### Post date: [July 23, 2014, 6:50am UTC](https://community.wowza.com/t/stream-http-stream-to-rtsp-stream/43448/13 "2014-07-23T06:50:24Z")

</div>

> Hi,
> 
> Refer to the [FFmpeg/mpegts guide here](https://www.wowza.com/docs/how-to-use-ffmpeg-with-wowza-media-server-mpeg-ts%28MPEG-TS%29), and for the Wowza side take a look at this guide to [re-steaming MPEG-TS](https://www.wowza.com/docs/how-to-publish-and-play-a-live-stream-mpeg-ts-based-encoder%28MPEG-TS-based-encoder%29)
> 
> Richard

Got it going finally!!!

Thanks for all your help
