Opened 9 years ago

Closed 9 years ago

#62 closed defect (fixed)

Audio fails when seeking with ngx_http_mp4_module

Reported by: Igor Ajdisek Owned by: somebody
Priority: minor Milestone:
Component: nginx-module Version: 1.0.x
Keywords: mp4 h264 audio Cc:
uname -a: Linux ubuntu 2.6.38-12-server #51~lucid1-Ubuntu SMP Thu Sep 29 20:09:53 UTC 2011 x86_64 GNU/Linux
nginx -V: nginx: nginx version: nginx/1.0.10
nginx: TLS SNI support enabled
nginx: 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

Description

When you try to seek into the part of the video that hasn't been downloaded yet, video continues but audio disappears, although mp4 fIle requested contains moov atom at the begging and flash player sends ?start=0 with initial request.

This happens only with ngx_http_mp4_module. If we use nginx with compiled ngx_mod_h264_streaming module this works without any issues with the same file on the same server (kernel).

Tested with JW and Flowplayer.

Br,
Igor Ajdisek

Change History (7)

comment:1 by is, 9 years ago

Status: newaccepted

Could you try the latest version: 1.1.9 ?

comment:2 by Igor Ajdisek, 9 years ago

It seems 1.1.9 also has this issue.

nginx version: nginx/1.1.9
built by gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5) 
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

comment:3 by is, 9 years ago

Could you create debug log of the request ?
http://nginx.org/en/docs/debugging_log.html

in reply to:  3 comment:4 by Igor Ajdisek, 9 years ago

starts with ?start=0
and then seek is made to ?start=136.01
error message: "client closed prematurely connection while sending mp4 to client"

full log available here:
http://dl.dropbox.com/u/4865700/debug-nginx.txt

comment:5 by Maxim Dounin, 9 years ago

This should be fixed in 1.1.12 (r4383), the problem seems to be the same as in ticket #72.

in reply to:  5 comment:6 by Igor Ajdisek, 9 years ago

Great news! Thanx!

comment:7 by Maxim Dounin, 9 years ago

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.