Jump to content

Experimental HEVC doesn't use hardware acceleration correctly


Go to solution Solved by ebr,

Recommended Posts

Flofian
Posted

I had the option "Enable HEVC video encoding (experimental)" on, which did work, it used HEVC when transcoding for my android phone, and I have the option "Enable hardware acceleration when available" set to yes with no custom settings for any of the encoders.

However, it seemed to only use CPU when transcoding to hevc, and i saw the ffmpeg task with "-c:v libx265" in the arguments.

But looking at the logs, it seems to try it with hardware acceleration first, and sometimes works? I attached 3 logs,  all are for transcoding the same file.

embylog01.txt embylog02.txt embylog03.txt

Posted

Hi, looks like those log files have been modified. We need to see the originals to answer the question.

Short answer though, it's not supported yet by all Emby apps and we are gradually rolling it out to more and more of them.

Flofian
Posted

Hi.  Many of those are not using HEVC at all but the one I found that was looks to be using your GPU:

13:03:41.598   Stream #0:0 -> #0:0 (h264 (native) -> hevc (hevc_nvenc))

 

Flofian
Posted (edited)

Sorry, maybe i added a few too many logs, i just wanted to show all the logs from the same file.

The logfile ffmpeg-transcode-bc159779-bf4c-4a60-9e52-412f5aecfd3a_1.txt shows this

13:06:54.672   Stream #0:0 -> #0:0 (h264 (native) -> hevc (libx265))

which i think was the main one that i saw using the cpu.

I think the later logs that are not hevc are because i turned the option off. 

 

Edited by Flofian
  • Solution
Posted

Okay, so what it appears happened is the stream played for a while just fine using hardware (this is the log just before the one you pointed out) and then something happened to cause it to fail:

13:04:38.611 Too many packets buffered for output stream 1:1.
13:04:38.722 Conversion failed!
13:04:38.722 EXIT

So, we re-started the stream disabling the hardware conversion (because that is many times the cause of an error) and it continued on from there.

>>>>>>  FindVideoEncoder - MediaType: hevc, UseHardwareCodecs: False, HWA-Mode: Automatic

 

Flofian
Posted

Thank you so much.

I guess there is nothing i can do about that? I understand that it makes sense for it to behave like it currently does, but since the server runs on my personal machine, it would be better (for me) if it tried to use h264 on my gpu before it switches to cpu, especially since i dont think i ever had problems wihth h264 on my gpu. I would love it if there was an option for deciding the order.

Neminem
Posted
43 minutes ago, Flofian said:

if it tried to use h264 on my gpu before it switches to cpu

Yes try without HEVC encoding, to get the old h264 encoding

image.png.3aec1098a9067ff2c873b9bba1d36135.png

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...