Jump to content

two issues regarding transcoding that need to be fixed.


Go to solution Solved by zyfinity,

Recommended Posts

Posted

The first issue im encountering that i have tested on two different systems on latest stable emby version and latest beta, one with an rx 580 another with an rx 570, the issue i have found is that sometimes emby works perfect (atleast for the encoding portion of the process) and that it get repectible fps (80+) the problem is that very often 50% of the time the performance becomes very slow (5-10~ FPS) and the gpu is only utilized around 5% for encoding, what this shows me is that theres some sort of bug with emby and the amf encoder, this seems to work perfectly fine on handbrake/ffmpeg directly so i dont know what emby is doing.

 

Secondly i have an integrated intel HD 610 which supports HEVC decoding, ive tried all three options (DX11VA, Quicksync D3D11 and just quicksync) and it seems none of them works, in the ffmpeg logs i can see that it detects the gpu as working and selects it but then proceeds to not work because of some error. can i please get a fix for this ASAP?

 

BOTH ffmpeg and emby server logs are attatched.

 

@@softworkz it seems that you are experienced in this so your help would be appreciated.

 

embyserver.txt

ffmpeg-transcode-3271d419-097e-4eb2-8d07-550ccd5fbdf6_1.txt

Posted

"Secondly i have an integrated intel HD 610 which supports HEVC decoding, ive tried all three options (DX11VA, Quicksync D3D11 and just quicksync) and it seems none of them works, in the ffmpeg logs i can see that it detects the gpu as working and selects it but then proceeds to not work because of some error. can i please get a fix for this ASAP?"           

 

For that issue i tested on another machine that has intel quicksync but only supports h264, anyways i tested it and it didnt seem to decode with the quicksync on the intel hd 4000 and on this machine i had the rx 580 set as the encoder, what this shows is that there is something wrong with how emby is managing decoding on intels quicksync for decoding, after being fedup i decided to try jellyfin and it seemed to actually use the intel quicksync and decoded the video, personally i dont want to use jellyfin so a fix would be great, the log is above and in the log it seems to detect the quicksync decoder and tries to "select" it but it never does and ends up falling back to software, i hope i've provided sufficient info to fix this issue.

Posted

Hi, this is a known problem due to color conversion. It happens when your source files are 10bit (HDR).

Please disable the hw decoder for hevc. This will allow you to use the hw encoder at least.

Posted

Nope, thats not the case it happens with footage that isnt 10bit aswell, the quicksync decoder refuses to work, tested on an i7 3770, G4560 and i5 9600k   all are different machines and use difference quicksync capable integrated gpu's and jellyfin / plex / handbrake seem to handle them perfectly so it seems to be an issue with emby itself  @@softworkz

Posted

Nope, thats not the case it happens with footage that isnt 10bit aswell, the quicksync decoder refuses to work, tested on an i7 3770, G4560 and i5 9600k   all are different machines and use difference quicksync capable integrated gpu's and jellyfin / plex / handbrake seem to handle them perfectly so it seems to be an issue with emby itself  @@softworkz

 

Would you be able to post ffmpeg logs from all those cases that you have tried?

(server logs not required)

Posted

I'll try, but the logs above are basically the same as what I saw on the other machines.

Posted

I'll try, but the logs above are basically the same as what I saw on the other machines.

 

I'm afraid, I doubt that a log with non-HDR content will be the same.

Posted

Ok I'll take a log on another machine proving that it's not because it's hdr and the footage looks fine when transcodes through software

Posted

Why on another machine? Please try non-HDR content on the same machine.

Thanks.

Posted (edited)

Here, i chose quicksync as decoder and rx 570 as encoder, works when only rx 570 is encoding but the quicksync wont decode, i have logs from another pc if you want aswell proving that this is a problem with emby just not decoding files, the same goes for my 10 bit hevc files, most of them arent HDR and transcode fine in other apps such as jellyfin / plex / handbrake so it cant be related to it being "hdr" when its not.

@@softworkz

ffmpeg-transcode-5ad93f8b-48d6-4a73-86c1-7aa06c78f219_1.txt

Edited by zyfinity
Posted (edited)

OK, let's talk about 10bit vs. 8bit video. I got no time to discuss the details of "HDR" right now.

 

Those logs are from different setups - different Emby versions, different client. 

When trying to pinpoint problems, you should rather just change one bit at a time.

 

What I'm seeing is that you're using QuickSync in D3d11 mode. Could you try D3D9 mode instead?

(might require connecting a monitor)

 

QuickSync D3D11 is an Emby-exclusive feature that nobody else has right now - but as cool as that is, it might be the culprit in this case..

Edited by softworkz
Posted (edited)

Umm actually i havent posted the logs from the other machine yet, all the logs posted are from one machine, and secondly i dont have the D3D9 option?  (picture attatched showing what i have)

Also how does emby not allow transcoding of 10bit video where others such as plex and jellyfin do? is there a misunderstanding or something because isnt jellyfin based off a fork off emby? i really hope the issue can be solvable.

@@softworkz

post-330453-0-63835200-1569657764_thumb.png

Edited by zyfinity
Posted

Do you have a monitor connected to the Intel onboard graphics?

Posted

You first log:

2019-09-28 14:13:12.125
Emby Server version: 4.3.0.10

App: Emby Web 4.3.0.10
Chrome

Your second log:

2019-09-28 19:34:44.426
Emby Server version: 4.2.1.0

App: Emby Mobile 4.2.1.0
Chrome

Posted

These are the options i get with it connected to the igpu 

post-330453-0-48977600-1569658238_thumb.png

Posted

Great. Disable all D3D11-QuickSync codecs and enable those without D3D11 in the name

(also move them to the top or disable the others in each group)

Posted

In the log you posted you didn't have any hw codec enabled.

 

Had you clicked "Save" in the codec configuration?

Did you post the right ffmpeg log? 

(sometimes, multiple are generated)

Posted

Yea I double checked and was confused about it aswell and I saw the same in two log files and this is with it enabled as seen in the screenshot, same issue on another pc and a few others on discord are having the same issue.

Posted

When the monitor gets disconnected or goes to standby, it could happen that the Intel GPU is no longer available.

 

Emby monitors such device changes and updates the list of available hw devices in those cases.

 

That's the only thing I could imagine right now...

Posted

The monitor was connected when I was testing

Posted

I just tried with the monitor plugged in, all sleep settings completely turned of within the os and still no luck, i tested it with the "jellyfish" 1080p H.264, 1080p HEVC, 1080p HEVC 10bit and 4k HEVC None of them at all used hardware accelerated endoding or decoding and all the options except d3d11 was enabled, it also seems to work fine in other programs such as plex, jellyfin, handbrake so this shows the internal gpu isnt going to sleep and considering that i have tested it on two other pc's aswell as a few friends on discord having the same issue shows that it's a problem with emby itself that needs to be fixed, i'm happy to provide as much log files as possible to help this bug be fixed ASAP.

Posted

Yes, please post all ffmpeg logs from all your attempts!

Please also post the hw detection log.

Thanks.

Happy2Play
Posted

You can compare other products all you want but each one builds there own product support.  So Emby will do things different then Plex, Jellyfin, Handbrake ect. ect. ect.

Posted

yea but at the end of the day they all use ffmpeg underneath and emby seems to be showing it and hw acceleration is a major part of a server since it improves performance alot.

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