Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*423 media_set_parse_sequences: invalid number of sequences 34 while getting mapping #1536

Open
devMagics opened this issue Aug 3, 2024 · 2 comments

Comments

@devMagics
Copy link

devMagics commented Aug 3, 2024

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;
}
@erankor
Copy link
Contributor

erankor commented Aug 3, 2024

you can't just increase the const, the code assumes it's not larger than 32, e.g. it uses uint32_t to store a bitmask of the sequences.
going above 32 will require a thorough review of the code to find all the places that need to be changed.

@devMagics
Copy link
Author

devMagics commented Aug 5, 2024

can you make it as options , or help where i should edit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants