Wowza Community

Re-streaming an RTSP stream through Wowza Pro (RTSP/RTP)

You can use VLC to play the RTSP stream direct, then look at Tools > Codec Info to see what the video format is. It might not be h.264.

Richard

Wowza handles rtsp streaming. Take a look at “To play using RTSP/RTP player or device” in this tutorial:

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

You can’t restream the smil exactly, it’s the smil items that are restreamed.

Richard

Richard

It has to be mpeg-4 part 10, or h.264.

What you have is probably mpeg-4 part 2, which is not supported in Flash and Wowza.

Richard

Try transcoding with ffmpeg or VLC, there are examples with rtsp input in both of these guides:

https://www.wowza.com/docs/how-to-use-ffmpeg-with-wowza-media-server-mpeg-ts)

https://www.wowza.com/docs/how-to-use-vlc-as-a-live-stream-encoder-with-wowza-media-server-mpeg-ts)

Richard

Does “rtsp://******.dyndns.org:554/” play directly in VLC? Can you send the real link to support@wowza.com. Include a link to this thread.

Richard

What is the make/model of the problem camera? What encode settings?

Is the camera on a public IP? If so, send the RTSP URL to support@wowza.com. Include a link to this thread for reference.

And what is the make/model of the working camera?

Richard

Why not use 554 for both? Have you tried that?

Richard

I have a problem streaming images from my camera.

The RTSP stream is on the address http://10.3.10.93/media/video0

It plays fine in VLC.

When I try to play the stream in Wowza, I get nothing, the video window stays empty. The logs show this:

INFO application app-start definst rtplive/definst

INFO session connect-pending 127.0.0.1 -

INFO session connect 127.0.0.1 -

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

INFO stream create - -

INFO server comment - MediaStreamMediaCasterPlay: startPlay

INFO server comment - RTPMediaCaster.create

INFO server comment - RTPMediaCaster.init

INFO server comment - RTPMediaCaster.Reconnector: start

