# Corrupted Mp4 files with GoCoder and Streaming Engine 4 HTTPLiveStreamRecord

**URL:** https://community.wowza.com/t/corrupted-mp4-files-with-gocoder-and-streaming-engine-4-httplivestreamrecord/35206
**Category:** Wowza Streaming Engine
**Created:** [May 22, 2014, 6:52pm UTC](https://community.wowza.com/t/corrupted-mp4-files-with-gocoder-and-streaming-engine-4-httplivestreamrecord/35206 "2014-05-22T18:52:10Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Eyal\_Hasson](https://avatars.discourse-cdn.com/v4/letter/e/9f8e36/32.png) [@Eyal\_Hasson](https://community.wowza.com/u/Eyal_Hasson)
#### Post date: [May 22, 2014, 6:52pm UTC](https://community.wowza.com/t/corrupted-mp4-files-with-gocoder-and-streaming-engine-4-httplivestreamrecord/35206/1 "2014-05-22T18:52:10Z")

</div>

Hello,

We are using Wowza’s GoCoder on iPhones (latest update) to record live streams on our Wowza Striming Engine (4.0.1). We have done this for some time with our old 3.5 Wowza server, and the previous version of the GoCoder without any problem. Recently, we are getting many (about 50%) of the recorded files corrupted. When converting them with FFmpeg we always get this error: “Invalid SampleDelta in STTS”, and “multiple fourcc not supported” (I saw a track with the same error from 7 months ago, with no response). Also, many has this error too: “Queue input is backward in time” and various other errors.

I am not sure if the problem started after upgrading the server, or the GoCoder since we upgraded them in about the same time.

Thanks,

Eyal.

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [May 22, 2014, 9:06pm UTC](https://community.wowza.com/t/corrupted-mp4-files-with-gocoder-and-streaming-engine-4-httplivestreamrecord/35206/2 "2014-05-22T21:06:21Z")

</div>

Eyal,

Have you tried applying a [sortBuffer](https://www.wowza.com/docs/how-to-fix-unaligned-video-and-audio-with-a-server-side-sort-buffer)?

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [June 9, 2014, 4:04pm UTC](https://community.wowza.com/t/corrupted-mp4-files-with-gocoder-and-streaming-engine-4-httplivestreamrecord/35206/3 "2014-06-09T16:04:19Z")

</div>

This is more likely network problems than either Wowza or GoCoder changes. But if there is a Wowza or GoCoder issue the first thing will be to be able to reproduce it consistently with the latest version of Wowza, which is 4.03.02.

[Latest production build](https://www.wowza.com/docs/wowza-streaming-engine-software-updates) is 4.03 at present

And there is a patch 2 in [develoment builds](https://www.wowza.com/docs/wowza-streaming-engine-software-updates)

You might hold out for patch 3 which should be forthcoming soon, though I do not know exactly when.

In further testing, I would remove network factors altogether if possible. Use an encoder on the same server or vlan, or using server-side stream as the source using the scheduler.

Richard

---

<div class="post-metadata">

### Author: ![Eyal\_Hasson](https://avatars.discourse-cdn.com/v4/letter/e/9f8e36/32.png) [@Eyal\_Hasson](https://community.wowza.com/u/Eyal_Hasson)
#### Post date: [May 26, 2014, 5:14pm UTC](https://community.wowza.com/t/corrupted-mp4-files-with-gocoder-and-streaming-engine-4-httplivestreamrecord/35206/4 "2014-05-26T17:14:27Z")

</div>

Hi Richard,

I have added a sortBuffer now. I’ll let it run for a few days and I’ll let you know if that helped.

Thanks,

Eyal.

---

<div class="post-metadata">

### Author: ![Eyal\_Hasson](https://avatars.discourse-cdn.com/v4/letter/e/9f8e36/32.png) [@Eyal\_Hasson](https://community.wowza.com/u/Eyal_Hasson)
#### Post date: [June 9, 2014, 5:23pm UTC](https://community.wowza.com/t/corrupted-mp4-files-with-gocoder-and-streaming-engine-4-httplivestreamrecord/35206/5 "2014-06-09T17:23:23Z")

</div>

Hi Richard,

Unfortuenetly, the problem persists even after adding the sortBuffer. What’s next?

---

<div class="post-metadata">

### Author: ![Eyal\_Hasson](https://avatars.discourse-cdn.com/v4/letter/e/9f8e36/32.png) [@Eyal\_Hasson](https://community.wowza.com/u/Eyal_Hasson)
#### Post date: [June 11, 2014, 2:32pm UTC](https://community.wowza.com/t/corrupted-mp4-files-with-gocoder-and-streaming-engine-4-httplivestreamrecord/35206/6 "2014-06-11T14:32:26Z")

</div>

Testing as suggested. I’ll let you know the results.

Thanks, Eyal.
