nginx-vod-module
nginx-vod-module copied to clipboard
*423 media_set_parse_sequences: invalid number of sequences 34 while getting mapping
hi issue *423 media_set_parse_sequences: invalid number of sequences 34 while getting mapping for any json file have sequences length bigger 32 clips ,any json sequences <= 32 working with any issue.
solution editing MAX_SEQUENCES & MAX_SOURCES from 32 to 45 by edit nginx-vod-module/vod/media_set.h file and rebuild nginx
after reboot i get connection reset from browser and Error: socket hang up from postman without any error or access in nginx logs
so how to increase MAX_SEQUENCES limit above 32 ?
my nginx config file
```
vod_mode mapped;
# vod caches
vod_metadata_cache metadata_cache 20480m;
vod_response_cache response_cache 1024m;
vod_mapping_cache mapping_cache 10m;
# gzip manifests
gzip on;
gzip_types application/vnd.apple.mpegurl;
vod_last_modified_types *;
vod_segment_duration 10000;
vod_align_segments_to_key_frames on;
vod_hls_segment_file_name_prefix "segment";
vod_manifest_segment_durations_mode accurate;
vod_max_mapping_response_size 10k;
open_file_cache max=1000 inactive=5m;
open_file_cache_valid 2m;
open_file_cache_min_uses 1;
open_file_cache_errors on;
aio on;
if ($arg_token) {
set $test_token $arg_token;
}
if ($cookie_token) {
set $test_token $cookie_token;
location /hls/ {
akamai_token_validate $test_token;
akamai_token_validate_key $mykey;
secure_token $token;
secure_token_types text/xml application/vnd.apple.mpegurl;
secure_token_content_type_f4m text/xml;
secure_token_expires_time 3h;
secure_token_query_token_expires_time 3h;
secure_token_cookie_token_expires_time 3h;
secure_token_tokenize_segments on;
vod hls;
alias $json_path;
add_header Access-Control-Allow-Headers '*';
add_header Access-Control-Expose-Headers 'Server,range,Content-Length,Content-Range';
add_header Access-Control-Allow-Methods 'GET, HEAD, OPTIONS';
add_header Access-Control-Allow-Origin '*';
expires 100d;
}