Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

streaming in a high latency environment? #1749

Open
dejl opened this issue Dec 14, 2023 · 0 comments
Open

streaming in a high latency environment? #1749

dejl opened this issue Dec 14, 2023 · 0 comments

Comments

@dejl
Copy link

dejl commented Dec 14, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant