Jump to content

Certain HEVC files fail to hardware transcode


mackatini
Go to solution Solved by mackatini,

Recommended Posts

mackatini

Hi there,

 

I have an issue with some, (not all), of my HEVC encoded movies not playing properly with hardware acceleration enabled.

They take around 2 minutes to start playing and then I see in the dashboard that they are being transcoded in softsware mode only.

 

I have tried with various titles and I get varied results.

Some work perfectly and some don't. At first I thought it may have something to do with 10-bit vs 8-bit encoding, but that doesn't seem to be the case.

I have attached 2 logs. Both are HEVC 10-bit encoded movies with the same audio track configuration and no subtitles. One decodes perfectly using hardware and one fails and reverts back to software after a while.

 

To give a bit more background, I don't seem to have any issues with H264 encoded movies, or HEVC 8-Bit encoded movies. They always seem to use hardware transcoding without a glitch.

 

Any help would be appreciated. I am just leaving Hardware Transcoding off for the moment as it seems to be pot luck.

Success.txt

Failed.txt

Edited by mackatini
Link to comment
Share on other sites

mackatini

@@mackatini - What's your CPU model?

 

Do you have the latest Intel Graphics driver installed? (from the Intel website)

 

I have an Intel® Core™ i5-6200U CPU @ 2.30GHz with the latest drivers installed.

Link to comment
Share on other sites

mackatini

From the intel website?

Yes sir, @@softworkz

 

I use the intel driver update utility.

 

Last driver update was the 11th April.

post-349085-0-40969900-1588666533_thumb.jpg

Link to comment
Share on other sites

Both are HEVC 10bit, but the succeeding one is SDR and the failing one is HDR which can be seen from those values:

ColorTransfer":"smpte2084","ColorPrimaries":"bt2020","ColorSpace":"bt2020nc"

Can you confirm that this is the common pattern you are seeing with all HEVC-10bit files?

(I mean HDR failing, and non-HDR succeeding)

Edited by softworkz
Link to comment
Share on other sites

mackatini

Both are HEVC 10bit, but the succeeding one is SDR and the failing one is HDR which can be seen from those values:

ColorTransfer":"smpte2084","ColorPrimaries":"bt2020","ColorSpace":"bt2020nc"

Can you confirm that this is the common pattern you are seeing with all HEVC-10bit files?

(I mean HDR failing, and non-HDR succeeding)

 

@@softworkz Please excuse my stupidity, but I don't know how to determine the differences you mention above. I have searched the logs for the any of the keywords and can't find anything.

Is there a utility that I can use that will give me the info you require?

 

Cheers,

Link to comment
Share on other sites

Look in 'Failed.txt', line 12. 

(you should enable word-wrapping because line 12 is pretty long)

Link to comment
Share on other sites

mackatini

Ah, ok.

 

I found those values in the original failed.txt file I sent, but not in any of the other tests i've done today.

Attached is anotheer failed log, this time without those values you posted.

 

Cheers,

Failed2.txt

Edited by mackatini
Link to comment
Share on other sites

alturismo

may just a side question, when i check your logs, 1080p, SDR and 10bit ?

 

are these "homemade" videos ? self encoded ? just out of interest cause SDR is usually encoded in 8bit afaik.

Link to comment
Share on other sites

mackatini

may just a side question, when i check your logs, 1080p, SDR and 10bit ?

 

are these "homemade" videos ? self encoded ? just out of interest cause SDR is usually encoded in 8bit afaik.

From what I've read, I agree that SDR should typically be 8-bit. The files I encoded myself are indeed 8-Bit by default when I select SDR, but that can be changed. Not all my files are encoded by me unfortunately though.

Link to comment
Share on other sites

mackatini

Both are HEVC 10bit, but the succeeding one is SDR and the failing one is HDR which can be seen from those values:

ColorTransfer":"smpte2084","ColorPrimaries":"bt2020","ColorSpace":"bt2020nc"

Can you confirm that this is the common pattern you are seeing with all HEVC-10bit files?

(I mean HDR failing, and non-HDR succeeding)

 

Hi there,

 

Below is a link to two video files. Each is a 10 second snippet of a video that works under hardware transcoding and one that doesn't. I hope this will give you more to go on.

 

https://drive.google.com/drive/folders/11p0BADnPIyfbW7D99LWG-XmdGtD3va8k?usp=sharing

 

Many thanks.

Link to comment
Share on other sites

Hi there,

 

Below is a link to two video files. Each is a 10 second snippet of a video that works under hardware transcoding and one that doesn't. I hope this will give you more to go on.

 

https://drive.google.com/drive/folders/11p0BADnPIyfbW7D99LWG-XmdGtD3va8k?usp=sharing

 

Many thanks.

 

Thanks, but 

 

Can you confirm that this is the common pattern you are seeing with all HEVC-10bit files?

(I mean HDR failing, and non-HDR succeeding)

 

Or is it just one or two individual files that are failing?

Edited by softworkz
Link to comment
Share on other sites

mackatini

@@softworkz, I've just updated to the latest release which I assume has the fix in for this issue.

 

Just some feedback mate.

 

There are still delays when starting playback with hardware trancoding on, although not as bad as previously.

Looking at my logs show that they are all still failing on the first attempt and switch back to software on the second attempt.

 

In the changelog, you mentioned this fix "Fix qsv color conversion: Older devices 3,4 and 5th gen CPUs do not support 10bit and the color conversion cannot be done in hardware"

I assume this is related to this issue, so I understand that 10bit encoding with HDR/SDR or whichever combination can't be hardware decoded by the respective CPU generations mentioned, but now even my 8Bit HEVC content is slow to start and when I look at the logs, also seems to be failing on attempt 1 and reverting to software decoding on the second attempt. This was not an issue in the past. On top of that, it seems if it has to fall back to software, it does it for the encoding process as well.

 

See attached log for 8Bit HEVC playback.

I've also attached the original logs from the first post, only now from the latest version. I've named them Success and Failed like I did previously. They now both fail however.

 

So to summarise, all HEVC contents seems to fail on attempt 1 and switch to software on attempt 2 for decoding and encoding.

H264 seems unaffected.

 

Cheers,

 

 

 

8Bit HEVC.txt

Success.txt

Failed.txt

Link to comment
Share on other sites

That doesn't sound good. I'm a bit short on time right now. Please ping me in a few days when I haven't responded by then.

Link to comment
Share on other sites

mackatini

That doesn't sound good. I'm a bit short on time right now. Please ping me in a few days when I haven't responded by then.

@@softworkz, Hey buddy. Any developments here yet?

Link to comment
Share on other sites

@@mackatini - The apppears to be a general problem with QuickSync hwa now.

 

Unfortunately you have also changed the Graphics driver in the meantime, and that's what I would primarily suspect to be the cause.

Link to comment
Share on other sites

  • Solution
mackatini

@@softworkz I have updated to the latest driver. I always try to keep them official and up to date.

 

Seeing your response now, I rebooted everything and tried again, and to my embarrassment everything seems to decode quickly, correctly and with Quicksync encoding and decoding working as expected.

It appears to have miraculously fixed itself on my setup. (Very confused)

 

For your interest, find attached the Success and Failed logs which are now both processing correctly.

 

Apologies for the false alarm and thanks for the effort in resolving this issue.

 

Cheers

Success.txt

Failed.txt

  • Like 1
Link to comment
Share on other sites

For a fraction of a second I was thinking about to ask whether you have rebooted after the driver update... :-)

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