bludus 5 Posted May 30, 2021 Posted May 30, 2021 Hello, I hope to find help with the issue here below, as I found nothing helpful in the forum and I come to a dead end... I have an emby server (just upgraded to ver. 4.6.1) running in a container, behind a reverse proxy (nginx) in a container too. My problem is that when a video is transcoded (hls protocol), the playback with the web app (behaviour verified with firefox on a linux pc and chromium edge on a windows pc) is not smooth, but with frequent pauses. I checked that the transcoding process and the bandwidth are not a bottleneck, and that the issue is not present when I access the emby server without the reverse proxy. I noticed that with the reverse proxy the .ts fragments are received by the browser 10 times slower than without the reverse proxy, and that with the reverse proxy I get a lot of bufferStalledError and bufferNudgeOnStall errors, with the websocket frequently closed and re-opened. For information, I attach a couple of screenshots of the browser console playing the same video with (pauses during playback) and without (smooth playback) the reverse proxy, together with the related emby server log and transcoding logs. I suspect that the issue could be linked to the reverse proxy configuration, so I attach the nginx config for emby also. Thanks a lot in advance for any help. Cheers Maurizio embyserver.txt nginx-emby-config.txt playback with reverse proxy - ffmpeg-transcode-f8f6eca5-8a7b-4a55-a030-6c02bc9e73a9_1.txt playback without reverse proxy - ffmpeg-transcode-b1f3c250-2713-47c3-a9cc-9a3449496811_1.txt
Luke 42077 Posted June 11, 2021 Posted June 11, 2021 @bludus are you still having an issue with this?
bludus 5 Posted June 12, 2021 Author Posted June 12, 2021 Hi Luke, actually I was missing a keepalive directive in the reverse proxy config, which caused to open/close a new connection for each video chunk request. Once added, the issue disappeared... Cheers Maurizio 1
Carlo 4560 Posted June 12, 2021 Posted June 12, 2021 10 hours ago, bludus said: Hi Luke, actually I was missing a keepalive directive in the reverse proxy config, which caused to open/close a new connection for each video chunk request. Once added, the issue disappeared... Cheers Maurizio Oh wow, yea that would cause some network delays. Glad you got it figured out!
plessers@gmail.com 32 Posted June 10, 2024 Posted June 10, 2024 On 12/06/2021 at 11:10, bludus said: actually I was missing a keepalive directive in the reverse proxy config Hi @bludus, can you share your ngix config? I also had an issue and had to turn off buffering. But maybe your keepalive directive could solve my problem as well. grtz bartplessers
Luke 42077 Posted June 11, 2024 Posted June 11, 2024 3 hours ago, plessers@gmail.com said: Hi @bludus, can you share your ngix config? I also had an issue and had to turn off buffering. But maybe your keepalive directive could solve my problem as well. grtz bartplessers Suggested nginx config is here:
plessers@gmail.com 32 Posted June 12, 2024 Posted June 12, 2024 On 11/06/2024 at 04:28, Luke said: Suggested nginx config is here Thanx. Lifesaver! 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now