nginx-rtmp-module
nginx-rtmp-module copied to clipboard
on_update Causing Stream To Stop On VLC
Stream is stopping in VLC every ~10 seconds. Once I removed it, it stopped stuttering.
It would play with HLS (but it wouldn't with VLC when I tried to record it) but it would stutter and skip all the time which it doesn't happen when on_update is deleted.
Without on_update: https://drive.google.com/file/d/1vyqWm5CBAOzjcIG9e9VFXhQ99wV_hOn3/view?usp=sharing With on_update (hls not rtmp): https://drive.google.com/file/d/1Zl8YRYulnyhlwvMULgO7yVG3vVBi9Scd/view?usp=share_link
Here's my config:
application src {
allow play 127.0.0.1;
deny play all;
allow publish all;
live on;
record off;
meta on;
on_publish http://localhost:8000/stream/publish;
notify_update_strict on;
on_update http://localhost:8000/stream/update;
on_publish_done http://localhost:8000/stream/publishend;
exec ffmpeg -i rtmp://localhost/src/$name
-c:a libfdk_aac -b:a 128k -c:v h264_qsv -b:v 1000k -f flv -g 30 -r 30 -s 854x480 -profile:v baseline rtmp://localhost/live/$name_480p
-c:a libfdk_aac -b:a 128k -c:v h264_qsv -b:v 2500k -f flv -g 30 -r 30 -s 1280x720 -profile:v baseline rtmp://localhost/live/$name_720p
-c:a libfdk_aac -b:a 96k -c:v h264_qsv -b:v 750k -f flv -g 30 -r 30 -s 640x360 -profile:v baseline rtmp://localhost/live/$name_360p
-c:a libfdk_aac -b:a 64k -c:v h264_qsv -b:v 200k -f flv -g 15 -r 15 -s 426x240 -profile:v baseline rtmp://localhost/live/$name_240p
-c copy -f flv rtmp://127.0.0.1:1935/live/$name_src;
}