Results 1 to 5 of 5

Thread: 3 secondes latency with wowza server

  1. #1
    Join Date
    May 2015

    Default 3 secondes latency with wowza server


    I'm trying to develop a live streaming application with RTSP protocol.

    On the PC with the Wowza Server, I execute the following command :

    ffmpeg -f dshow -i video="Name_Of_My_Cam":audio="Name_Of_My_Microphone" -vcodec h263p -f rtsp -muxdelay 0.1 rtsp://<Wowza_server_ip_adress>:1935/live/test
    And I'm trying to play this stream on a VideoView on my Samsung Galaxy Note 3 Lite. Here the code :

        protected void onCreate(Bundle savedInstanceState) {
            VideoView vv = (VideoView) findViewById(;
            // Receive RTSP video from Wowza Server
    I managed to read the video and the sound but it makes 3 secondes (or more...) to start and I keep this delay during all the streaming. It is very annoying because I want to develop a call session.

    Does anybody know how to reduce this delay ? Is it a Wowza issue ?

    Thank you for helping me.

  2. #2



    You could try (if you haven't already) setting your Wowza app's StreamType to live-lowlatency. Note that there will always be some latency in your workflow, via ffmpeg doing the encoding, Wowza doing the re-streaming, your Android app replaying the stream, so 3 seconds may be a pretty reasonable delay. How much delay is involved if you test using the Wowza Test Player in the Engine Manager or playing back using something like VLC? Or alternatively if you create a stream file in Wowza with the source RTSP stream as its content. If the delay is less in those tests then there may be not much more that can be done prior to it reaching the Android device.


  3. #3
    Join Date
    May 2015



    I have tried to set the setting StreamType to live-latency. But it changed nothing...

    I found the solution : the issue was that the class "VideoView" was buffering during 3 seconds before starting. I found a library (vitamio) which allow me to read video without buffering (or better manage the buffer) : see this page.

    On the other side, when I wanted to read video sended from android to the PC, I was used JWPlayer, and there was a delay too. Here the solution is to lower the parameter "bufferlength" in the JavaScript of the JWPlayer. But if this parameters is set to 0, it will not work, put it minimum to 0.1.

    I hope it will help

  4. #4


    Hi Leopold,

    Thank you for reporting your findings. I'm sure this will be helpful for others also.


  5. #5
    Join Date
    Jun 2012



    As a reference, there are also some useful information in the "How to achieve the lowest latency from capture to playback" forum article.


Similar Threads

  1. Latency on server
    By livesreamingforall in forum General Forum
    Replies: 5
    Last Post: 12-19-2014, 12:15 PM
  2. Is it possible to know the latency between client and server for HLS?
    By PerryASD in forum Live Streaming and Encoders
    Replies: 2
    Last Post: 10-13-2014, 11:19 AM
  3. Lowest latency possible encoder and Wowza settings for iOS devices
    By SyberNow in forum Live Streaming and Encoder Discussion
    Replies: 3
    Last Post: 04-03-2012, 10:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts