-
Notifications
You must be signed in to change notification settings - Fork 347
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
Regressed deinterlacing support as compared to i965-va-driver #804
Comments
thanks reporting, one question: are you using Bob DI or some advance DI? |
VLC doesn't seem to give me an option, but with Kodi I have tried both Bob and Motion-Adaptive and I see the same results with both. |
@FurongZhang , @Jister could you help to check it |
I noticed the same issue. I just tested 19.4.0r on Coffee Lake with ENABLE_NONFREE_KERNELS=ON . Motion Adaptive deinterlace looks exactly the same as Bob in Kodi. I notice the flickering line at the top of the screen. Motion-Compensated deinterlacing is not available. i965-va-driver presents Bob, Motion-Adaptive and Motion-Compensated. Motion-Adaptive and Motion-Compensated look much better, and don't have he characteristic Bob artifacts that intel-media-driver does. |
I have an example file, but it is too large to upload here. Is there any place you would prefer me to put it? |
Here's a clip from a recording that shows the issue. I just took the first 6 MiB of the TS file: Reproduction steps: Look at the text. Notice that it bobs up and down like bob deinterlace i965 with the VAAPI bob deinterlacer The hardware is Intel Core i7-8700K UHD Graphics 630. |
This might be the same issue as #640 . However, that one mentions that the reference frames aren't passed in VAProcPipelineParameterBuffer. I checked mpv, kodi and gstreamer. All of them are passing reference frames in VAProcPipelineParameterBuffer. |
The driver defines DDI_CODEC_NUM_BK_REF and DDI_CODEC_NUM_FWD_REF as 0. That's why the reference frames aren't passed. The driver reports that max number of FWD and BK references as 0 in DdiMedia_QueryVideoProcPipelineCaps. |
This doesn't seem to have any effect for me. I still get 60fps with shimmering in VLC and alternating between 30fps and 60fps with no option for motion-compensated deinterlacing in Kodi. |
With that patch both VLC and Kodi crash with a segmentation fault as soon as the video starts playing. That is probably because I am using 19.4 and not git master, but I'm not in a position to be able to try git master easily right now. Sorry. Perhaps @yasij can? |
It'll be a few days before I can find time to test it, but I'll try it. |
I just tried #820 on top of git master. motion-adaptive still has bad bob artifacts on the sample I submitted, and motion-compensated is not presented as an available option in kodi with iHD (but is with intel-vaapi-driver). |
I'll check this again tonight. I might have forgotten to git commit after git apply of that patch before generating the archive to build the package. |
I just tried it with #820 actually applied this time. It crashes at media_driver/linux/common/vp/ddi/media_libva_vp.c:2212 because to pSrc->pDeinterlaceParams is NULL. Did you test this before sending it out? |
I fixed the crash by moving the allocate for pSrc->pDeinterlaceParams before the switch: Now both MADI and MCDI are available in Kodi. The text bobbing is gone, and some content looks better. However, the sample I posted above plays back extremely choppy in mpv and kodi with iHD. I will note this particular clip is a PAFF video recorded from TV. Can the iHD deinterlacer handle PAFF properly? |
@yasij Thanks for your debugging. For PAFF video, can i965 driver playback normally? What parameters will app pass to driver for such video? |
Yes, the i965 driver plays it back normally. There was a discussion about PAFF in Kodi a while ago when it was not playing correctly. See: xbmc/xbmc#15817 and the code change: xbmc/xbmc#15830 |
Is there an update on the status of this? #820 does allow MADI and MCDI to work, so I think it should be merged. A follow up issue can be created to fix the problems with PAFF. |
#820 will be merged after some test. |
Any progress on getting this merged? |
WIP, under internal test, will merge once test done. |
I tried #820 with https://github.com/intel/media-driver/files/4075058/0001-Allocate-pDeinterlaceParams-before-using-it.patch.txt but MADI and MCDI still don't appear in Kodi. Tested with Kodi 19 current master. |
@XinfengZhang @FurongZhang @LhGu any progress on this? It has been nearly 4.5 years since this was reported. If you won't merge #1162 (which works), why not devise a more suitable fix? |
I am experiencing the second issue described by the OP on a alder lake GPU with kodi. |
Are you able to provide any updates on fixes for this issue? This issue is almost 5 years old |
The devs are able to fix it , The patch is available. But they see it as a "minor" issue, even so all satellite tv programms in HD+ transmit in interlaced ^^ . No idea whats "minor" about it. LibreElec is patching it with the existing , non merged patch and im doing it since over a year as well. Maybe we should fork the repo in order to get it corrected |
We should try to contact someone higher up at Intel regarding this. This is not a minor issue. Someone is obviously not doing their job. |
I whole-heartedly agree. I recently moved from LibreELEC to a pure Arch Linux installation and immediately noticed poor results in interlaced content... Took quite some time and research to stumble upon this thread after spotting that LE were patching their Intel-media-driver package. I then spent (even more) time figuring out how to patch and build my own version of the intel media driver on Arch, which did (of course) resolve the problem. How this issue has been around so long without the tried-and-tested known working patch being merged is quite beyond me. Shame on you intel!!! |
Actually, I am not the owner of this issue and fix merging does not depend on me. As I know, this fix is not enough and will cause other issues in some tests. It is documented in intel known issue list. https://github.com/intel/media-driver/wiki/Existing-Known-Issue-List#video-processing-forward-and-backward-reference |
OK, but it is approaching 5 years without a fix. The comments in this issue and related pull request prove that there is a real impact. What is the blocker exactly? Are there plans for a fix at all? Can this be escalated internally? Am I eligible for a refund on my intel boxes if there are no serious plans for a fix? |
there are always excuses and fingerpointing somewhere else, but nothing happens. fact is that LibreElec users dont face any issue and im running Kodi on Ubuntu with latest intel-media-driver releases patched also not seeing any issues but i do bet on that nothing will be happening again because:
if i wouldnt be affected , i would fall of my seat because im laughing so hard |
Does anyone have any pointers on how to compile the media-driver with patch applied on ubuntu? I can compile the master branch of the media-driver on ubuntu 22.04 successfully by following the instructions in the readme, but when I apply the patches to master compilation fails. I have also tried pulling Jister's fork and ADI branch (which contains an older ersion of media-driver) and compiling, but I get the same error. The majority of my use of an intel igpu is watching interlaced content, so a 12th gen cpu has been a downgrade compared to a gemini lake cpu. Any help is greatly appreciated! |
@teeedubb , sure, we will rebase Jason's PR based on the latest code. I have requested my colleague to rebase Jason's PR. It will need 1-2 days. |
Are there any updates on the rebase? |
I'm not sure if #1162 needs the rebase. No compile errors in LibreELEC build system. |
I get a compile error with the patch applied, without the patch media-driver compiles successfully. I have tried on ubuntu 22.04 and 24.04 on multiple machines and get the same. I use master branch and compile libva and gmmlib as per the included instructions. Steps I follow for applying the patch + compiling and error I get are below.
GCC version info from ubuntu 22.04:
I did search the cscMatrix error and found this, tried what it mentions, but it did not work. This is all above my head unfortunately. If anyone has any pointers on how to compile I would really appreciate it. |
The patch for this bug seems to have been applied in 8017d9c! |
Yes. This issue is resolved by the patch 8017d9c. |
I have tried out media-driver 19.3.x on a few systems with Broadwell and Skylake CPUs (Specifically, HD Graphics 5500 and Iris 540) (reproduced with Linux 5.3, 5.4, and 5.5-rc) and have found that the hardware deinterlacing support doesn't work as well compared to the i965-va-driver. Here's what I have found:
I apologize for not including any more information with this report, but there doesn't seem to be anything relevant in the logging output from either application and I'm not sure what else would be helpful. I will certainly provide any requested information though. Thanks!
The text was updated successfully, but these errors were encountered: