# Live stream audio delay

**URL:** https://community.wowza.com/t/live-stream-audio-delay/52069
**Category:** Wowza Streaming Engine
**Created:** [October 4, 2018, 4:53pm UTC](https://community.wowza.com/t/live-stream-audio-delay/52069 "2018-10-04T16:53:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kazuo\_shiraishi](https://avatars.discourse-cdn.com/v4/letter/k/5daacb/32.png) [@kazuo\_shiraishi](https://community.wowza.com/u/kazuo_shiraishi)
#### Post date: [October 4, 2018, 4:53pm UTC](https://community.wowza.com/t/live-stream-audio-delay/52069/1 "2018-10-04T16:53:37Z")

</div>

Hi,

We have problem about RTP over RTSP streaming video.

I have set up Wowza&ffmpeg and have created an stream, which is a consistent audio delay(2sec),  
when accessing the stream with VLC(RTSP).

However when I access the same stream with Smartclient, there is a 20 - 30 sec delay. ( xProtect Smartclient 2018 R2 )  
The delay increases with the passage of time.

Is there an issue with Wowza&ffmpeg setting the audio?

１）System configuration

iphone（Gogoder is installed）→（RTMP※１）→ Wowza Streaming engine&ffmpeg →(RTP/RTSP※２） → ｘProtect Professional+( recorder)  
※１ RTMP：H.264、AAC\_LW  
※２ RTP/RTSP:H.264、G711

２） codec

Video codec H.264

Audio codec G711 mulaw ( We transcode from AAC\_LW 44100Hz to G711 8000Hz with ffmpeg(audio codec pcm\_mulaw))

1. ffmpeg

ffmpeg -rtsp\_transport tcp -i “rtsp://:1935/live/myStream” -rtsp\_transport tcp -i “rtsp://:1935/live/myStream” -vsync 1 -vcodec libx264 -r 29.97 -acodec pcm\_mulaw -async 1000 -ac 1 -ar 8000 -map 0:0 -map 1:1 -f rtsp -rtsp\_transport tcp rtsp://:1935/live/testRTSP

※IP’s are same.

Thanks.
