![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
|
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Jan 2013
Posts: 246
|
Nginx MP4 streaming
Have problem with mp4 streaming, flv working fine and can seek in player, but when i try seek mp4 in firebug have internal 500 error...
here is my nginx.conf Code:
location ~* \.(png|jpg|jpeg|gif)(\?ver=[0-9.]+)?$ { root /home/xxx/public_html/media; access_log off; log_not_found off; expires 30d; } location ~\.mp4$ { secure_link $arg_st,$arg_e; secure_link_md5 segredo$uri$arg_e; if ($secure_link = "") { return 403; } if ($secure_link = "0") { return 403; } gzip off; root /home/xxx/public_html/media; limit_rate_after 10m; limit_rate 400k; #internal; mp4; mp4_buffer_size 1m; mp4_max_buffer_size 5m; } location ~ \.flv$ { secure_link $arg_st,$arg_e; secure_link_md5 segredo$uri$arg_e; if ($secure_link = "") { return 403; } if ($secure_link = "0") { return 403; } gzip off; root /home/xxx/public_html/media; limit_rate_after 10m; limit_rate 400k; #internal; flv; } Any idea where is problem? im aslo try same video to stream via apache, video is working fine, so its not corrupted! |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: May 2012
Location: With your mom
Posts: 5,189
|
you may want to increase mp4_max_buffer_size
|
![]() |
![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Jan 2013
Posts: 246
|
im try
mp4_buffer_size 5m; mp4_max_buffer_size 10m; but pproblem is still there... |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: May 2012
Location: With your mom
Posts: 5,189
|
How large are those video files? lol Try with smaller files just to see, if it works.
|
![]() |
![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: Jan 2013
Posts: 246
|
files is just a 40mb
|
![]() |
![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Industry Role:
Join Date: May 2012
Location: With your mom
Posts: 5,189
|
Could you show "nginx -V" output?
|
![]() |
![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Jan 2013
Posts: 246
|
Here is output
Code:
[root@server1 ~]# nginx -V nginx version: nginx/1.4.1 built by gcc 4.1.2 20080704 (Red Hat 4.1.2-54) TLS SNI support disabled configure arguments: --sbin-path=/usr/local/sbin --with-http_flv_module --with-http_mp4_module --with-http_ssl_module --with-http_secure_link_module |
![]() |
![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Industry Role:
Join Date: May 2012
Location: With your mom
Posts: 5,189
|
Weird. Should work on this vers.
|
![]() |
![]() ![]() ![]() ![]() |
![]() |
#9 |
Registered User
Industry Role:
Join Date: Dec 2011
Posts: 10
|
Are there multiple tracks in the video?
|
![]() |
![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Industry Role:
Join Date: Jan 2013
Posts: 246
|
No... only one
|
![]() |
![]() ![]() ![]() ![]() |
![]() |
#11 |
Registered User
Industry Role:
Join Date: Dec 2011
Posts: 10
|
The metadata might be incorrect. This would have the effect of stopping the seeking. This can also happen if the audio track metadata is wrong, so check that too.
|
![]() |
![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Industry Role:
Join Date: Jan 2013
Posts: 246
|
But if meta is not correct why same video working fine on PC and also working fine on apache... strange
|
![]() |
![]() ![]() ![]() ![]() |
![]() |
#13 |
Registered User
Industry Role:
Join Date: Dec 2011
Posts: 10
|
Without seeing the file or your setup it is difficult for anyone to be able to say what is going on. It might be nothing to do with the file and an undiagnosed bug in nginx or the http_mp4_module. I was trying to give you some easy to check issues which can cause the behaviour you described.
|
![]() |
![]() ![]() ![]() ![]() |