streaming in a high latency environment?
dejl opened this issue · 0 comments
dejl commented
Hello
I'm trying to use this module to stream a video file on a loop to my server.
My server running nginx+ this module is overseas and has 160ms+ latency
As a result I am seeing buffering for anyone who views the stream (HLS/Dash/RTMP),
I noticed a client may make a request for the playlist index twice before a new segment is available
Is there any good way to mitigate this buffering? I've tried increasing -bufsize in my ffmepg command but I still get buffering.
/usr/bin/ffmpeg -stream_loop -1 -i "video.mp4" -c:v libx264 -preset superfast -b:v 6000k -maxrate 6000k -bufsize 180000k -pix_fmt yuv420p -c:a aac -b:a 128k -ac 2 -ar 44100 -f flv "rtmp:///live/"
Thanks for any help