Jump to content

Pre-Encoding vs Transcoding


Recommended Posts

VirulentPip
Posted

Ohh yeah good idea will try that in a minute.. The A380 has overidden all QSV stuff for transcoding, no option for the UHD 770, which I want to use :(

image.png.e2cfb3a94d18089353f950803648beba.png

VirulentPip
Posted
36 minutes ago, rbjtech said:

Does the file direct play if you play it via a USB stick attached to the C1 ?

Plays back via USB. 

  • Like 1
VirulentPip
Posted

Yikes, 1 stream is using up to 35% CPU (i5 12600K) Utilisation during throttle off moments. Really gonna need that AV1 HW Decode option to make this viable :(

rbjtech
Posted (edited)
17 hours ago, VirulentPip said:

Ohh yeah good idea will try that in a minute.. The A380 has overidden all QSV stuff for transcoding, no option for the UHD 770, which I want to use :(

image.png.e2cfb3a94d18089353f950803648beba.png

Make sure you have it enabled in the BIOS - by default, a PCIe card will disable the iGPU .. ;)

Edited by rbjtech
VirulentPip
Posted
Just now, rbjtech said:

Make sure you have it enabled in the BIOS - by default, a PCIe card will disable it .. ;)

Turns out had to put HDMI into motherboard, all good now. Emby using UHD 770 and Handbrake the A380. Now to just get AV1 HW Decode setting added to save my CPU 🤣

  • Like 1
rbjtech
Posted
3 minutes ago, VirulentPip said:

Turns out had to put HDMI into motherboard, all good now. Emby using UHD 770 and Handbrake the A380. Now to just get AV1 HW Decode setting added to save my CPU 🤣

If you have the time - it would be interesting doing a direct like for like transcoding comparison (for h265 > h264) of the UHD770 vs A380 - with throttle turned off.

Posted (edited)
On 9/30/2022 at 5:34 PM, VirulentPip said:

Well after finding a sweet sport for AV1 setting around 300fps for 10bit. I then realised something which is pretty much going to make all this not worth it... Emby is decoding AV1 when needs to be transcoded in Software, there's no option for Hardware Decoding, am I missing something or is this not an option @Luke

We don't have support for hw accelerated AV1 decoding yet.

EDIT: Just for clarity - I'm talking about the server side

Edited by softworkz
VirulentPip
Posted
1 minute ago, softworkz said:

We don't have support for hw accelerated AV1 decoding yet.

Yep realised and unfortunately so 😩 Any sort of ETA? 

Posted (edited)

It's planned but I can't tell I don't know when it might happen. 

Edited by softworkz
  • Thanks 1
Posted
18 hours ago, VirulentPip said:

Strange thing is, the LG C1 meant to support AV1. It does.. But doesn't for the app I guess?
@SamES

 

For AV1 we rely on whether the internal video player reports it can support the format.  It might be lying about AV1, which is possible if it is working via USB.

Can you enable debug logging, play an AV1 file briefly on the TV, then attach the server log?

VirulentPip
Posted
9 hours ago, rbjtech said:

If you have the time - it would be interesting doing a direct like for like transcoding comparison (for h265 > h264) of the UHD770 vs A380 - with throttle turned off.

Yep will do some tomorrow :) 

 

  • Thanks 1
VirulentPip
Posted
7 hours ago, SamES said:

For AV1 we rely on whether the internal video player reports it can support the format.  It might be lying about AV1, which is possible if it is working via USB.

Can you enable debug logging, play an AV1 file briefly on the TV, then attach the server log?

Roger that, will do tomorrow when logs are fresh 👍

VirulentPip
Posted
20 hours ago, rbjtech said:

If you have the time - it would be interesting doing a direct like for like transcoding comparison (for h265 > h264) of the UHD770 vs A380 - with throttle turned off.


Honestly not what I was expecting, the UHD 770 absolutely smashed the A380. Emby bugged out in the 4K with the A380 and was always triggering software not sure why, but the UHD770 with no tone mapping was 190fps. 


1505212743_UHD7701080p.png.463f172af99787e966d6140c21c1a937.png212417855_A3801080p.png.8b2a18f8420bab1ecda25d7a9e8c5ec7.png

  • Thanks 1
rbjtech
Posted

Hmm - that seems odd.

I would have expected the ARC ASICS to at least be on par with the UHD770 for h264/h265.

The I/O architecture is however different - ARC will be reading/writing via the PCIe bus, but has 'local' dedicated memory - while the UHD will be reading/writing via an internal bus, but has 'shared' memory. 

A transcode log might reveal more on where the bottleneck is ?

This architecture works for nvenc/nvdec, so it could simply be a very unoptimized driver/ffmpeg combo that is causing the delays - as 100fps on a 1080p transcode is very poor.

VirulentPip
Posted
4 minutes ago, rbjtech said:

