Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VP] Use forward_references as the reference for ADI #1162

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Jister
Copy link
Contributor

@Jister Jister commented Mar 18, 2021

VAAPI define forward_references as past referene frame, but vphal regard forward reference as future reference frame. This change will only correct the behavior in DDI level to map forward_references to VPHAL_SURFACE.pBwdRef, and backward_references to VPHAL_SURFACE.pFwdRef

VAAPI define forward_references as past referene frame, but vphal regart forward reference as future reference frame. This change will only correct the behavior in DDI level to map forward_references to VPHAL_SURFACE.pBwdRef, and backward_references to VPHAL_SURFACE.pFwdRef
@chcore
Copy link

chcore commented May 10, 2021

Will this be merged at some point? It looks like I can't use hardware deinterlacing on Tiger Lake until it is.

@smp79
Copy link

smp79 commented Oct 21, 2021

Hope this will get merged some day.

@XinfengZhang
Copy link
Contributor

@FurongZhang , please take a look, if no other concern , we should start the merging process. suppose validation reference also need be updated.

@chcore
Copy link

chcore commented Nov 24, 2021

Almost 2 years now since the issue has been reported, with no fix in sight.

@bkuhls
Copy link
Contributor

bkuhls commented Nov 30, 2021

ping

@FurongZhang
Copy link
Contributor

The original author will not work on this. I picked up this and will follow up. Will run full test and check if there is any regression.

@chcore
Copy link

chcore commented Feb 24, 2022

Any plans to merge this? I would love to stop having to compile the driver myself

@heitbaum
Copy link
Contributor

@FurongZhang - as fyi - this has been part of the LibreELEC code base for 12 months now: LibreELEC/LibreELEC.tv@7fc1462 Hope to see it in the official release in the near future.

@FurongZhang FurongZhang requested a review from LhGu May 19, 2022 12:53
@smp79
Copy link

smp79 commented Oct 27, 2022

Still no merge?

@bkuhls
Copy link
Contributor

bkuhls commented Jan 18, 2023

gentle ping as a reminder for this PR ;)

@smp79
Copy link

smp79 commented Jan 18, 2023

I don't understand either why this PR is ignored (for years now). ADI is an important feature which is completely broken at this point.

@bkuhls
Copy link
Contributor

bkuhls commented Feb 25, 2023

monthly ping as a reminder for this PR ;)

@bkuhls
Copy link
Contributor

bkuhls commented Apr 28, 2023

monthly ping as a reminder for this PR ;)

@Sherry-Lin Sherry-Lin added the VP Video Processing label May 6, 2023
@LhGu
Copy link
Member

LhGu commented May 8, 2023

@chcore
Copy link

chcore commented May 9, 2023

@LhGu by "close this pr" do you mean you are going to merge it? If not, can you please explain why?

@LhGu LhGu added the Confirmed Confirmed as issue or feature label May 9, 2023
@bkuhls
Copy link
Contributor

bkuhls commented Jul 14, 2023

monthly ping as a reminder for this PR ;)

1 similar comment
@bkuhls
Copy link
Contributor

bkuhls commented Aug 8, 2023

monthly ping as a reminder for this PR ;)

@Simon566
Copy link

ping :-)

this ignorance is really wondering me

@LhGu LhGu removed their request for review May 15, 2024 05:43
@FurongZhang FurongZhang requested review from FurongZhang and removed request for FurongZhang May 21, 2024 02:42
@FurongZhang
Copy link
Contributor

Hi @Simon566 , @bkuhls , @chcore , @smp79 ,
I know ADI is an important feature, hence, Jason provided the patch for this issue a few years ago. We took a few actions to handle this in the past few years, 1) Suggest the developers to pick this PR if they really needs this PR; 2) We put this issue into our known issue list.
In this thread, I saw you took the effort to push this issue. I have a few questions, may I know what product / open source community you are working on? I am trying to understand your request from business point view.

Best regards,
Furong

@Simon566
Copy link

Hi,

