# Reduce the delay while live streaming when pushing the rtsp stream through ffmpeg over tcp by using Wowza Streaming Engine with h.264 video encoder

**URL:** <https://community.wowza.com/t/reduce-the-delay-while-live-streaming-when-pushing-the-rtsp-stream-through-ffmpeg-over-tcp-by-using-wowza-streaming-engine-with-h-264-video-encoder/52825>\
**Category:** Wowza Streaming Engine\
**Tags:** low-latency\
**Created:** [February 8, 2019, 3:26pm UTC](https://community.wowza.com/t/reduce-the-delay-while-live-streaming-when-pushing-the-rtsp-stream-through-ffmpeg-over-tcp-by-using-wowza-streaming-engine-with-h-264-video-encoder/52825 "2019-02-08T15:26:26Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Naisargi\_Mehta](https://avatars.discourse-cdn.com/v4/letter/n/aca169/32.png) [@Naisargi\_Mehta](https://community.wowza.com/u/Naisargi_Mehta)\
**Post date:** [February 8, 2019, 3:26pm UTC](https://community.wowza.com/t/reduce-the-delay-while-live-streaming-when-pushing-the-rtsp-stream-through-ffmpeg-over-tcp-by-using-wowza-streaming-engine-with-h-264-video-encoder/52825/1 "2019-02-08T15:26:26Z")

</div>

Hi Guys,

I am using Wowza Streaming Engine Cloud with the low-latency for live streaming the rtsp stream which is pushed through ffmpeg over tcp.

Here I am using hardware h.264 encoder. When I start streaming the video from my android application with the possible low delay until viewing the live stream in the player, it gives me 2 second delay. But after some time the delay becomes 5-6 second. And sometimes it also goes up to 15 seconds or more.

I have also tired by using the -tune zerolatency and nobuffer flag in ffmpeg command as shown below:

ffmpeg -fflags nobuffer -use\_wallclock\_as\_timestamps 1 -loglevel quiet -f h264 -thread\_queue\_size 8 -r 20 -i /sdcard//LiveStreaming\_FIFO\_360.264 -f aac -thread\_queue\_size 8 -i /sdcard//LiveStream\_Audio\_FIFO\_360.aac -acodec copy -vcodec copy -tune zerolatency -b:a 15k -ar 16000 -ac 1 -rtpflags latm -f rtsp -rtsp\_transport tcp -y rtsps://url

Please help me out how can I reduce the delay up to 2-3 seconds.

Thanks,

Naisargi.

---

_[View the full topic](https://community.wowza.com/t/reduce-the-delay-while-live-streaming-when-pushing-the-rtsp-stream-through-ffmpeg-over-tcp-by-using-wowza-streaming-engine-with-h-264-video-encoder/52825)._
