On 4/25/22 09:23, Mohamad Al-Jaf wrote:
On Sat, Apr 23, 2022 at 5:05 AM Mohamad Al-Jaf mohamadaljaf@gmail.com wrote:
On Fri, Apr 22, 2022 at 12:57 AM Nikolay Sivov nsivov@codeweavers.com wrote:
Looks like it will fail anyway later, on ID3D11VideoDevice, or decoder creation.
Do you see a way to prevent this? This isn't something I'm familiar with so I can't work on this part unless you think it's trivial to fix. The stub is enough to get it to this point and that's all I'm capable of at the moment. Still, it spawns a GPU process when I run it and play videos so I don't know how it's using hardware acceleration if it seemingly fails.
I'd appreciate a response, Nikolay. If you were looking into this then it's fine to not respond until you're done, but you have a tendency to abandon conversations.
I don't see what's left there to discuss. I explained how it works already, and how it does in wine.
If you want to study how d3d video decoding/mixing is exposed on Windows, and how we could map that to Linux equivalent API (or even better to Vulkan directly), I can only encourage that.
Also, just because you think it fails later doesn't mean this dll shouldn't be added. It's at least a start.
It doesn't matter what I think. The fact is, this stub does not improve CEF behavior, and doesn't make it any easier to implement missing functionality later.
Something is better than nothing.
This is not always the case, no.
I've brought this issue to light and this should matter. If you'd like to teach me how to further develop it, I'd be interested in learning. Otherwise, adding the dll is all I can do at the moment.
I definitely won't have time for that.
After searching some more, I found a CrossOver user that wants the dlls msmpeg2vdec and msvproc for their software.[1]
What does this have to do with anything?
And another CrossOver user that says videos are not working in the games Trails in the Sky and Monster Train. Both of these games try to load msmpeg2vdec.[2]
In Proton:
- Far Cry 4 loads this dll[3]
- Assassins Creed Origins loads this dll[4]
In these games, it looks like it's the UPlay launcher that's loading the dll so it's like CEF. In this case, since game launchers tend to play videos, it's needed to prevent high CPU usage which can heat up some people's machines and/or drain battery life, like laptops and the Steam Deck.
And this stub dll helps with any of that? Like you already found out, CEF is fine with is it missing.
Some of these may or may not require msmpeg2vdec with Wine, but they likely use it. Perhaps the native Media Foundation is codependent on the dll, but further testing is required.
- Shadows Awakening black screen is solved with msmpeg2vdec[5]
- The Dark Pictures Anthology: Man of Medan videos only work with msmpeg2vdec[6]
- Blair Witch cutscenes only work with msmpeg2vdec[7]
- Fairy Fencer F Advent Dark Force cutscenes only work with msmpeg2vdec[8]
- ARAYA is completely broken unless native MF is used, including msmpeg2vdec[9]
- Danganronpa V3: Killing Harmony works with msmpeg2vdec[10]
- Blair Witch does not start unless msmpeg2vdec is used[11]
I checked a few, they were about installing native components, that I are not redistributable as far as I know.
[1] https://www.codeweavers.com/support/forums/general?t=27;forumcurPos=0;msg=25... [2] https://www.codeweavers.com/support/forums/general/?t=27;mhl=252167;msg=2521... [3] https://github.com/ValveSoftware/Proton/issues/2143 [4] https://github.com/ValveSoftware/Proton/issues/928#issuecomment-1081056774 [5] https://github.com/ValveSoftware/Proton/issues/1102#issuecomment-419678627 [6] https://www.protondb.com/app/939850#ntDBsW3V8 [7] https://www.protondb.com/app/1092660#fZwEEAGvDb [8] https://www.protondb.com/app/524580#xUZjNgNSWS [9] https://www.protondb.com/app/466740#1FNdGj0V7G [10] https://github.com/ValveSoftware/Proton/issues/838#issuecomment-447379664 [11] https://github.com/ValveSoftware/Proton/issues/3174 -- Kind regards, Mohamad