RTSP load times

Hi All

I’ve set up a RTSP application which works over the standard 554 port.

However - load time of the stream takes forever 10-15 seconds when playing in VLC. The stream is started in stream manager and plays straight away when requesting over RTMP.

I recognize this could be UDP protocol issues as per the old school days :wink: but do you have any further suggestions as to how I could speed it up a little.

Also, I know the player controls the protocol for UDP or TCP, do you know which of the 2 android and symbian request?

Thanks :slight_smile:

maaad999

RTMP and RTSP are usually comparable start times in my experience. Do you something to test? You can send to support@wowza.com. Include a link to this thread.

What encoder are you using, settings?

Richard

Hi All

However - load time of the stream takes forever 10-15 seconds when playing in VLC. The stream is started in stream manager and plays straight away when requesting over RTMP.

maaad999

I have same problem here … We had talked here on forum about it more times … But problem is still here … But if Richard is opening my stream in VLC , then its start instantly … Its crazy , because Richard is on other side of Earth , and im on same segment with wowza …

I have found Android startup to be slow. It is mostly a player issue. Startup maybe faster if you setup the encoder to send key frames more often.

Charlie

It sure sounds like the case. BTW, an alternative to RTSP/RTP streaming to Android is Flash streaming. It is probably a much more reliable and robust option.

Charlie

It is most likely a UDP routing problem. It is probablly trying RTSP/RTP over UDP first. That is failing so it if failing over the RTSP/RTP over TCP. This is succeeding. Open the debug window in VLC and you should see it make two connection attempts. One over UDP and the second interleaved (over TCP).

Charlie

Hi,

I have a similar problem. The RTSP streams in VLC open in under 5 seconds which is OK, but on Android it takes them ~ 15 seconds.

What could be the reason for this? The log from Wowza when using Android is below (I’ve removed server IP):

[HTML]

2011-02-02 13:26:35 CET connect rtsp INFO 200 352769367 - defaultVHost astream definst 76776.453 IP_ADDRESS 554 rtsp://server:1935/astream/stream.sdp IP_ADDRESS rtsp - HTC Streaming Player htc_wwe / 1.0 / htc_buzz / 2.2.1 352769367 0 0 - - - - - - - - - - rtsp://server:1935/astream/stream.sdp rtsp://server:1935/astream/stream.sdp - rtsp://server:1935/astream/stream.sdp -

2011-02-02 13:26:35 CET create stream INFO 200 - - defaultVHost astream definst 0.0 IP_ADDRESS 554 rtsp://server:1935/astream/stream.sdp IP_ADDRESS rtsp - HTC Streaming Player htc_wwe / 1.0 / htc_buzz / 2.2.1 352769367 0 0 12 0 0 0 stream.sdp - - - - - rtsp://server:1935/astream/stream.sdp rtsp://server:1935/astream/stream.sdp - rtsp://server:1935/astream/stream.sdp -

2011-02-02 13:26:35 CET comment server INFO 200 - RTPStream.lockRepeaterStreams: repeaterLock: stream.sdp defaultVHost astream definst 76772.25 IP_ADDRESS 554 rtsp://server:1935/astream/stream.sdp IP_ADDRESS rtsp - HTC Streaming Player htc_wwe / 1.0 / htc_buzz / 2.2.1 352769367 0 0 - - - - - - - - - - - - - rtsp://server:1935/astream/stream.sdp -

2011-02-02 13:26:35 CET describe rtsp INFO 200 352769367 - defaultVHost astream definst 76772.25 IP_ADDRESS 554 rtsp://server:1935/astream/stream.sdp IP_ADDRESS rtsp - HTC Streaming Player htc_wwe / 1.0 / htc_buzz / 2.2.1 352769367 0 0 - - - - stream.sdp - - - - - rtsp://server:1935/astream/stream.sdp rtsp://server:1935/astream/stream.sdp - rtsp://server:1935/astream/stream.sdp -