INFO server comment - RTPSessionTracker.add[rtsp://10.3.10.93/media/video0]: 1

INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.buildSDPD

ata: sessionId:1251407277 sessionTimeout:30000

INFO server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo: RTSP

/RTP re-streaming. Success, received SDP data.

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

INFO stream create - -

INFO stream create - -

INFO stream publish rtsp://10.3.10.93/media/video0 -

INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.sessionSt

art: PLAY: rtsp://10.3.10.93/media/video0

INFO server comment - RTPMediaCaster.Reconnector: stop

A Sony SNC-RZ50, which supports RTSP streaming since the latest firmware upgrade.

First, I would expect the url to be rtsp:// and not http://. Second, we have not had much luck with re-streaming Sony cameras. Most of them use a proprietary RTP packetization scheme that we do not support. So, first see if you can find the RTSP/RTP. Then give it a go. If you get a bunch of error messages then it may be the packetization scheme. If you have documentation that describes their RSTP/RTP format I can take a look at it to see if it contains info to determine if it will work or not (support@wowza.com).

Charlie

Charlie, Sony did indeed use their own RTP packetization scheme before, but their latest firmware added a RTSP server WITHOUT extra packets. Plays fine in VLC (VLC also had troubles with the previous RTP packetization scheme). The logs don’t mention anything, as you could have seen in my previous post…

Thank you Charlie for your support,

A strange things is when I change the ip address of the device.

The rtp device is now on ip 192.168.3.50 (not .3.53 as before), but the responses have the .53 ip adress in the a=control:…

VLC is still working ok.

This is the vlc network sniff:

OPTIONS rtsp://192.168.3.50 RTSP/1.0
CSeq: 1
User-Agent: VLC media player (LIVE555 Streaming Media v2008.07.24)

RTSP/1.0 200 OK
CSeq: 1
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, OPTIONS
Server: HIP1.1.0.117.0

DESCRIBE rtsp://192.168.3.50 RTSP/1.0
CSeq: 2
Accept: application/sdp
User-Agent: VLC media player (LIVE555 Streaming Media v2008.07.24)

RTSP/1.0 200 OK
CSeq: 2
Content-Type: application/sdp
Content-Length: 284
Server: HIP1.1.0.117.0

v=0
o=- 0 0 IN IP4 192.168.3.53
s=HeliosIP Streaming
c=IN IP4 192.168.3.53
t=0 0
m=audio 0 RTP/AVP 0
a=control:rtsp://192.168.3.53/audio
m=video 0 RTP/AVP 96
a=rtpmap:96 H264/90000
a=fmtp:96 profile-level-id=42E01E; packetization-mode=1
a=control:rtsp://192.168.3.53/video
SETUP rtsp://192.168.3.53/audio RTSP/1.0
CSeq: 3
Transport: RTP/AVP;unicast;client_port=1178-1179
User-Agent: VLC media player (LIVE555 Streaming Media v2008.07.24)

RTSP/1.0 200 OK
CSeq: 3
Transport: RTP/AVP/UDP;unicast;client_port=1178-1179;mode=PLAY
Session: 14334;Timeout=30
Server: HIP1.1.0.117.0

SETUP rtsp://192.168.3.53/video RTSP/1.0
CSeq: 4
Transport: RTP/AVP;unicast;client_port=1180-1181
Session: 14334
User-Agent: VLC media player (LIVE555 Streaming Media v2008.07.24)

RTSP/1.0 200 OK
CSeq: 4
Transport: RTP/AVP/UDP;unicast;client_port=1180-1181;mode=PLAY
Session: 14334;Timeout=30
Server: HIP1.1.0.117.0

PLAY rtsp://192.168.3.50 RTSP/1.0
CSeq: 5
Session: 14334
Range: npt=0.000-
User-Agent: VLC media player (LIVE555 Streaming Media v2008.07.24)

RTSP/1.0 200 OK
CSeq: 5
Server: HIP1.1.0.117.0

TEARDOWN rtsp://192.168.3.50 RTSP/1.0
CSeq: 6
Session: 14334
User-Agent: VLC media player (LIVE555 Streaming Media v2008.07.24)

RTSP/1.0 200 OK
CSeq: 6
Server: HIP1.1.0.117.0

The SETUP is issued using the “wrong” ip address in a=control:rtsp://192.168.3.53/audio

SETUP rtsp://192.168.3.53/audio

but the PLAY and TEARDOWN is issued using the right device IP Address

PLAY rtsp://192.168.3.50 RTSP/1.0

I already noted that when the device was on 192.168.1.100. VLC stream was ok, but wowza does not, as already reported.

To analyze only one problem at a time I set the ip address to the one reported in the network sniff (192.168.3.53) and i post the first message.

Now for a complete report i post you this.

Thank you for reading my post, I am sorry for my poor English.

Thank you very much!!!

Applied the patch and now I can stream the video except for a 2 second latency, but I think is due to a very small virtual machine.

About the Ip Issue wowza now is able to go in the right way even with that issue, like VLC.

Now I’ll perform some deeper tests.

Do you need a network sniffing to see what’s happen exactly with this patch and the device?

Thank you for your fast response and patch.

Bye

Charlie!,

This is awesome! I was streaming from two different browsers and it worked great!

Thanks again for your help!!!

Do you all have any recommendations for good free flash players where you can embed the source of the video streams? This may be in the forums, I just hadn’t gotten to this point yet.

Have a great night!

Sincerely,

Devin

Charlie,

Thanks again!

After testing the feed through the flash clients streaming through Wowza using rtp-live the stream only relays through the Wowza server as a flash stream. This is great!

What I’d like to eventually do is have the Wowza Server record and save video from this stream.

I would essentially like the Wowza server to connect to the stream and keep a constant connection. Then when a user connects to the Wowza server have the Wowza server re-stream that single stream. ** Right now the Wowza server will establish a new rtsp session every time a client connects.

Is there a way to have the Wowza server mirror or only connect to the source stream once and re-stream without having to re-establish a rtsp connection?

Hi there, I have a full working live streaming on a wowza server but I was wondering how to create compatible streams to re-broadcast a live streaming to blackberries and iphones?

Do anyone know where to start (explaining like if I’m a newbie)?

Hello ALL,

I’m new to Wowza, new to video streaming! My first goal is to stream from an Axis M-1031-W. Followed the instructions in the 1st post of this thread. When I tried to play the stream using the LiveVideoStreaming client, I get the following error from the Wowza Server window:


INFO application app-start definst rtplive/definst

INFO session connect-pending 192.168.1.56 -

INFO session connect 192.168.1.56 -

INFO stream create - -

INFO server comment - MediaStreamMediaCasterPlay: startPlay

INFO server comment - RTPMediaCaster.create

INFO server comment - RTPMediaCaster.init

INFO server comment - RTPMediaCaster.Reconnector: start

ERROR server comment - RTPSessionDescriptionDataProviderBasicRTSPConnection.conn

ect: Failed to connect: org.apache.mina.common.RuntimeIOException: Failed to get

the session[ConnectException: null].

WARN server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo: RTSP

/RTP re-streaming. Cannot connect to server: rtsp://192.161.1.34:554/axis-media/

media.amp

INFO server comment - MediaStreamMediaCasterPlay: close

ERROR server comment - RTPSessionDescriptionDataProviderBasicRTSPConnection.conn

ect: Failed to connect: org.apache.mina.common.RuntimeIOException: Failed to get

the session[ConnectException: null].

INFO stream destroy rtsp://192.161.1.34:554/axis-media/media.amp -

INFO session disconnect 2124959138 -

ERROR server comment - RTPSessionDescriptionDataProviderBasicRTSPConnection.conn

ect: Failed to connect: org.apache.mina.common.RuntimeIOException: Failed to get

the session[ConnectException: null].

ERROR server comment - RTPSessionDescriptionDataProviderBasicRTSPConnection.conn

ect: Failed to connect: org.apache.mina.common.RuntimeIOException: Failed to get

the session[ConnectException: null].

INFO server comment - RTPMediaCaster.shutdown: rtsp://192.161.1.34:554/axis-medi

a/media.amp

INFO server comment - RTPMediaCaster.disconnect

INFO server comment - RTPMediaCaster.Reconnector: stop


For the server address: I’ve rtmp://192.168.1.56/rtplive

For the stream address: I’ve rtsp://192.161.1.34:554/axis-media/media.amp

Don’t I need to input the user id & password of my camera in Wowza somwhere?

On the camera, I’ve created a new stream profile with H.264 video encoding. Is there anything else I’ve to set to get to work? I am able to preview my stream output through the camera web interface.

Thanks,

Bruce

Charlie - you are so right. My BAD. I had the wrong IP for the camera.

Just gave it a try with the correct IP. It finds the camera but fails the authentication. Where do I specifiy the user name and password?


INFO application app-start definst rtplive/definst

INFO session connect-pending 192.168.1.56 -

INFO session connect 192.168.1.56 -

INFO stream create - -

INFO server comment - MediaStreamMediaCasterPlay: startPlay

INFO server comment - RTPMediaCaster.create

INFO server comment - RTPMediaCaster.init

INFO server comment - RTPMediaCaster.Reconnector: start

WARN server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.processRe

sponse: Authentication required[401]: Username password not available

WARN server comment - RTPSessionDescriptionDataProviderBasic.getStreamInfo: RTSP

/RTP re-streaming timeout.


Thanks,

Bruce

Ok. I’ve figured out how to specifiy the authentication. It is streaming!!

I am getting a two seconds delay in the streaming. This is done within my local network. Are there ways to minimize the delay? Or is this the least it can be?

Where do I set the NetStream.setBufferTime(0)?

Tried changing the flushInterval to 25 and the streaming STOPPED to work. When I view using the Live Video Streaming example, I’d only get the first frame. When I change the flushInterval back to 70, streaming works again.

I had come across a post in this forum with the guy saying he was able to get the latency down to less than a second by using a different flash player. I can’t find that post anymore.

Anyway, I’m trying to test with JW Player now but can’t get it to play. See post for more info:

http://www.wowza.com/forums/showthread.php?p=20184#post20184

Thanks,

Bruce

How about Flow Player? Is that a way to set the buffer length there? I got Flow Player playing my stream but the latency is worse, close to 4 secounds compare to about 2 seconds from the LiveVideoStreaming example.

Still cannot get the stream to play in JW Player.

http://www.wowza.com/forums/showthread.php?p=20184#post20184