nginx-vod-module-fmp4-hls icon indicating copy to clipboard operation
nginx-vod-module-fmp4-hls copied to clipboard

ngx_file_reader_update_state_file_info Error

Open dmitrygashnikov opened this issue 2 years ago • 0 comments

Hi! Have some problems with solution. Could anybody help? Trying to add fragmented mp4 file to original docker, create a folder in videos, add new video file. Its playing in /videos/ URL, but when I try to play it via hlsfmp4 nginx throw errors to me:

2023/10/23 15:43:35 [error] 7#7: *17 ngx_file_reader_update_state_file_info: open() "/opt/static/video/frag/fragmented720p.mp4.urlset" failed (2: No such file or directory), client: 172.17.0.1, server: localhost, request: "GET /hlsfmp4/frag/fragmented720p.mp4.urlset/master.m3u8 HTTP/1.1", subrequest: "/hlsts/frag/fragmented720p.mp4.urlset/master.m3u8", host: "localhost" 2023-10-23 18:43:35 2023/10/23 15:43:35 [error] 7#7: *17 lua entry thread aborted: runtime error: /usr/local/nginx/conf/hls-fmp4.lua:15: attempt to concatenate local 'level' (a nil value) 2023-10-23 18:43:35 stack traceback: 2023-10-23 18:43:35 coroutine 0: 2023-10-23 18:43:35 /usr/local/nginx/conf/hls-fmp4.lua: in function 'get_audio_track' 2023-10-23 18:43:35 /usr/local/nginx/conf/hls-fmp4.lua:28: in function </usr/local/nginx/conf/hls-fmp4.lua:1>, client: 172.17.0.1, server: localhost, request: "GET /hlsfmp4/frag/fragmented720p.mp4.urlset/master.m3u8 HTTP/1.1", host: "localhost" 2023-10-23 18:43:35 172.17.0.1 - [23/Oct/2023:15:43:35 +0000] "GET /hlsfmp4/frag/fragmented720p.mp4.urlset/master.m3u8 HTTP/1.1" 500 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" 2023-10-23 18:43:36 2023/10/23 15:43:36 [error] 7#7: *18 ngx_file_reader_update_state_file_info: open() "/opt/static/video/frag/fragmented720p.mp4.urlset" failed (2: No such file or directory), client: 172.17.0.1, server: localhost, request: "GET /hlsfmp4/frag/fragmented720p.mp4.urlset/master.m3u8 HTTP/1.1", subrequest: "/hlsts/frag/fragmented720p.mp4.urlset/master.m3u8", host: "localhost" 2023-10-23 18:43:36 2023/10/23 15:43:36 [error] 7#7: *18 lua entry thread aborted: runtime error: /usr/local/nginx/conf/hls-fmp4.lua:15: attempt to concatenate local 'level' (a nil value) 2023-10-23 18:43:36 stack traceback: 2023-10-23 18:43:36 coroutine 0: 2023-10-23 18:43:36 /usr/local/nginx/conf/hls-fmp4.lua: in function 'get_audio_track' 2023-10-23 18:43:36 /usr/local/nginx/conf/hls-fmp4.lua:28: in function </usr/local/nginx/conf/hls-fmp4.lua:1>, client: 172.17.0.1, server: localhost, request: "GET /hlsfmp4/frag/fragmented720p.mp4.urlset/master.m3u8 HTTP/1.1", host: "localhost"

link to video example: https://drive.google.com/file/d/1kFbcKxlAo5Oj5AoLE4kO2WOqg_VTSxJ1/view?usp=sharing What's causing errors and what I need to do to fix it?

dmitrygashnikov avatar Oct 23 '23 16:10 dmitrygashnikov