2011-02-02 13:26:35 CET play stream INFO 200 stream.sdp - defaultVHost astream definst 0.094 IP_ADDRESS 554 rtsp://server:1935/astream/stream.sdp IP_ADDRESS rtsp - HTC Streaming Player htc_wwe / 1.0 / htc_buzz / 2.2.1 352769367 0 0 12 0 0 0 stream.sdp - - - - - rtsp://server:1935/astream/stream.sdp rtsp://server:1935/astream/stream.sdp - rtsp://server:1935/astream/stream.sdp -

2011-02-02 13:26:35 CET comment server INFO 200 - RTPUDPTransport.bind[astream/definst]: 0.0.0.0/0.0.0.0:6982 - - - 76772.344 - - - - - - - - - - - - - - - - - - - - - - - - -

2011-02-02 13:26:35 CET comment server INFO 200 - RTPUDPTransport.bind[astream/definst]: 0.0.0.0/0.0.0.0:6983 - - - 76772.359 - - - - - - - - - - - - - - - - - - - - - - - - -

2011-02-02 13:26:35 CET comment server INFO 200 - RTPUDPTransport.bind[astream/definst]: 0.0.0.0/0.0.0.0:6980 - - - 76772.375 - - - - - - - - - - - - - - - - - - - - - - - - -

2011-02-02 13:26:35 CET comment server INFO 200 - RTPUDPTransport.bind[astream/definst]: 0.0.0.0/0.0.0.0:6981 - - - 76772.375 - - - - - - - - - - - - - - - - - - - - - - - - -

2011-02-02 13:26:35 CET play rtsp INFO 200 352769367 - defaultVHost astream definst 76772.375 IP_ADDRESS 554 rtsp://server:1935/astream/stream.sdp IP_ADDRESS rtsp - HTC Streaming Player htc_wwe / 1.0 / htc_buzz / 2.2.1 352769367 0 0 - - - - stream.sdp - - - - - rtsp://server:1935/astream/stream.sdp rtsp://server:1935/astream/stream.sdp - rtsp://server:1935/astream/stream.sdp -

2011-02-02 13:26:52 CET comment server INFO 200 - RTPStream.unlockRepeaterStreams: repeaterUnLock: stream.sdp - - - 76789.141 - - - - - - - - - - - - - - - - - - - - - - - - -

2011-02-02 13:26:52 CET comment server INFO 200 - RTPUDPTransport.unbind[astream/definst]: 0.0.0.0/0.0.0.0:6982 - - - 76789.141 - - - - - - - - - - - - - - - - - - - - - - - - -

2011-02-02 13:26:52 CET comment server INFO 200 - RTPUDPTransport.unbind[astream/definst]: 0.0.0.0/0.0.0.0:6983 - - - 76789.141 - - - - - - - - - - - - - - - - - - - - - - - - -

2011-02-02 13:26:52 CET comment server INFO 200 - RTPUDPTransport.unbind[astream/definst]: 0.0.0.0/0.0.0.0:6980 - - - 76789.141 - - - - - - - - - - - - - - - - - - - - - - - - -

2011-02-02 13:26:52 CET comment server INFO 200 - RTPUDPTransport.unbind[astream/definst]: 0.0.0.0/0.0.0.0:6981 - - - 76789.141 - - - - - - - - - - - - - - - - - - - - - - - - -

2011-02-02 13:26:52 CET stop stream INFO 200 stream.sdp - defaultVHost astream definst 16.891 IP_ADDRESS 554 rtsp://server:1935/astream/stream.sdp IP_ADDRESS rtsp - HTC Streaming Player htc_wwe / 1.0 / htc_buzz / 2.2.1 352769367 0 946965 12 3505634887037 0 946965 stream.sdp - - - - - rtsp://server:1935/astream/stream.sdp rtsp://server:1935/astream/stream.sdp - rtsp://server:1935/astream/stream.sdp -

2011-02-02 13:26:52 CET destroy stream INFO 200 stream.sdp - defaultVHost astream definst 16.891 IP_ADDRESS 554 rtsp://server:1935/astream/stream.sdp IP_ADDRESS rtsp - HTC Streaming Player htc_wwe / 1.0 / htc_buzz / 2.2.1 352769367 0 946965 12 - 0 946965 stream.sdp - - - - - rtsp://server:1935/astream/stream.sdp rtsp://server:1935/astream/stream.sdp - rtsp://server:1935/astream/stream.sdp -

