Jump to content


Photo

Help: Why must server transcode when playing HEVC/H.265?

transcode HEVC H.265

  • Please log in to reply
20 replies to this topic

#1 fanfan.li OFFLINE  

fanfan.li

    Member

  • Members
  • 10 posts
  • Local time: 06:41 AM

Posted 29 December 2018 - 07:12 AM

Hello everyone, I installed Emby Server (3.5.3.0) on my DS3617 and installed the app on both iPhone and AndroidTV.

 

When I use my phone or TV to play video files in H.264 format (I am at home, LAN connection, video files are about 5GB), the video will not be transcoded by emby server, drag the playback progress during playback. The article is very sensitive and there is no such thing as a Caton.

 

But when I use the phone or AndroidTV to play the HEVC/H.265 format video file (1.6GB), the file is forced to be transcoded by the emby server. At this time, I drag the playback progress bar to buffer for a while (because The server is transcoding the video file, and my DS3617 CPU usage is almost 100%.

 

When I try to use the Kodi app on AndroidTV to play video files in the HEVC/H.265 format at Emby server, it can be played directly.

 

Can we not transcode when playing video files in HEVC/H.265 format by setting some options?

 

Thank you for your answers.



#2 Charlie117 OFFLINE  

Charlie117

    Advanced Member

  • Members
  • 52 posts
  • Local time: 12:41 AM

Posted 29 December 2018 - 08:18 AM

I don't think it should transcode HEVC for your Shield TV unless you have set a bitrate limit in the app settings. Can you tell to what bitrate setting the Emby for Android TV is set?


Edited by Charlie117, 29 December 2018 - 08:18 AM.


#3 fanfan.li OFFLINE  

fanfan.li

    Member

  • Members
  • 10 posts
  • Local time: 06:41 AM

Posted 29 December 2018 - 08:34 AM

Hi:

 

I just saw the AndroidTV app settings, it is 100Mbits/s, this value should be enough, my video file is only 1.6GB (about 60 minutes)



#4 fanfan.li OFFLINE  

fanfan.li

    Member

  • Members
  • 10 posts
  • Local time: 06:41 AM

Posted 29 December 2018 - 08:35 AM

I don't think it should transcode HEVC for your Shield TV unless you have set a bitrate limit in the app settings. Can you tell to what bitrate setting the Emby for Android TV is set?

 

 

Hi:

 

    thanks for your help.

    I just saw the AndroidTV app settings, it is 100Mbits/s, this value should be enough, my video file is only 1.6GB (about 60 minutes)



#5 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 124437 posts
  • Local time: 06:41 PM

Posted 29 December 2018 - 01:03 PM

Hi there, can we look at an example? Please attach the information requested in how to report a media playback issue. thanks !



#6 fanfan.li OFFLINE  

fanfan.li

    Member

  • Members
  • 10 posts
  • Local time: 06:41 AM

Posted 29 December 2018 - 01:14 PM

Hi luke:

Thank you for your reminder.
I have read the guidance document "How to submit a bug", but I don't think it is necessary to provide a log.
This is a very obvious problem. When I play a video file in hevc format, I am Unable to prevent the server from transcoding him.

#7 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 124437 posts
  • Local time: 06:41 PM

Posted 29 December 2018 - 01:40 PM

I'm sorry but I need to look at an example in detail in order to accurately answer the question. Thanks !



#8 fanfan.li OFFLINE  

fanfan.li

    Member

  • Members
  • 10 posts
  • Local time: 06:41 AM

Posted 29 December 2018 - 01:58 PM

Hi Luke:

Can this picture illustrate the problem?

My phone is iPhone8 plus, using the latest version of the emby client on Appstore. It can be seen from the figure that the HEVC encoded video is converted into a H.264 encoded video. This transcoding action should be performed on the server side. Is the emby app unable to decode H.265 format video?

Edited by fanfan.li, 29 December 2018 - 02:00 PM.


#9 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 124437 posts
  • Local time: 06:41 PM

Posted 29 December 2018 - 02:00 PM

Yes the app can decode HEVC. 



#10 fanfan.li OFFLINE  

fanfan.li

    Member

  • Members
  • 10 posts
  • Local time: 06:41 AM

Posted 29 December 2018 - 02:05 PM

Sorry, I can't upload an image with my phone. I will upload the screenshot with my computer later.

#11 fanfan.li OFFLINE  

fanfan.li

    Member

  • Members
  • 10 posts
  • Local time: 06:41 AM

Posted 29 December 2018 - 02:07 PM

ok,i upload it

Attached Files



#12 fanfan.li OFFLINE  

fanfan.li

    Member

  • Members
  • 10 posts
  • Local time: 06:41 AM

Posted 29 December 2018 - 02:09 PM

This is a screenshot of my iPhone,using the app downloaded from the Appstore.

#13 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 124437 posts
  • Local time: 06:41 PM

Posted 29 December 2018 - 02:20 PM

Currently 10-bit HEVC is excluded from direct play. We need to improve that to allow it on iOS devices that support it. Thanks.


  • Burrito78 likes this

#14 fanfan.li OFFLINE  

fanfan.li

    Member

  • Members
  • 10 posts
  • Local time: 06:41 AM

Posted 29 December 2018 - 02:27 PM

Hi Luke:

Thank you for your answer, AndroidTV should not support HEVC10 direct playback also?

Can you tell me when the premium version of $119 will be discounted

#15 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 124437 posts
  • Local time: 06:41 PM

Posted 29 December 2018 - 02:39 PM

We'll look at this for the next update to the iOS app.

 

As far as Android TV goes, this depends on whether or not your device supports HEVC. Does it? What device?



#16 FoulFoot OFFLINE  

FoulFoot

    Member

  • Members
  • 18 posts
  • Local time: 04:41 PM

Posted 05 January 2019 - 09:29 PM

Hello --

 

I'm getting this, too.  I'm on a FireTV 4k Stick.  Almost all my movies are HEVC encoded, and most (all?) are transcoding.  This transcoding (I assume) is also playing havoc with the audio sync; the audio is 1-2 seconds ahead of the video.  

 

The error listed in the transcode is "DirectPlayError,ContainerBitrateExceedsLimit".  Later errors are "Packet header is not contained in global extradata, corrupted stream or invalid MP4/AVCC bitstream".

 

Logs attached.  For some reason, it's giving me multiple "remux" logs, followed by a "transcode" log.

 

Foul

Attached Files



#17 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 124437 posts
  • Local time: 06:41 PM

Posted 06 January 2019 - 01:23 AM

It looks like the app tried to direct play, but the video player reported an error and then it automatically switched to transcoding. If i had to guess, the reason for the video player having trouble with the file is probably similar to the reason for ffmpeg having trouble with it on the server.

 

@softworkz do you have any insight?



#18 3djc OFFLINE  

3djc

    Advanced Member

  • Members
  • 37 posts
  • Local time: 12:41 AM

Posted 06 January 2019 - 08:00 AM

Just for info, I have quite a few 4k 10 bits x265, they all play without trancoding on my nVidia shield



#19 FoulFoot OFFLINE  

FoulFoot

    Member

  • Members
  • 18 posts
  • Local time: 04:41 PM

Posted 06 January 2019 - 09:23 AM

Just to make it more complicated -- I recently upgraded to the 4k stick from the FireTV Gen 2; I don't recall having these transcoding issues on the Gen 2 (or at least, there was no lipsync problem, so I might not have noticed that it was transcoding).  I'll try and verify that today, by hooking the Gen 2 back up and viewing the logs.

 

Foul



#20 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 124437 posts
  • Local time: 06:41 PM

Posted 06 January 2019 - 11:33 AM

Thanks let us know how you get on.
@softworkz





Also tagged with one or more of these keywords: transcode, HEVC, H.265

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users