Nutellaeis 1 Posted February 27, 2019 Posted February 27, 2019 My streams are often stuttering while streaming. Even inside my own Homenetwork. Maybe someone can help me track down the issue? I am mostly streaming 1080p and I have a Intel Pentium G4560 which has a Passmark of 4868. That should usually be enough for a single 1080p Transcode. I stream mostly to Chromecast (Gen 2). I will attach a Serverlog from yesterday and a Transcodelog from a stuttering file I played yesterday. As far as I can see there are no issues. I run emby with docker-compose. I will also attach the relevant part of the compose file. If anyone has an idea what the issue can be I would be very happy. embyserver.txt ffmpeg-transcode.txt compose.txt
Bob1971 0 Posted February 27, 2019 Posted February 27, 2019 Do you have hardware acceleration enabled in the transcoding settings?
maegibbons 1268 Posted February 27, 2019 Posted February 27, 2019 The transcode log shows that it is transcoding for the most part at a speed less than 1 which means that it cannot keep up which is strange since it does look like you are using vaapi. Try switching OFF hardware acceleration. Krs Mark
Nutellaeis 1 Posted February 27, 2019 Author Posted February 27, 2019 Yes I have hardware acceleration enabled. I will try it without it and report back later.
ebr 15546 Posted February 27, 2019 Posted February 27, 2019 Also, try disabling the throttling. Thanks.
Luke 39319 Posted February 27, 2019 Posted February 27, 2019 Actually the answer is most likely the subtitles. They have to be burned in with transcoding and this is a very expensive process, perhaps too much for your server to handle. Try turning the subtitles off and then see how it compares. Thanks.
raphaels880 0 Posted February 28, 2019 Posted February 28, 2019 I have the same problem since my Emby server update to the new stable version "4.0.2.0". I tried go to the beta version "4.1.0.9" and 4.1.0.10" but the video still have stutters, I tried install in another machine but the problem still there and I tried a new router still the same though, I tried play some files what i already watched but the same. P.S: this problem only happen on Chromecast, on Web player and android app works pretty fine.
Luke 39319 Posted February 28, 2019 Posted February 28, 2019 Hi there, let's look at an example. Please attach the information requested in how to report a media playback issue: https://emby.media/community/index.php?/topic/790-how-to-report-a-problem/?view=getnewpost Thanks !
Nutellaeis 1 Posted February 28, 2019 Author Posted February 28, 2019 So I tried switching hardware acceleration off (max threads, no throtting) and it seems to run a lot better. Adding a transcode log and 2 examples showing my cpu usage. Seems hw accel always only uses one thread. Can someone explain to me why turning of the acceleration helps in this case? transcode.txt
Luke 39319 Posted March 1, 2019 Posted March 1, 2019 Probably due to having to burn in subtitles. Can you please attach the log with hwa on? Thanks.
Nutellaeis 1 Posted March 1, 2019 Author Posted March 1, 2019 The logs from the first post are from the same file and have the same settings (max threads, no throttling, ultrafast profile), but have hwa on. I can provide a new one when I come home this evening.
Luke 39319 Posted March 1, 2019 Posted March 1, 2019 That would be great, thanks, without subtitles and hwa on.
Nutellaeis 1 Posted March 1, 2019 Author Posted March 1, 2019 Turning subtitles off does not produce a Transcodelog. Probably the file is just direct streaming. Without any issues of course. serverlog.txt
Nutellaeis 1 Posted March 1, 2019 Author Posted March 1, 2019 I forced it to transcode by setting a lower quality 1080p 4Mbps. Hwa on. No subtitles. Interestingly it now uses all 4 threads. And is not taxed nearly as hard. transcode.txt
Luke 39319 Posted March 19, 2019 Posted March 19, 2019 I forced it to transcode by setting a lower quality 1080p 4Mbps. Hwa on. No subtitles. Interestingly it now uses all 4 threads. And is not taxed nearly as hard. And how did it play when you did this?
Nutellaeis 1 Posted March 19, 2019 Author Posted March 19, 2019 It played fine. As you can see on the picture the CPU was not even close to full load. Though I now switched to transcoding without hwa I do not have any stuttering. It works with subtitles on and with subtitles off. The CPU load is just a lot higher mit subtitles on, but it does manage without stuttering in both cases. I just think it is weird. Hwa should improve performance and not make it worse.
Luke 39319 Posted March 19, 2019 Posted March 19, 2019 Thanks. I think the solution is lowering the in-app quality setting, not turning on or off hwa. And of course, avoiding burning in subtitles at all costs.
Nutellaeis 1 Posted March 19, 2019 Author Posted March 19, 2019 (edited) I am pretty sure it has to do with hwa. When I turn it off I can basically set every quality setting and have no issues. Regarding burning in subtitles: The "allow subtitle extraction on-the-fly" setting does sadly not work for more than one subtitle at once. For example: Someone talking + a sign that needs to be translated leads to massively delayed subtitles or none appearing in that scene at all. So I am currenty stuck with burning them in. Edited March 19, 2019 by Nutellaeis
Luke 39319 Posted March 19, 2019 Posted March 19, 2019 Regarding burning in subtitles: The "allow subtitle extraction on-the-fly" setting does sadly not work for more than one subtitle at once. Actually it works just fine, but you have to realize you're deciding between two bad choices. Both operations are very slow - burning in subtitles, or extracting subtitles on the fly. Your system just may not be able to handle it, and it's not just a question of cpu/gpu performance, but disk performance as well. How can you improve this? Use external subtitles, our subtitle download features can help you obtain them Turn the subtitles off Use an Emby app that can direct play the subtitles and therefore doesn't have to utilize either of these techniques
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