Open Hauham opened 3 years ago
I think the issue is that when you are using multi nginx worker " worker_processes 4; " , you have to set : "rtmp_auto_push on;" either set rtmp_auto_push or set the worket_processes to 1.
Oh, thank for your response, I know process do not share stream, In order to share stream with another process, we need enable rtmp_auto_push. but this issue appeared before I used the 4 process (previous is 1 process). initillal I have just used 4 process for delivery media segment with hls.
I refer a same issue in Chinese community that is https://blog.csdn.net/ragecat/article/details/109385410?utm_medium=distribute.pc_relevant.none-task-blog-baidujs_title-1&spm=1001.2101.3001.4242
This indicated that the reason is missing option encode audio acc and I should add this option -v:a acc to convert, but it sometime so I don't know the way to reproduce issue. Do you think it okay ? Like this : ffmpeg -c:v h264_cuvid -v:a acc -i $link_rtmp -c:a aac -an -rc cbr -preset llhq -gpu any -delay 0 -b_ref_mode disabled -c:v h264_nvenc -b:v 1200K -g 15 -r 30 -vf scale_npp=1280:720 -hls_time 1 -hls_list_size 6 -f flv rtmp://localhost/hls/channel"$table"_720 ;
Hi team, thank you for your useful module but an issue was appeared when I using it, plz help me.
We have used nginx-rtmp-module and ffmpeg to convert rtmp to hls Everything works fine until a day .ts files are not created
The first, I guess may be nginx crash by something, I do reload nginx and everything is back to the way it was.
After that, I realized that nginx do not crash because at least nginx log work fine during the time the problem occurred
To use ngx_rtmp_module i have to add command
load_module modules/ngx_rtmp_module.so;
Is there any possibility that the error is caused by that module ?What the happen in here ? What should I do to fix it ?
Here is my config _Ubuntu 18.04.5 LTS (GNU/Linux 5.4.0-1029-aws x8664) I use ffmpeg as a command line with format like :
ffmpeg -i [input_rtmp] -f flv rtmp://localhost/hls/channelName
My nginx config