Hmm - that seems odd.

I would have expected the ARC ASICS to at least be on par with the UHD770 for h264/h265.

The I/O architecture is however different - ARC will be reading/writing via the PCIe bus, but has 'local' dedicated memory - while the UHD will be reading/writing via an internal bus, but has 'shared' memory. 

A transcode log might reveal more on where the bottleneck is ?

This architecture works for nvenc/nvdec, so it could simply be a very unoptimized driver/ffmpeg combo that is causing the delays - as 100fps on a 1080p transcode is very poor.


At first glance I have noticed that with the A380 only D3D9 is available. UHD 770 has both D3D9 and D3D11 - Which is what it's using for 1080p and 4K. A380 fails 4K due to being D3D9 only?

A380 1080p ffmpeg-transcode-3de12b87-e2c8-4f97-a396-d9e94d089681_1.txt A380 Failed 4K ffmpeg-transcode-b2add92c-ac5b-4696-838d-7b55b540ceaa_1.txt UHD 770 4K ffmpeg-transcode-e54b8175-1d50-4779-bd01-f5034776d10f_1.txt UHD 770 1080p ffmpeg-transcode-3be33dfc-63f2-47bc-86e4-332c3591dc30_1.txt

rbjtech
Posted (edited)

Ah that's interesting - I don't even have any D3D9 listed at all on my emby decoders/encoders - only D3D11 (and DX11VA - which are all unselected).

I'm wondering if this is a driver issue - did you install and specific ARC drivers or just used the existing drivers ?

Edited by rbjtech
VirulentPip
Posted

Seems the latest are installed for both. 

Screenshot 2022-10-02 103725.png

Screenshot 2022-10-02 103734.png

  • Like 1
VirulentPip
Posted

But to answer more specifically, I grabbed drivers listed for the Arc.. Seems to use the same drivers for the UHD770 as those weren't updated. But yeah, confusing that there's no D3D11 option for the A380.

rbjtech
Posted
15 minutes ago, VirulentPip said:

But to answer more specifically, I grabbed drivers listed for the Arc.. Seems to use the same drivers for the UHD770 as those weren't updated. But yeah, confusing that there's no D3D11 option for the A380.

Fundamentally I think that is the issue here.   ARC emulates D3D9 - I'm reading it has no hardware support for it - so that is not helping performance.

But until you have a working D3D11 / Quicksync driver for the A370/ffmpeg - then I don't think you can do a 1:1 comparison.

Maybe take a look at the BETA drivers ?

https://www.intel.com/content/www/us/en/download/737144/intel-graphics-windows-dch-drivers-preview-features.html

VirulentPip
Posted
3 minutes ago, rbjtech said:

Fundamentally I think that is the issue here.   ARC emulates D3D9 - I'm reading it has no hardware support for it - so that is not helping performance.

But until you have a working D3D11 / Quicksync driver for the A370/ffmpeg - then I don't think you can do a 1:1 comparison.

Maybe take a look at the BETA drivers ?

https://www.intel.com/content/www/us/en/download/737144/intel-graphics-windows-dch-drivers-preview-features.html

Looking at the versions, this is older to the one I have which released only Tuesday (27th) 

 

Posted
4 hours ago, VirulentPip said:

It looks like it's reporting not supported for AV1.

For a test, disable video transcoding in the user settings (don't forget to hit save at the bottom).

Let me know if that DirectPlays, please attach an ffmpeg log if it doesn't

image.thumb.png.8d4e28fb1b1acf29b73a257a82367576.png

VirulentPip
Posted (edited)

Came up with "Playback error No compatible streams are available" Gave 3 logs in quick succession. Fun fact I tried the 4K Max native app (Having to use the Android app for AV1 playback) with this setting and got blank screen with audio so adding in those logs too. 

 

4K Max ffmpeg-directstream-046a0c42-03fb-454e-a27c-8672830dc1c4_1.txt ffmpeg-remux-950b9ce2-bb52-4421-86d9-b15e98c15149_1.txt ffmpeg-directstream-ef9cc1e3-0791-4d73-825c-af8ff467f22e_1.txt ffmpeg-directstream-f97c01f7-b08e-4ee8-bfd6-e2aaa3c0e5f6_1.txt

Edited by VirulentPip
  • Like 1
Posted
5 minutes ago, VirulentPip said:

Came up with "Playback error No compatible streams are available"

Then the app is correctly reporting that av1 is not supported.  This is an LG/app limitation, not an Emby limitation.

While rare, it wouldn't be the first time I've seen files play from USB, but not from the app.

  • Thanks 1
Posted
8 hours ago, VirulentPip said:

Looking at the versions, this is older to the one I have which released only Tuesday (27th) 

Don't go for the version numbers. 

I would try all of these three packages:

image.png.2bedc31162ea3fc6cfe3e7143f13e367.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...