# Invalid SampleDelta in STTS

**URL:** <https://community.wowza.com/t/invalid-sampledelta-in-stts/35955>\
**Category:** Wowza Streaming Engine\
**Tags:** server-administration\
**Created:** [October 16, 2013, 5:00pm UTC](https://community.wowza.com/t/invalid-sampledelta-in-stts/35955 "2013-10-16T17:00:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Victor\_Sheyanov](https://avatars.discourse-cdn.com/v4/letter/v/47e85d/32.png) [@Victor\_Sheyanov](https://community.wowza.com/u/Victor_Sheyanov)\
**Post date:** [October 16, 2013, 5:00pm UTC](https://community.wowza.com/t/invalid-sampledelta-in-stts/35955/1 "2013-10-16T17:00:21Z")

</div>

We have recently updated Wowza to 3.6.2 patch 12.

As it says in Readme:

Wowza Media Server 3.6.2 patch12 build7101

- Updated versionFile to true for all startRecordingSegmentBy API’s, so that first segment uses the fileTemplate for file name instead of just the stream name.

- Improved handling of malformed MPEG descriptors.

- Added code to LiveStreamRecordMP4 to use a more accurate packet timecode calculated from the audio sample rate and number of samples

- Added code to LiveStreamRecordMP4 to correctly set the last STTS entry

- Version: 3.6.2.12 build7101

After installing this patch our recordings became corrupted

> ffmpeg -i video.mp4 outputs:

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x2dd81a0] Invalid SampleDelta in STTS -76860

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x2dd81a0] Invalid SampleDelta in STTS -11430

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x2dd81a0] Invalid SampleDelta in STTS -7740

Recorded video is cannot be played in VLC.

It can be played in ‘examples/VideoOnDemandStreaming/FlashHTTPPlayer/player.html’ but video/audio are completely desynchronized.

If we run ffmpeg command:

> ffmpeg -i video.mp4 -c copy video\_fixed.mp4

video\_fixed.mp4 can be played in VLC and player.html without sync issue.

Previously we were using Wowza Media Server 3 Perpetual Edition 3.6.2.10 build6427.

And we didn’t have no problems with recorded videos.
