nginx - ffmpeg forward stream have 3 seconds delay -


i using nginx module nginx-rtmp-module live server.

here sample config.

    application src {         live on;         exec /usr/bin/ffmpeg -re -i rtmp://localhost/src/$name -acodec  copy -vcodec copy -f flv rtmp://localhost/hls/$name     }     application hls {         live on;         hls on;         hls_path /tmp/hls;         hls_fragment 2s;         hls_playlist_length 8s; 

i use ffmpeg forward stream , has 3 seconds delay between src channel , hls channel.

the reason of delay seems ffmpeg itself.

are there methods reduce delay when using ffmpeg forward stream?

any idea it? thanks.

the hls format feature. not possible reduce lag zero. because of server creates playlist read client , read video/audio data. so, there @ least 1 file reproduce.

use hls_fragment , hls_playlist_length decrease or use rtmp (flv) data format. read here https://github.com/arut/nginx-rtmp-module/issues/378


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -