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.

 

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help.

 
Thread Tools
Old 07-05-2013, 04:28 PM   #1
arena18
Confirmed User
 
arena18's Avatar
 
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;
}
In log im found only this 2013/07/05 01:16:50 [error] 2224#0: *481 start time is out mp4 stts samples in "/home/xxx/public_html/media/videos/0613/2808363858/06132808363858.mp4",
Any idea where is problem? im aslo try same video to stream via apache, video is working fine, so its not corrupted!
arena18 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 07-05-2013, 05:05 PM   #2
Zeiss
Confirmed User
 
Industry Role:
Join Date: May 2012
Location: With your mom
Posts: 5,189
you may want to increase mp4_max_buffer_size
__________________


Adult Webmasters Guides

Last edited by Zeiss; 07-05-2013 at 05:06 PM..
Zeiss is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 07-05-2013, 05:08 PM   #3
arena18
Confirmed User
 
arena18's Avatar
 
Industry Role:
Join Date: Jan 2013
Posts: 246
im try
mp4_buffer_size 5m;
mp4_max_buffer_size 10m;

but pproblem is still there...
arena18 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 07-05-2013, 05:13 PM   #4
Zeiss
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.
__________________


Adult Webmasters Guides

Last edited by Zeiss; 07-05-2013 at 05:14 PM..
Zeiss is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 07-05-2013, 05:17 PM   #5
arena18
Confirmed User
 
arena18's Avatar
 
Industry Role:
Join Date: Jan 2013
Posts: 246
files is just a 40mb
arena18 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 07-05-2013, 05:18 PM   #6
Zeiss
Confirmed User
 
Industry Role:
Join Date: May 2012
Location: With your mom
Posts: 5,189
Could you show "nginx -V" output?
__________________


Adult Webmasters Guides
Zeiss is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 07-05-2013, 05:22 PM   #7
arena18
Confirmed User
 
arena18's Avatar
 
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
arena18 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 07-05-2013, 05:33 PM   #8
Zeiss
Confirmed User
 
Industry Role:
Join Date: May 2012
Location: With your mom
Posts: 5,189
Weird. Should work on this vers.
__________________


Adult Webmasters Guides
Zeiss is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 07-06-2013, 07:22 AM   #9
Nevet
Registered User
 
Industry Role:
Join Date: Dec 2011
Posts: 10
Are there multiple tracks in the video?
Nevet is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 07-06-2013, 07:35 AM   #10
arena18
Confirmed User
 
arena18's Avatar
 
Industry Role:
Join Date: Jan 2013
Posts: 246
No... only one
arena18 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 07-06-2013, 07:50 AM   #11
Nevet
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.
Nevet is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 07-06-2013, 07:52 AM   #12
arena18
Confirmed User
 
arena18's Avatar
 
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
arena18 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 07-06-2013, 08:05 AM   #13
Nevet
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.
Nevet is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
 
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.