View Single Post
Old 07-05-2013, 04:28 PM  
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