MP4 - start time is out mp4 stts samples

Hello,

i get the following errors:

2012/07/15 22:58:44 [info] 30717#0: *1 client prematurely closed
connection while sending mp4 to client, client: 127.0.0.158, server:
xxx.com, request: “GET /mp4/mp4/vs-xxx.720p.mp4?start=0 HTTP/1.1”, host:
xxx.com”, referrer: “XXX Sex - Free Porn Videos at XXX.com
2012/07/15 22:58:44 [error] 30717#0: *2 start time is out mp4 stts
samples in “/var/www/virtual/xxx.com/files/mp4/mp4/vs-xxx.720p.mp4”,
client: 127.0.0.158, server: xxx.com, request: “GET
/mp4/mp4/vs-xxx.720p.mp4?start=2934.89 HTTP/1.1”, host: “xxx.com”,
referrer: “XXX Sex - Free Porn Videos at XXX.com
2012/07/15 23:07:33 [error] 31389#0: *1 open()
“/var/www/virtual/xxx.com/htdocs/favicon.ico” failed (2: No such file or
directory), client: 127.0.0.158, server: xxx.com, request: “GET
/favicon.ico HTTP/1.1”, host: “xxx.com
2012/07/15 23:07:45 [info] 31389#0: *1 client prematurely closed
connection while sending mp4 to client, client: 127.0.0.158, server:
xxx.com, request: “GET /mp4/mp4/vs-xxx.720p.mp4?start=0 HTTP/1.1”, host:
xxx.com”, referrer: “XXX Sex - Free Porn Videos at XXX.com
2012/07/15 23:07:45 [error] 31389#0: *2
“/var/www/virtual/xxx.com/files/mp4/mp4/vs-xxx.720p.mp4” mp4 moov atom
is too large:5689479, you may want to increase mp4_max_buffer_size,
client: 127.0.0.158, server: xxx.com, request: “GET
/mp4/mp4/vs-xxx.720p.mp4?start=528.83 HTTP/1.1”, host: “xxx.com”,
referrer: “XXX Sex - Free Porn Videos at XXX.com
2012/07/15 23:09:03 [info] 31454#0: *1 sendfile() failed (104:
Connection reset by peer) while sending mp4 to client, client:
127.0.0.158, server: xxx.com, request: “GET
/mp4/mp4/vs-xxx.720p.mp4?start=0 HTTP/1.1”, host: “xxx.com”, referrer:
XXX Sex - Free Porn Videos at XXX.com
2012/07/15 23:09:03 [error] 31454#0: *2 start time is out mp4 stts
samples in “/var/www/virtual/xxx.com/files/mp4/mp4/vs-xxx.720p.mp4”,
client: 127.0.0.158, server: xxx.com, request: “GET
/mp4/mp4/vs-xxx.720p.mp4?start=1667.46 HTTP/1.1”, host: “xxx.com”,
referrer: “XXX Sex - Free Porn Videos at XXX.com

The file is 5.3 GB large.

smaller files that i tried working.

Posted at Nginx Forum:

Some infos of my system:

Source: nginx deb

Sys OS: UBUNTU 12.04

nginx version: nginx/1.2.1
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx
–conf-path=/etc/nginx/nginx.conf
–error-log-path=/var/log/nginx/error.log
–http-client-body-temp-path=/var/lib/nginx/body
–http-fastcgi-temp-path=/var/lib/nginx/fastcgi
–http-log-path=/var/log/nginx/access.log
–http-proxy-temp-path=/var/lib/nginx/proxy
–http-scgi-temp-path=/var/lib/nginx/scgi
–http-uwsgi-temp-path=/var/lib/nginx/uwsgi
–lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid
–with-pcre-jit --with-debug --with-http_addition_module
–with-http_dav_module --with-http_flv_module --with-http_geoip_module
–with-http_gzip_static_module --with-http_image_filter_module
–with-http_mp4_module --with-http_perl_module
–with-http_random_index_module --with-http_realip_module
–with-http_secure_link_module --with-http_stub_status_module
–with-http_ssl_module --with-http_sub_module --with-http_xslt_module
–with-ipv6 --with-sha1=/usr/include/openssl
–with-md5=/usr/include/openssl --with-mail --with-mail_ssl_module
–add-module=/build/buildd/nginx-1.2.1/debian/modules/nginx-auth-pam
–add-module=/build/buildd/nginx-1.2.1/debian/modules/chunkin-nginx-module
–add-module=/build/buildd/nginx-1.2.1/debian/modules/headers-more-nginx-module
–add-module=/build/buildd/nginx-1.2.1/debian/modules/nginx-development-kit
–add-module=/build/buildd/nginx-1.2.1/debian/modules/nginx-echo
–add-module=/build/buildd/nginx-1.2.1/debian/modules/nginx-http-push
–add-module=/build/buildd/nginx-1.2.1/debian/modules/nginx-lua
–add-module=/build/buildd/nginx-1.2.1/debian/modules/nginx-upload-module
–add-module=/build/buildd/nginx-1.2.1/debian/modules/nginx-upload-progress
–add-module=/build/buildd/nginx-1.2.1/debian/modules/nginx-upstream-fair
–add-module=/build/buildd/nginx-1.2.1/debian/modules/nginx-dav-ext-module

