Jump to content


Photo

Replaying HEVC in Emby Theater

H265 Emby Premiere HEVC Lag

Best Answer Doofus , 30 December 2019 - 05:22 PM

The lag you're referring to is probably the server transcoding. Yes, using a player that will decode HEVC will stop that happening. Theater for Windows desktop will play everything, natively. Go to the full post


  • Please log in to reply
33 replies to this topic

#1 schogobong OFFLINE  

schogobong

    Advanced Member

  • Members
  • 86 posts
  • Local time: 04:17 AM

Posted 30 December 2019 - 05:02 PM

Hi,

 

I have my Emby Server (4.3.0.30) set up on a QNAP TS431P and am accessing it via the Emby WebApp (Chrome). I have noticed that some of my H265 content is acting up and lagging. As far as I can tell this has to do with Chrome not supporting the codec. Playing the file via Edge seems to work better but there is still considerable lag.

 

Playing the file on my AppleTV (through Emby) as well as using VLC to play directly from the server (with Windows) both works without any issues or lag. I am assuming that's when the local hardware kicks in as compared to my NAS and/or Chrome restrictions. Is that assumption correct?

 

So I am thinking about getting a Premiere subscription in order to get the Emby desktop applications, assuming that this will my laptop do the "heavy" lifting. Can I expect that this would resolve my issues of having laggy HEVC playback?

 

Please let me know if you need any other information - looking forward to your feedback!

 



#2 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13712 posts
  • Local time: 08:17 PM

Posted 30 December 2019 - 05:22 PM   Best Answer

The lag you're referring to is probably the server transcoding. Yes, using a player that will decode HEVC will stop that happening. Theater for Windows desktop will play everything, natively.
  • schogobong likes this

#3 schogobong OFFLINE  

schogobong

    Advanced Member

  • Members
  • 86 posts
  • Local time: 04:17 AM

Posted 31 December 2019 - 03:02 AM

Thanks for the feedback Doofus. Just got Premiere and downloaded Emby Theater for Windows.

Playback now actually works without any lag, so that is great :) However, I notice that replay takes around 30 seconds to start after clicking on Play. During that time I'm just getting that colorful loading illustration (the circle).

Is that expected behavior?

Edit:
The same can be observed when using the Emby Theater App from the Microsoft Store (I used the one from the Emby website before).

Edit 2:
Just tried the Android App - works like a charm - reasonably immediate start, no lag. So the issue seems to be with Emby Theater for Windows (both versions).

Edited by schogobong, 31 December 2019 - 03:24 AM.


#4 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13712 posts
  • Local time: 08:17 PM

Posted 31 December 2019 - 10:58 AM

What are you trying to play when this happens? Is it happening with everything you play?

Edited by Doofus, 31 December 2019 - 10:59 AM.


#5 schogobong OFFLINE  

schogobong

    Advanced Member

  • Members
  • 86 posts
  • Local time: 04:17 AM

Posted 02 January 2020 - 09:30 AM

Allright, so I played around a bit.

 

This seems to happen whenever I  playback an HEVC file (either beginning to play the file or skipping to a non-buffered part). All other files seem to work just fine. I tested this on two HEVC encoded files, both around one hour, one is 200MB, the other is 350MB, both are mkv).

 

I have also noticed that, when playing said files in Emby Theater on Windows, CPU usage on my QNAP goes straight up to around around 98% and stays there even if the video is paused. Interestingly enough: While the video in the Windows app is paused I can play the video straight from my NAS with VLC (home wifi) and also play the same video through my phones mobile network - both without buffering or anything and without having any further impact on the CPU of my NAS. All at the same time.

 

As soon as I go back to the menu in Emby Theater, CPU usage drops again.



#6 schogobong OFFLINE  

schogobong

    Advanced Member

  • Members
  • 86 posts
  • Local time: 04:17 AM

Posted 02 January 2020 - 09:41 AM

