Closed Bonfra04 closed 9 months ago
Can you try to adding an environment var D3D11_ZERO_COPY=0
and run again? I tried to improve performance recently, but not perfect for some gpus.
I added the variable both to Windows system-wide env variables and directly passed it to to flutter with --dart-define=D3D11_ZERO_COPY=0
but the issue persists.
Anyway, I forgot to mention that all the tests I've run were on an Nvidia RTX 3060 and an Nvidia RTX 3050 Mobile.
same as #7 . I will test RTX 3050 Mobile
I tried to read it with google translate so excuse me if I misunderstood something, but it appears that the problem there is random squares of content missing or not being rendered? Here is the full frame going missing (and the stream is in 720p in my case)
So... I continued playing around with parameters and things and I noticed that if I set the video.decoders
's first entry to DXVA
(I think it takes precedence 'cause it's first) It does solve the issue. I had to also insert FFmpeg as a second entry in the list to correctly support linux too but it doesn't count since FFmpeg doesn't work on windows. Basically i tried every single decoder and this one seems to be the only one that works.
registerWith(options: {'platforms': [ 'linux', 'windows' ], 'video.decoders': [ 'DXVA', 'FFmpeg' ]});
In my specific case, the issue can be considered closed with the fix being: "use DXVA as video decoder under windows" but in general all other decoders appear to have the flickering problem. If you believe more tests are to be performed to better examine this thing please tell me if I can help, otherwise close the issue :)
try fvp 0.14.0
Sorry for the late response, nope the video stays completely dark and doesn't even start playing with version 0.14.0. I tried both with and without overriding the custom encoders and the D3D11_ZERO_COPY env variable. So in a way it's behaving worse than the previous version :(
i need your log
should be fixed in master branch
I'm not sure if this issue is directly caused by the FVP implementation or if it is something to do with the video player itself. I only registered with platforms Windows and, on mobile (where FVP is not active) it works fine. I'm guessing so it's an issue with FVP but correct me if I'm wrong.
Context: I'm streaming an m3u8 file (from a server that I have zero knowledge or control over) in a Flutter video player. I also tested without any fancy wrapper like Chewie and the problem persists. (anyway this is specific code I'm running).
Every time I overload the application with too many update states (like for example moving the mouse, pressing some keys or things like that) the video starts flickering. By flickering I mean that the surface where the media is rendered becomes transparent and any widget behind it is visible for some frames. This issue is not very noticeable in a light weight application. I think it's important to note that this happens only while the video is playing and not while it's paused.
Here is a video showing the thing I tried to describe above: recording-2024-01-29-00-26-28.webm Obviously now that I have to show it, it has become a lot less prominent than how it is usually but this is usually much worse.
Log