Corrupted video output stream with hardware transcoding

That’s right. I think I’m missing something about what you’re saying in regards to updating Ubuntu .

EDIT: Uninstalling packages should not break PMS HW acceleration. I say this because this same configuration is installed on headless NAS boxes. There are no dependencies for other packages.

i used 16.04 LTS. upgrading to 19.04 “fixed” the bad transcoding quality using the legacy i965 as well.

Can you get me a sample file?

I have both 16.04 LTS and 19.04 here. I can easily test against that and try to reproduce your results.

There’s something going on which I’m not understanding. There should be NO external dependencies with exception of libc.

Which version of PMS is this?

1.18.4.2171
example_file.mkv.zip (412.8 KB) - but this is for the original problem with the iHD driver.

The issue i was working on was the Pixelated playback when Transcoding for the first 60-90sec

Thanks. That’s a long thread. Time to start reading <cleans glasses>

Clarification please?

You recompiled iHD against the updated headers and libs?

just reinstalled plex from scratch to take a closer look and not everything is linked correctly.


root@plex:/usr/lib/plexmediaserver/lib/dri# ldd iHD_drv_video.so 
	libigdgmm.so.11 => /usr/lib/x86_64-linux-gnu/libigdgmm.so.11 (0x00007f7b45105000)

should link to …/libigdgmm.so.11

Interesting.

I get:

[chuck@lizum dri.97]$ ldd iHD_drv_video.so 
	linux-vdso.so.1 (0x00007fffddddc000)
	libpciaccess.so.0 => /lib64/libpciaccess.so.0 (0x00007fea920eb000)
	libm.so.6 => /lib64/libm.so.6 (0x00007fea91fa5000)
	libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fea91f84000)
	libdl.so.2 => /lib64/libdl.so.2 (0x00007fea91f7e000)
	librt.so.1 => /lib64/librt.so.1 (0x00007fea91f74000)
	libigdgmm.so.11 => not found
	libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007fea91d78000)
	libc.so.6 => /lib64/libc.so.6 (0x00007fea91bb2000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fea93dc7000)
	libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fea91b98000)
[chuck@lizum dri.98]$ 

so maybe this explains it a lil bit. Seems like at least this package is using external packages for a basic dependency. Maybe some other files have similar issues.

I am now wondering if the build system didn’t include the lib.
If that’s true, it’ll grab whatever is available and that would explain why you’re able to effect change so easily by upgrading the distro itself.

I think it’s time for me to ask questions.

I sent a message to the build team, which includes your and my difference for iHD_drv_video.so.

I don’t expect a reply tonight but might get one tomorrow if someone gets online to do any work.

i’m a lil bit surprised that it works - at all. Can you check if the iHD driver is doing any work or if it falls back to software encoding? AFAIK GitHub - intel/gmmlib is a hard dependency.

Lets have a lil hope to get a fix for the transcoder problems as a christmas gift :wink:

I’m the systems guy (OS itself) and spend my time in packaging/porting. I can’t actually tell how much work is happening in the transcoder (i don’t know where to breakpoint it )

I know the transcoder will fall back to the i965 if iHD isn’t there.
I’m beginning to wonder now just how that mechanism works at all .

I agree with you , there is a hard dep missing in the iHD. I asked the build team to clarify / explain that.

Maybe you did find a/the problem with the iHD.

Hey folks, thanks for all your hard work looking into this!
Similarly related, is there any reason PMS is still transcoding when using subtitles on Android clients? I know there was a sync bug in ExoPlayer but I imagined it would have been fixed by now?

Don’t know how the Android client works. Sorry.
Best to ask in Streaming-Devices and tag Android-Mobile

@wmchris

Did indeed find the root problem and how you were able to effect changes.
It was indeed RPATH being incorrect.

Because RPATH wasn’t correct, it couldn’t find its dependent library (which is included). ldd doesn’t take the spawning executable’s DT_NEEDED information.

It’s been corrected and will formally released after the holidays.

Hey guys!

Here are links to a preview build that should resolve this is issue in the iHD driver. Thanks @ChuckPa for doing the extra legwork with our build team.

2 Likes

Nope, still the same issue sadly. I uninstalled and reinstalled Plex via the dsm package manager using this spk. Nothing else removed or modified

May I see logs please?

To all reading here:

A bit of an early gift (sneak preview).

In this release you’ll also see the new Linux installation scripting.

Please create a fresh thread and ping me (@chuckpa) if there are any issues.
There might be a few but hoping none.