2011-02-02 13:26:52 CET disconnect rtsp INFO 200 352769367 - defaultVHost astream definst 76793.344 IP_ADDRESS 554 rtsp://server:1935/astream/stream.sdp IP_ADDRESS rtsp - HTC Streaming Player htc_wwe / 1.0 / htc_buzz / 2.2.1 352769367 0 0 - - - - - - - - - - rtsp://server:1935/astream/stream.sdp rtsp://server:1935/astream/stream.sdp - rtsp://server:1935/astream/stream.sdp -

2011-02-02 13:26:52 CET connect rtsp INFO 200 189779583 - defaultVHost astream definst 76793.375 IP_ADDRESS 554 rtsp://server:1935/astream/stream.sdp IP_ADDRESS rtsp - HTC Streaming Player htc_wwe / 1.0 / htc_buzz / 2.2.1 189779583 0 0 - - - - - - - - - - rtsp://server:1935/astream/stream.sdp rtsp://server:1935/astream/stream.sdp - rtsp://server:1935/astream/stream.sdp -

2011-02-02 13:26:52 CET create stream INFO 200 - - defaultVHost astream definst 0.0 IP_ADDRESS 554 rtsp://server:1935/astream/stream.sdp IP_ADDRESS rtsp - HTC Streaming Player htc_wwe / 1.0 / htc_buzz / 2.2.1 189779583 0 0 13 0 0 0 stream.sdp - - - - - rtsp://server:1935/astream/stream.sdp rtsp://server:1935/astream/stream.sdp - rtsp://server:1935/astream/stream.sdp -

2011-02-02 13:26:52 CET comment server INFO 200 - RTPStream.lockRepeaterStreams: repeaterLock: stream.sdp defaultVHost astream definst 76789.172 IP_ADDRESS 554 rtsp://server:1935/astream/stream.sdp IP_ADDRESS rtsp - HTC Streaming Player htc_wwe / 1.0 / htc_buzz / 2.2.1 189779583 0 0 - - - - - - - - - - - - - rtsp://server:1935/astream/stream.sdp -

2011-02-02 13:26:52 CET describe rtsp INFO 200 189779583 - defaultVHost astream definst 76789.172 IP_ADDRESS 554 rtsp://server:1935/astream/stream.sdp IP_ADDRESS rtsp - HTC Streaming Player htc_wwe / 1.0 / htc_buzz / 2.2.1 189779583 0 0 - - - - stream.sdp - - - - - rtsp://server:1935/astream/stream.sdp rtsp://server:1935/astream/stream.sdp - rtsp://server:1935/astream/stream.sdp -

2011-02-02 13:26:52 CET play stream INFO 200 stream.sdp - defaultVHost astream definst 0.047 IP_ADDRESS 554 rtsp://server:1935/astream/stream.sdp IP_ADDRESS rtsp - HTC Streaming Player htc_wwe / 1.0 / htc_buzz / 2.2.1 189779583 0 0 13 0 0 0 stream.sdp - - - - - rtsp://server:1935/astream/stream.sdp rtsp://server:1935/astream/stream.sdp - rtsp://server:1935/astream/stream.sdp -

2011-02-02 13:26:52 CET play rtsp INFO 200 189779583 - defaultVHost astream definst 76789.219 IP_ADDRESS 554 rtsp://server:1935/astream/stream.sdp IP_ADDRESS rtsp - HTC Streaming Player htc_wwe / 1.0 / htc_buzz / 2.2.1 189779583 0 0 - - - - stream.sdp - - - - - rtsp://server:1935/astream/stream.sdp rtsp://server:1935/astream/stream.sdp - rtsp://server:1935/astream/stream.sdp -

2011-02-02 13:27:22 CET comment server WARN 200 - packetLoss[audio]: last:1898099 curr:1898101 - - - 76823.562 - - - - - - - - - - - - - - - - - - - - - - - - -

2011-02-02 13:27:22 CET comment server WARN 200 - packetLoss[audio]: last:1898099 curr:1898101 - - - 76823.562 - - - - - - - - - - - - - - - - - - - - - - - - -

[/HTML]There is a gap of 17 seconds after the PLAY command has been issued.