I just tried another mkv file. CPU doesn't peak, but it seams that Emby Theater still isn't happy with the filetype. It takes considerably longer to open than other filetypes (e.g. mp4) and it also takes a while to resume playing after skipping to a different part of the film. But this is nowhere near as bad as it is with the to HEVC mkv files.



#7 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13712 posts
  • Local time: 08:17 PM

Posted 02 January 2020 - 11:04 AM

That sounds like an access issue. There should be no server involvement. You should be able to hit play, shut down the server and it keeps playing (unless you press pause). Make sure that emby has direct access to the media.

#8 schogobong OFFLINE  

schogobong

    Advanced Member

  • Members
  • 86 posts
  • Local time: 04:17 AM

Posted 02 January 2020 - 12:07 PM

How can I do that?

 

Also, there don't seem to be any issues when playing back through the Android app. Could this still be an access issue that only affects Emby Theater on Windows?

 

Thanks for your support Doofus!



#9 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13712 posts
  • Local time: 08:17 PM

Posted 02 January 2020 - 12:54 PM

Yes, if one device has better access than another, then it will work better. How do you have your network configured?

#10 schogobong OFFLINE  

schogobong

    Advanced Member

  • Members
  • 86 posts
  • Local time: 04:17 AM

Posted 03 January 2020 - 08:50 AM

I have two Google Wifi devices. The NAS has a wired connection to one of them, all other devices are connected via WiFi - so Emby on my Android phone as well as on my Windows laptop are both accessing the server via WiFi



#11 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13712 posts
  • Local time: 08:17 PM

Posted 03 January 2020 - 10:53 AM

But are they configured the same way?

#12 schogobong OFFLINE  

schogobong

    Advanced Member

  • Members
  • 86 posts
  • Local time: 04:17 AM

Posted 03 January 2020 - 10:54 AM

Sorry, but I'm not sure what you mean



#13 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13712 posts
  • Local time: 08:17 PM

Posted 03 January 2020 - 11:03 AM

It might actually be more simple. What GPU is in the laptop?

#14 schogobong OFFLINE  

schogobong

    Advanced Member

  • Members
  • 86 posts
  • Local time: 04:17 AM

Posted 03 January 2020 - 11:04 AM

I'm using the Lenovo Graphics Dock (GTX 1050)



#15 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13712 posts
  • Local time: 08:17 PM

Posted 03 January 2020 - 11:41 AM

Can you follow this and attach the log?

https://emby.media/c...ng-for-theater/

#16 schogobong OFFLINE  

schogobong

    Advanced Member

  • Members
  • 86 posts
  • Local time: 04:17 AM

Posted 03 January 2020 - 12:31 PM

Here you go

Attached Files



#17 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13712 posts
  • Local time: 08:17 PM

Posted 03 January 2020 - 02:03 PM

It's not showing me what I was looking for. Its going directly to the server stream. You'll need to post the transcode log from the server.

#18 schogobong OFFLINE  

schogobong

    Advanced Member

  • Members
  • 86 posts
  • Local time: 04:17 AM

Posted 03 January 2020 - 04:34 PM

This is the only log created after playing the affected file.

Attached Files



#19 Doofus OFFLINE  

Doofus

    Advanced Member

  • Members
  • 13712 posts
  • Local time: 08:17 PM

Posted 03 January 2020 - 10:15 PM

If there's no transcode log, then my assumption was wrong. The 'lag' is something else. When you play one of these videos, pull up the stats for nerds, take a screenshot and post it. 


Edited by Doofus, 03 January 2020 - 10:16 PM.


#20 schogobong OFFLINE  

schogobong

    Advanced Member

  • Members
  • 86 posts
  • Local time: 04:17 AM

Posted 04 January 2020 - 03:04 AM

Here you go:

 

5e1037c946042_StatsForNerds.jpg

 

I also went back to the Emby app from the Microsoft Store again just to see what's different. Unfortunately, I couldn't get the file to play at all, so I tried a different one (non-HEVC). Here are the corresponding stats:

5e1039006421a_StatsForNerds_MicrosoftSto







Also tagged with one or more of these keywords: H265, Emby Premiere, HEVC, Lag

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users