Wowza Community

Stream http stream to rtsp stream

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 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.

To recap, you entered in your IP Camera’s RTSP url into your stream file as follows. 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.

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.

Richard

Hi,

Refer to the FFmpeg/mpegts guide here, and for the Wowza side take a look at this guide to re-steaming MPEG-TS

Richard

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

Richard

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-fedora.html

Thanks,

Matt

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.

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?

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

[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.

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.

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?

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-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.

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

udp://127.0.0.1:10000

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

updadte

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

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.

Hi,

Refer to the FFmpeg/mpegts guide here, and for the Wowza side take a look at this guide to re-steaming MPEG-TS

Richard

Got it going finally!!!

Thanks for all your help