Jump to content

Subtitles cause heavy lag


lhue
Go to solution Solved by Luke,

Recommended Posts

I hope this is the right place to put this topic in, I haven't posted before and it felt like the most relevant place. 

I use Emby regularly, and I primarily watch subbed anime. And as with any tv/movie style there will sometimes be multiple things conveyed on screen. 

So the problem is that whenever there is a large amount of subtitles on screen (Large being above the average single line) the web app will freeze up. So when a sign with multiple slanted lines of text shows up the app freezes on that frame without showing the subtitles and the audio continues without me being able to pause it.  

Another example from today: The episode ends and the ending theme plays, with one line horizontally in English and one vertically in Japanese. The video plays but the subs freeze and the controls don't show up when I move the mouse or click. 

 

On a related note; is split OP/ED+EP, which is common for blu-ray anime releases, in planning at all?

Please excuse if my English is wrong anywhere.  

Link to comment
Share on other sites

Deathsquirrel

What format are these subtitles.  The embedded blu-ray subs almost certainly require transcoding to render in a web player which means significant CPU resources used on the server.  If that's the case look at your transcode log as your server likely isn't fast enough to do the work.

Link to comment
Share on other sites

They're embedded in the .mkv container and according to emby the codec is SSA (I hope that's what you meant).  

I looked at the logs and I see multiple "parse errors", one at 23:38.94 and the video freezes on 23:39 during the outro. I checked the task manager on the desktop I'm using for emby and my cpu usage rested on 30-40% with emby using 0.8-1.2 during the frozen video. 

Is the task manager lying to me?

*EDIT: Oh and I didn't even see ffmpeg when I was sorting by highest percentage, remembered that it's not actually the emby process that does the encoding.

Edited by lhue
Link to comment
Share on other sites

Hello! 

I think these two are the most recent relevant ones. ffmpeg-transcode-f2cd3ad8-728a-4372-9dc8-e170291ee476.txtffmpeg-transcode-a3d61d72-f0ff-44a5-9e93-518f09c49fed.txt  

Also I don't know if this is relevant but I experience the freezing both when playing on the same network (And using the direct option) and when streaming to somewhere completely different.

Link to comment
Share on other sites

Also was there an additional ffmpeg log for a subtitle extraction? This would have happened at the time you attempted to play. Thanks.

Link to comment
Share on other sites

  • Solution

What's happening is the subtitle extractions are taking anywhere from 5 to 15 seconds in your cases and yes this can delay playback. However the extraction result is saved for re-use the next time you play the same video.

 

I am working on adjusting the extraction process to make it faster for the next release of the server.

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...