# Start time is out mp4

**URL:** <https://www.ruby-forum.com/t/start-time-is-out-mp4/245583>\
**Category:** NGINX\
**Created:** [June 22, 2013, 11:41am UTC](https://www.ruby-forum.com/t/start-time-is-out-mp4/245583 "2013-06-22T11:41:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [June 22, 2013, 11:41am UTC](https://www.ruby-forum.com/t/start-time-is-out-mp4/245583/1 "2013-06-22T11:41:27Z")

</div>

Hi  
Im using the mp4 module quite heavily, and very occasionally (once  
every minute or so on a busy website) there is an error written to  
error.log and status 500 returned in the access log

[error] 42078#0: \*5510811 start time is out mp4 stts samples in …  
(mostly this error)  
[error] 42072#0: \*5524976 start time is out mp4 stsc chunks in …  
(sometimes this error)

It happens on different videos and only when ?start is after a certain  
time point (different for each video)

Given that the mp4 module works remarkably well on the whole, where  
should I look to find the cause of these rare errors? (and what do they  
actually mean :))

nginx version: nginx/1.2.9  
built by gcc 4.2.1 20070831 patched [FreeBSD]  
TLS SNI support enabled  
configure arguments: --with-debug --with-http\_ssl\_module  
–with-http\_stub\_status\_module --with-file-aio --with-http\_flv\_module  
–with-http\_mp4\_module --with-http\_geoip\_module  
–add-module=…/…/…/lua-nginx-module

Many thanks

---

<div class="post-metadata">

**Author:** ![rkoskela](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ce73a5/32.png) [@rkoskela](https://www.ruby-forum.com/u/rkoskela)\
**Post date:** [June 22, 2013, 12:29pm UTC](https://www.ruby-forum.com/t/start-time-is-out-mp4/245583/2 "2013-06-22T12:29:21Z")

</div>

Hi Richard,

> Given that the mp4 module works remarkably well on the whole, where  
> should I look to find the cause of these rare errors? (and what do they  
> actually mean :))
> 
> nginx version: nginx/1.2.9

I would suggest you upgrade nginx. Between nginx/1.2.9 and a recent  
releases  
there are 4 bugfixes in the mp4 module.

Upgrade to nginx 1.4.1.

Lukas

---

<div class="post-metadata">

**Author:** ![rkoskela](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ce73a5/32.png) [@rkoskela](https://www.ruby-forum.com/u/rkoskela)\
**Post date:** [June 22, 2013, 4:41pm UTC](https://www.ruby-forum.com/t/start-time-is-out-mp4/245583/3 "2013-06-22T16:41:44Z")

</div>

Hello!

On Sat, Jun 22, 2013 at 10:40:53AM +0100, Richard K. wrote:

> It happens on different videos and only when ?start is after a  
> certain time point (different for each video)
> 
> Given that the mp4 module works remarkably well on the whole, where  
> should I look to find the cause of these rare errors? (and what do  
> they actually mean :))

Messages suggest an attempt was made to seek to a time which isn’t  
in media track metadata, thus seek isn’t possible. This usually  
happens when time in “start=” is just too big.

–  
Maxim D.

> **[nginx: donation](http://nginx.org/en/donation.html)**

---

<div class="post-metadata">

**Author:** ![rkoskela](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ce73a5/32.png) [@rkoskela](https://www.ruby-forum.com/u/rkoskela)\
**Post date:** [June 22, 2013, 5:06pm UTC](https://www.ruby-forum.com/t/start-time-is-out-mp4/245583/4 "2013-06-22T17:06:51Z")

</div>

Hi  
I’ve been able to test a few videos myself and can see it happening  
Just to be clear, 99%+ seem to be fine and can seek right up to the end  
But on very few, seeking is only possible up to X seconds (X could be at  
any point in the video)  
To seek after X, the error always happens  
However if I watch the video from start to end, it downloads the full  
thing and can be watched to the end (the file isn’t truncated)

At this point I suppose it’s either an error while creating the metadata  
at the encoder software, or some odd circumstance which nginx doesn’t  
like  
The question is, which?

Thanks

---

<div class="post-metadata">

**Author:** ![rkoskela](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ce73a5/32.png) [@rkoskela](https://www.ruby-forum.com/u/rkoskela)\
**Post date:** [June 22, 2013, 5:34pm UTC](https://www.ruby-forum.com/t/start-time-is-out-mp4/245583/5 "2013-06-22T17:34:20Z")

</div>

Hi  
I’m pretty sure I have found the cause,  
All the videos I see it happening on have short audio (Audio stops  
before the video)

---

<div class="post-metadata">

**Author:** ![rkoskela](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ce73a5/32.png) [@rkoskela](https://www.ruby-forum.com/u/rkoskela)\
**Post date:** [June 22, 2013, 4:37pm UTC](https://www.ruby-forum.com/t/start-time-is-out-mp4/245583/6 "2013-06-22T16:37:39Z")

</div>

Hi

nginx version: nginx/1.4.1  
built by gcc 4.2.1 20070831 patched [FreeBSD]  
TLS SNI support enabled  
configure arguments: --with-debug --with-http\_ssl\_module  
–with-http\_stub\_status\_module --with-file-aio --with-http\_flv\_module  
–with-http\_mp4\_module --with-http\_geoip\_module  
–add-module=…/…/…/lua-nginx-module

upgraded version, still have mp4 errors at the same frequency

What do the stts and stsc errors mean? how can I find out what is  
causing them?

Thanks