When opening the stream with VLC, the log is this:

[HTML]

2011-02-02 13:42:44 CET connect rtsp INFO 200 82362452 - defaultVHost astream definst 77745.375 192.168.204.30 554 rtsp://server:1935/astream/stream.sdp 192.168.204.30 rtsp - LibVLC/1.1.5 (LIVE555 Streaming Media v2010.09.25) 82362452 0 0 - - - - - - - - - - rtsp://server:1935/astream/stream.sdp rtsp://server:1935/astream/stream.sdp - rtsp://server:1935/astream/stream.sdp -

2011-02-02 13:42:44 CET create stream INFO 200 - - defaultVHost astream definst 0.0 192.168.204.30 554 rtsp://server:1935/astream/stream.sdp 192.168.204.30 rtsp - LibVLC/1.1.5 (LIVE555 Streaming Media v2010.09.25) 82362452 0 0 16 0 0 0 stream.sdp - - - - - rtsp://server:1935/astream/stream.sdp rtsp://server:1935/astream/stream.sdp - rtsp://server:1935/astream/stream.sdp -

2011-02-02 13:42:44 CET comment server INFO 200 - RTPStream.lockRepeaterStreams: repeaterLock: stream.sdp defaultVHost astream definst 77741.172 192.168.204.30 554 rtsp://server:1935/astream/stream.sdp 192.168.204.30 rtsp - LibVLC/1.1.5 (LIVE555 Streaming Media v2010.09.25) 82362452 0 0 - - - - - - - - - - - - - rtsp://server:1935/astream/stream.sdp -

2011-02-02 13:42:44 CET describe rtsp INFO 200 82362452 - defaultVHost astream definst 77741.172 192.168.204.30 554 rtsp://server:1935/astream/stream.sdp 192.168.204.30 rtsp - LibVLC/1.1.5 (LIVE555 Streaming Media v2010.09.25) 82362452 0 0 - - - - stream.sdp - - - - - rtsp://server:1935/astream/stream.sdp rtsp://server:1935/astream/stream.sdp - rtsp://server:1935/astream/stream.sdp -

2011-02-02 13:42:44 CET play stream INFO 200 stream.sdp - defaultVHost astream definst 0.015 192.168.204.30 554 rtsp://server:1935/astream/stream.sdp 192.168.204.30 rtsp - LibVLC/1.1.5 (LIVE555 Streaming Media v2010.09.25) 82362452 0 0 16 0 0 0 stream.sdp - - - - - rtsp://server:1935/astream/stream.sdp rtsp://server:1935/astream/stream.sdp - rtsp://server:1935/astream/stream.sdp -

2011-02-02 13:42:44 CET comment server INFO 200 - RTPUDPTransport.bind[astream/definst]: 0.0.0.0/0.0.0.0:6974 - - - 77741.187 - - - - - - - - - - - - - - - - - - - - - - - - -

2011-02-02 13:42:44 CET comment server INFO 200 - RTPUDPTransport.bind[astream/definst]: 0.0.0.0/0.0.0.0:6975 - - - 77741.203 - - - - - - - - - - - - - - - - - - - - - - - - -

2011-02-02 13:42:44 CET comment server INFO 200 - RTPUDPTransport.bind[astream/definst]: 0.0.0.0/0.0.0.0:6984 - - - 77741.219 - - - - - - - - - - - - - - - - - - - - - - - - -

2011-02-02 13:42:44 CET comment server INFO 200 - RTPUDPTransport.bind[astream/definst]: 0.0.0.0/0.0.0.0:6985 - - - 77741.219 - - - - - - - - - - - - - - - - - - - - - - - - -

2011-02-02 13:42:44 CET play rtsp INFO 200 82362452 - defaultVHost astream definst 77741.219 192.168.204.30 554 rtsp://server:1935/astream/stream.sdp 192.168.204.30 rtsp - LibVLC/1.1.5 (LIVE555 Streaming Media v2010.09.25) 82362452 0 0 - - - - stream.sdp - - - - - rtsp://server:1935/astream/stream.sdp rtsp://server:1935/astream/stream.sdp - rtsp://server:1935/astream/stream.sdp -

