# Live Stream Recording Audio and Video Sync Issue

**URL:** https://community.wowza.com/t/live-stream-recording-audio-and-video-sync-issue/39618
**Category:** Wowza Streaming Engine
**Created:** [June 3, 2015, 12:15pm UTC](https://community.wowza.com/t/live-stream-recording-audio-and-video-sync-issue/39618 "2015-06-03T12:15:47Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![George\_Baker](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@George\_Baker](https://community.wowza.com/u/George_Baker)
#### Post date: [June 3, 2015, 12:15pm UTC](https://community.wowza.com/t/live-stream-recording-audio-and-video-sync-issue/39618/1 "2015-06-03T12:15:47Z")

</div>

I have seen this issue being posted many times without any resolution . We are using Wowza 4.1 . We are recording within wowza application using LiveStreamReecordManager . I am already using startOnKeyFrame with StreamRecordParameter . But Still there is no difference . Any parameters suggested for application.xml are not making any difference either . We are doing mp4 record only . This issue is causing us trouble as recorded OD files are pretty much useless. Please look in to this ASAP .

Will really appreciate your timely input in this issue .

---

<div class="post-metadata">

### Author: ![George\_Baker](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@George\_Baker](https://community.wowza.com/u/George_Baker)
#### Post date: [June 3, 2015, 12:35pm UTC](https://community.wowza.com/t/live-stream-recording-audio-and-video-sync-issue/39618/2 "2015-06-03T12:35:23Z")

</div>

To provide more information , This happens only when Main profile is used . If Baseline is used then this doesn’t happen . We have also used following parameters with no success .

liveStreamRecorderUseMoreAccurateAudioTimecodes = false

recordWaitForVideoKeyFrame = true

streamRecorderStartOnKeyFrame = true

streamRecorderBackBufferTime

---

<div class="post-metadata">

### Author: ![Silver\_Laadoga](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@Silver\_Laadoga](https://community.wowza.com/u/Silver_Laadoga)
#### Post date: [May 5, 2016, 3:13am UTC](https://community.wowza.com/t/live-stream-recording-audio-and-video-sync-issue/39618/3 "2016-05-05T03:13:16Z")

</div>

Has there been a solution yet? I am facing the same issue with live-record type of application.

---

<div class="post-metadata">

### Author: ![Helder\_Conde](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@Helder\_Conde](https://community.wowza.com/u/Helder_Conde)
#### Post date: [June 18, 2015, 2:12pm UTC](https://community.wowza.com/t/live-stream-recording-audio-and-video-sync-issue/39618/4 "2015-06-18T14:12:20Z")

</div>

Hi. I’m having the exact same problem described by sdabhi. Live stream is perfect, while recorded MP4 has A/V sync issues.

I’ve described my findings in details at [Recorded MP4 - Audio out of sync in Chrome and Quicktime](http://community.wowza.com/t/-/34450)

Anyone else has any ideas? Thanks!

---

<div class="post-metadata">

### Author: ![Helder\_Conde](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@Helder\_Conde](https://community.wowza.com/u/Helder_Conde)
#### Post date: [June 18, 2015, 2:13pm UTC](https://community.wowza.com/t/live-stream-recording-audio-and-video-sync-issue/39618/5 "2015-06-18T14:13:57Z")

</div>

As a matter of fact, sdabhi, can you please confirm whether the archived file, when played on VLC or Media Player Classic, runs just fine? What about on Quicktime Player?

Thanks!

Helder

---

<div class="post-metadata">

### Author: ![Hello\_There](https://avatars.discourse-cdn.com/v4/letter/h/76d3ee/32.png) [@Hello\_There](https://community.wowza.com/u/Hello_There)
#### Post date: [June 3, 2016, 3:06pm UTC](https://community.wowza.com/t/live-stream-recording-audio-and-video-sync-issue/39618/6 "2016-06-03T15:06:03Z")

</div>

Can you give a bit more info on the known issue?

Is it specific to certain types of live encoders, codecs, profiles?

> Hi pcurley,
> 
> Please [open a new support ticket](https://www.wowza.com/support/open-ticket) referencing this forum post. Our Engineering Team has identified an issue with some live-record recordings being out of lip sync and has a fix available that will be included with our next update. We would like to see if your situation matches this current known scenario or is a different problem.
> 
> If you could include a zipped copy of your conf/ and logs/ directories with this ticket, that will help us determine if this is a relevant fix.
> 
> Best regards,
> 
> Andrew

---

<div class="post-metadata">

### Author: ![George\_Baker](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@George\_Baker](https://community.wowza.com/u/George_Baker)
#### Post date: [June 3, 2015, 3:35pm UTC](https://community.wowza.com/t/live-stream-recording-audio-and-video-sync-issue/39618/7 "2015-06-03T15:35:49Z")

</div>

@Animaleante , That’s good . Although I don’t want to add an extra layer of conversion and wowza module must be able to record stream without this issue . With so many posts in forum I think it is really an issue and wowza should provide some input a way to fix it.

---

<div class="post-metadata">

### Author: ![George\_Baker](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@George\_Baker](https://community.wowza.com/u/George_Baker)
#### Post date: [June 4, 2015, 4:53am UTC](https://community.wowza.com/t/live-stream-recording-audio-and-video-sync-issue/39618/8 "2015-06-04T04:53:23Z")

</div>

Any possibility to get some update from wowza team ?

---

<div class="post-metadata">

### Author: ![George\_Baker](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@George\_Baker](https://community.wowza.com/u/George_Baker)
#### Post date: [June 4, 2015, 12:10pm UTC](https://community.wowza.com/t/live-stream-recording-audio-and-video-sync-issue/39618/9 "2015-06-04T12:10:15Z")

</div>

Here is Wirecast settings shot . ![](http://i.imgur.com/4txbDQ8.png). I have tested this with our custom player which is built on top of OSMF and also here [http://matbury.com/strobe/setup.html](http://matbury.com/strobe/setup.html)

Please consider this

1. This does not happen with live stream at all . Only after recorded file .

2. MP4 recordings has issue .

3. We have used settings I already described above and we already have LiveStreamPacketizers installed.

4. We are recording on wowza module as code below

String streamName = stream.getName();

IApplicationInstance appInstance = stream.getClient().getAppInstance();

IVHost vhost = null;

vhost = appInstance.getVHost();

ILiveStreamRecordManager recorder = recorders.get(streamName);

if (recorder != null) {

recorder.stopRecording(appInstance, streamName);

}

recorder = vhost.getLiveStreamRecordManager();

StreamRecorderParameters srp = new StreamRecorderParameters(stream.getClient().getAppInstance());

srp.outputPath = outputPath;

srp.outputFile = outputFile;

srp.segmentationType = IStreamRecorderConstants.SEGMENT\_NONE;

srp.versioningOption = IStreamRecorderConstants.APPEND\_FILE;

srp.startOnKeyFrame = true;

srp.recordData = true;

recorder.startRecording(appInstance, streamName, srp);

---

<div class="post-metadata">

### Author: ![George\_Baker](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@George\_Baker](https://community.wowza.com/u/George_Baker)
#### Post date: [June 4, 2015, 3:47pm UTC](https://community.wowza.com/t/live-stream-recording-audio-and-video-sync-issue/39618/10 "2015-06-04T15:47:01Z")

</div>

@Salvadore , Thanks for your suggestions, I will try it out. Although it confuses me that if Live stream has no issue with this encoder settings , how changing it will help with recorded file.

---

<div class="post-metadata">

### Author: ![George\_Baker](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@George\_Baker](https://community.wowza.com/u/George_Baker)
#### Post date: [June 4, 2015, 4:50pm UTC](https://community.wowza.com/t/live-stream-recording-audio-and-video-sync-issue/39618/11 "2015-06-04T16:50:46Z")

</div>

I just tried that and still it made no difference .

---

<div class="post-metadata">

### Author: ![George\_Baker](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@George\_Baker](https://community.wowza.com/u/George_Baker)
#### Post date: [June 8, 2015, 5:40am UTC](https://community.wowza.com/t/live-stream-recording-audio-and-video-sync-issue/39618/12 "2015-06-08T05:40:53Z")

</div>

Anyone here can please provide direction ?

---

<div class="post-metadata">

### Author: ![George\_Baker](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@George\_Baker](https://community.wowza.com/u/George_Baker)
#### Post date: [June 8, 2015, 10:16am UTC](https://community.wowza.com/t/live-stream-recording-audio-and-video-sync-issue/39618/13 "2015-06-08T10:16:43Z")

</div>

Tried that as well and it makes no difference . No matter what player I tried it with it has same sync issues , and that is because record file itself has problem .

---

<div class="post-metadata">

### Author: ![George\_Baker](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@George\_Baker](https://community.wowza.com/u/George_Baker)
#### Post date: [June 12, 2015, 2:36pm UTC](https://community.wowza.com/t/live-stream-recording-audio-and-video-sync-issue/39618/14 "2015-06-12T14:36:02Z")

</div>

Even tried opening a ticket . No help there either , was suggested just try out parameters that I already mentioned before which makes no difference .

---

<div class="post-metadata">

### Author: ![George\_Baker](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@George\_Baker](https://community.wowza.com/u/George_Baker)
#### Post date: [June 18, 2015, 2:44pm UTC](https://community.wowza.com/t/live-stream-recording-audio-and-video-sync-issue/39618/15 "2015-06-18T14:44:19Z")

</div>

I have tried VLC and it was off . Are you sending stream from wirecast ? I have tried all different parameters with no success so far .

I haven’t got much of help from forum or support tickets so far . But if it helps you I have used following parameters in your code or application.xml .

liveStreamRecorderUseMoreAccurateAudioTimecodes = false

recordWaitForVideoKeyFrame = true

sortPackets = true

sortBufferSize = 750 , 250

streamRecorderBackBufferTime = 2000

splitOnTcDiscontinuity = true

moveFirstVideoFrameToZero = true

versioning: overwrite / append

recordData = true

segmentationType : SEGMENT\_NONE

---

<div class="post-metadata">

### Author: ![George\_Baker](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@George\_Baker](https://community.wowza.com/u/George_Baker)
#### Post date: [June 22, 2015, 8:32am UTC](https://community.wowza.com/t/live-stream-recording-audio-and-video-sync-issue/39618/16 "2015-06-22T08:32:07Z")

</div>

Yes I have already sent wowza my application java code . Before weekend I was advised to try debugAACTimecodes and debugMP3Timecodes to make sure if we see sync issue in logs . I am going to try that now .

---

<div class="post-metadata">

### Author: ![George\_Baker](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@George\_Baker](https://community.wowza.com/u/George_Baker)
#### Post date: [June 22, 2015, 5:44pm UTC](https://community.wowza.com/t/live-stream-recording-audio-and-video-sync-issue/39618/17 "2015-06-22T17:44:39Z")

</div>

Tried debuggAAC and MP3 , result shows following so it looks like its not going above 1 . However recorded file is still out of sync . We also upgraded to wowza 4.2 and still its same issue .

tc[0]: 1894821796:1894821796:44100

tc[0]: 1894821819:1894821819:44100

tc[0]: 1894821819:1894821819:44100

tc[0]: 1894821842:1894821842:44100

tc[0]: 1894821866:1894821866:44100

---

<div class="post-metadata">

### Author: ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)
#### Post date: [June 4, 2015, 10:56am UTC](https://community.wowza.com/t/live-stream-recording-audio-and-video-sync-issue/39618/18 "2015-06-04T10:56:20Z")

</div>

Hello.

What are the encoders settings for audio and video codec?

Also, what player are you testing the recordings in?

Thank you.

Salvadore

---

<div class="post-metadata">

### Author: ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)
#### Post date: [June 4, 2015, 11:19am UTC](https://community.wowza.com/t/live-stream-recording-audio-and-video-sync-issue/39618/19 "2015-06-04T11:19:27Z")

</div>

It looks like your key frame interval is to low. I would try changing that from 8 seconds down to 2 seconds. So a key frame every 60 frames instead of every 240 frames.

Salvadore

---

<div class="post-metadata">

### Author: ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)
#### Post date: [June 4, 2015, 11:21am UTC](https://community.wowza.com/t/live-stream-recording-audio-and-video-sync-issue/39618/20 "2015-06-04T11:21:01Z")

</div>

Sorry, forgot to also suggest testing the recording with one of the VOD sample players that ship with Wowza.

Thank you,

Salvadore

[Next page](https://community.wowza.com/t/live-stream-recording-audio-and-video-sync-issue/39618.md?page=2)