Posted at Nginx Forum:

Sorry the first server was an other… but this is the from
Index of /packages/ubuntu/

Ubuntu DEB
nginx version: nginx/1.2.2
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx/ --sbin-path=/usr/sbin/nginx
–conf-path=/etc/nginx/nginx.conf
–error-log-path=/var/log/nginx/error.log
–http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid
–lock-path=/var/run/nginx.lock
–http-client-body-temp-path=/var/cache/nginx/client_temp
–http-proxy-temp-path=/var/cache/nginx/proxy_temp
–http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp
–http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp
–http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx
–group=nginx --with-http_ssl_module --with-http_realip_module
–with-http_addition_module --with-http_sub_module
–with-http_dav_module --with-http_flv_module --with-http_mp4_module
–with-http_gzip_static_module --with-http_random_index_module
–with-http_secure_link_module --with-http_stub_status_module
–with-mail --with-mail_ssl_module --with-file-aio --with-ipv6

same error

Posted at Nginx Forum:

Hello!

On Sun, Jul 15, 2012 at 05:25:56PM -0400, DeineAgentur wrote:

Hello,

i get the following errors:

[… unrelated messages skipped …]

2012/07/15 22:58:44 [error] 30717#0: *2 start time is out mp4 stts
samples in “/var/www/virtual/xxx.com/files/mp4/mp4/vs-xxx.720p.mp4”,
client: 127.0.0.158, server: xxx.com, request: “GET
/mp4/mp4/vs-xxx.720p.mp4?start=2934.89 HTTP/1.1”, host: “xxx.com”,
referrer: “XXX Sex - Free Porn Videos at XXX.com

[…]

2012/07/15 23:09:03 [error] 31454#0: *2 start time is out mp4 stts
samples in “/var/www/virtual/xxx.com/files/mp4/mp4/vs-xxx.720p.mp4”,
client: 127.0.0.158, server: xxx.com, request: “GET
/mp4/mp4/vs-xxx.720p.mp4?start=1667.46 HTTP/1.1”, host: “xxx.com”,
referrer: “XXX Sex - Free Porn Videos at XXX.com

The file is 5.3 GB large.

smaller files that i tried working.

Messages suggest the file is shorter than 1667.46 seconds.
Given the fact it’s 5.3 GB large - the file is either corrupted or
there is something in it which confuses nginx. Could you please
provide debug log and the file for investigation?

Maxim D.

Hi Maxim,

here the debug.log

Maxim, if you send me an eMail, i will give you a link to the video.

Posted at Nginx Forum:

Hello!

On Tue, Jul 17, 2012 at 01:21:38PM -0400, DeineAgentur wrote:

Hi Maxim,

here the debug.log

Dropbox - debug_localhost.rar - Simplify your life

Ok, debug log suggests that there are 4 tracks in the file, and one
of them is just 0.8 seconds long:

2012/07/17 19:01:26 [debug] 4539#0: *10 tkhd duration:4208128,
time:7013.547s
2012/07/17 19:01:26 [debug] 4539#0: *10 tkhd duration:487, time:0.812s
2012/07/17 19:01:26 [debug] 4539#0: *10 tkhd duration:4208128,
time:7013.547s
2012/07/17 19:01:26 [debug] 4539#0: *10 tkhd duration:4208140,
time:7013.567s

This is what causes your problem, as nginx isn’t currently able to
drop short tracks, only seek them all. And nginx complains as one
of the tracks is too short for a requested seek.

This should be handled better.

Maxim, if you send me an eMail, i will give you a link to the video.

Actually, my email is included in all messages to the mailing
list (though forum interface hides it). See e.g. here:

http://mailman.nginx.org/pipermail/nginx/2012-July/034659.html

Maxim D.