2011-02-02 13:42:45 CET comment server INFO 200 - UDPTransport.firstPacket: 0.0.0.0/0.0.0.0:6975 - - - 77746.406 - - - - - - - - - - - - - - - - - - - - - - - - -

2011-02-02 13:42:45 CET comment server INFO 200 - UDPTransport.firstPacket: 0.0.0.0/0.0.0.0:6985 - - - 77746.406 - - - - - - - - - - - - - - - - - - - - - - - - -

2011-02-02 13:42:51 CET comment server INFO 200 - RTPStream.unlockRepeaterStreams: repeaterUnLock: stream.sdp - - - 77748.062 - - - - - - - - - - - - - - - - - - - - - - - - -

2011-02-02 13:42:51 CET comment server INFO 200 - RTPUDPTransport.unbind[astream/definst]: 0.0.0.0/0.0.0.0:6974 - - - 77748.062 - - - - - - - - - - - - - - - - - - - - - - - - -

2011-02-02 13:42:51 CET comment server INFO 200 - RTPUDPTransport.unbind[astream/definst]: 0.0.0.0/0.0.0.0:6975 - - - 77748.062 - - - - - - - - - - - - - - - - - - - - - - - - -

2011-02-02 13:42:51 CET comment server INFO 200 - RTPUDPTransport.unbind[astream/definst]: 0.0.0.0/0.0.0.0:6984 - - - 77748.062 - - - - - - - - - - - - - - - - - - - - - - - - -

2011-02-02 13:42:51 CET comment server INFO 200 - RTPUDPTransport.unbind[astream/definst]: 0.0.0.0/0.0.0.0:6985 - - - 77748.062 - - - - - - - - - - - - - - - - - - - - - - - - -

2011-02-02 13:42:51 CET stop stream INFO 200 stream.sdp - defaultVHost astream definst 6.89 192.168.204.30 554 rtsp://server:1935/astream/stream.sdp 192.168.204.30 rtsp - LibVLC/1.1.5 (LIVE555 Streaming Media v2010.09.25) 82362452 360 383817 16 3505635845621 360 383817 stream.sdp - - - - - rtsp://server:1935/astream/stream.sdp rtsp://server:1935/astream/stream.sdp - rtsp://server:1935/astream/stream.sdp -

2011-02-02 13:42:51 CET destroy stream INFO 200 stream.sdp - defaultVHost astream definst 6.89 192.168.204.30 554 rtsp://server:1935/astream/stream.sdp 192.168.204.30 rtsp - LibVLC/1.1.5 (LIVE555 Streaming Media v2010.09.25) 82362452 360 383817 16 - 360 383817 stream.sdp - - - - - rtsp://server:1935/astream/stream.sdp rtsp://server:1935/astream/stream.sdp - rtsp://server:1935/astream/stream.sdp -

2011-02-02 13:42:51 CET disconnect rtsp INFO 200 82362452 - defaultVHost astream definst 77752.265 192.168.204.30 554 rtsp://server:1935/astream/stream.sdp 192.168.204.30 rtsp - LibVLC/1.1.5 (LIVE555 Streaming Media v2010.09.25) 82362452 0 0 - - - - - - - - - - rtsp://server:1935/astream/stream.sdp rtsp://server:1935/astream/stream.sdp - rtsp://server:1935/astream/stream.sdp -

[/HTML]Thanks!

Bojan

Keyframe interval is 2000ms, so I dont want to reduce it even further.

I’ve tried alternative Android player and it loads in the same time as VLC.

We can say that this problem is due to the built-in player.

With VLC it works fine, but only in native Android player it works quite slow. Any other suggestions?

Bojan

ok, thanks!

Bojan

You want to open the UDP ports, or set Application.xml /MediaCaster forceInterleaved Property to “true”

<Property>
    <Name>forceInterleaved</Name>
    <Value>true</Value>
    <Type>Boolean</Type>
</Property>

Richard

Not that I know.

Flash HTTP will probably be faster if it is Android 2.2 with Flash 10.1+

Richard

I understand that it could be a routing problem. But closing the UDP ports doesn’t seem to make a difference.

but where ? at my work ?