any user thats using a intel x86 system with IGPU for watching satellite TV will have issues with interlacing. Also, there is quite alot older video content out there which is interlaced !

in my case its a Kodi /XBMC box on a N5105 CPU. Others are using Libreelec which is basically also the same (XBMC/Kodi) on X86, but they patch the intel driver by default in their repos.

Im already happy with BOB deinterlacing , but advanced deinterlace would even be better

regards,
Simon

@smp79
Copy link

smp79 commented May 21, 2024

in my case its a Kodi /XBMC box on a N5105 CPU

N5105 (Jasper Lake) does not support advanced deinterlacing anyway (hardware limitation), so you are not affected by this issue. The issue affects Tiger Lake/Alder Lake and newer platforms.

@Simon566
Copy link

possible , but without the mentioned patch , which LibreElec uses , VAAPI BOB doesnt work as well ....

@smp79
Copy link

smp79 commented May 21, 2024

BOB looks much worse than MCDI or any other high quality DI method. In your case I recommend disabling VAAPI hw decoding and use software (ff-h264) decoding with BWDIF deinterlace method. BWDIF looks just as good as hardware MCDI.

@Simon566
Copy link

BWDIF hasnt arrived in kodi yet. and decoding h265 in SW is too slow

@smp79
Copy link

smp79 commented May 21, 2024

BWDIF is the default sw deinterlace method since Kodi 21. VAAPI hw acceleration can be disabled only for h264/mpeg-2.

@Simon566
Copy link

oh ok , i got kodi 21 , but i only see bob / deinterlace / vaapi bob

@smp79
Copy link

smp79 commented May 21, 2024

Disable VAAPI acceleration for h264 and mpeg-2, it would default to bwdif.

@Simon566
Copy link

this doesnt work , 4k is too much in h264

@orryverducci
Copy link

Hi @Simon566 , @bkuhls , @chcore , @smp79 , I know ADI is an important feature, hence, Jason provided the patch for this issue a few years ago. We took a few actions to handle this in the past few years, 1) Suggest the developers to pick this PR if they really needs this PR; 2) We put this issue into our known issue list. In this thread, I saw you took the effort to push this issue. I have a few questions, may I know what product / open source community you are working on? I am trying to understand your request from business point view.

Best regards, Furong

@FurongZhang I refer you to my comment on the issue.

This effects everyone who is trying to deinterlace HD or SD broadcast TV content using modern Intel iGPU's and this media driver. Adaptive deinterlacing doesn't work properly and results in a noticeably jittery picture. This worked correctly on the old drivers, and on this driver with this PR.

Naturally the open source media server projects and their users notice this more as they are playing and watching live and recorded broadcast TV channels. Those projects have been able to work around this by providing distributions that include this driver with this PR. But that doesn't help users who are using standard distributions (e.g. Ubuntu) with standard media player or transcoding applications.

As you'll see from my comment this affects both home users and broadcasters (i.e. businesses and customers of Intel server products).

Given this Intel really need to provide a fix for this, otherwise playback or transcoding of interlaced video will remain broken for the majority of users, regardless of software used.

@FurongZhang
Copy link
Contributor

@orryverducci , I fully understood your request.

@xxzandy
Copy link

xxzandy commented Jul 5, 2024

Ping from me. Broadcast TV is still very common media. Without ADI, Intel GPU cannot be used for transcoding with high quality.

@Simon566
Copy link

ping pong

im used to a different kind of quality from intel, wether its Raptor Lake CPUs or their drivers .

@FurongZhang
Copy link
Contributor

Adding @jiafengy1

@bkuhls
Copy link
Contributor

bkuhls commented Aug 5, 2024

afaics the code of this PR was committed to 24.3.1: 8017d9c

@smp79
Copy link

smp79 commented Aug 5, 2024

Yes, at last.

@teeedubb
Copy link

teeedubb commented Aug 5, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Confirmed Confirmed as issue or feature VP Video Processing
Projects
None yet
Development

Successfully merging this pull request may close these issues.