GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Webmaster Q & Fuckin' A (https://gfy.com/forumdisplay.php?f=27)
-   -   Nginx MP4 streaming (https://gfy.com/showthread.php?t=1114568)

arena18 07-05-2013 04:28 PM

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!

Zeiss 07-05-2013 05:05 PM

you may want to increase mp4_max_buffer_size

arena18 07-05-2013 05:08 PM

im try
mp4_buffer_size 5m;
mp4_max_buffer_size 10m;

but pproblem is still there...

Zeiss 07-05-2013 05:13 PM

How large are those video files? lol Try with smaller files just to see, if it works.

arena18 07-05-2013 05:17 PM

files is just a 40mb

Zeiss 07-05-2013 05:18 PM

Could you show "nginx -V" output?

arena18 07-05-2013 05:22 PM

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


Zeiss 07-05-2013 05:33 PM

Weird. Should work on this vers.

Nevet 07-06-2013 07:22 AM

Are there multiple tracks in the video?

arena18 07-06-2013 07:35 AM

No... only one

Nevet 07-06-2013 07:50 AM

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.

arena18 07-06-2013 07:52 AM

But if meta is not correct why same video working fine on PC and also working fine on apache... strange

Nevet 07-06-2013 08:05 AM

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.


All times are GMT -7. The time now is 05:19 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123