Nevcairiel / LAVFilters

LAV Filters - Open-Source DirectShow Media Splitter and Decoders
GNU General Public License v2.0
7.41k stars 787 forks source link

Video playback crashes when using "Copy back" #413

Open mr-berndt opened 3 years ago

mr-berndt commented 3 years ago

Hello there!

I have crashes when decoding in "Copy back" mode. I am using LAVFilters in combination with madVR under Kodi-DSPlayer and a NVIDIA GTX1080.

As Hardware decoder I set D3D11 and as Hardware device I select the NVIDIA GTX1080, which leads to Copy back. With this combination playback crashes randomly, sometimes right away, other times after 6 or so hours.

When using native mode (HW selection: "Automatic") I do not get any crashes.

I need copy back, since madVR is only able to detect black borders and crop accordingly in this mode.

To find out for sure, if the issue is caused by LAVFilters, I am looking for a way to run LAVFilter as kind of a standalone decoder. Is there such a possibility?

Further I'd like to know, if I have any way of generating LAVFilter-specific logfiles.

RAM, CPU and GPU are heavily stress-tested and passed each and every test, so I assume the hardware and Windows itself are stable. Windows and GPU-Drivers are all up to date, as well as my LAVFilter installation, which btw. is "external" from Kodi's point of view, set up with media rules which point to the LAVFilters installation.

Any help would be greatly appreciated!

clsid2 commented 3 years ago

Double check that you have LAV version 0.75, which was released two weeks ago.

Test if it also happens with DXVA2 copyback. There is no benefit in using D3D11 if you use copyback mode.

mr-berndt commented 3 years ago

I just updated to 0.75 recently, the problem didn't go away.

I need D3D11 Copyback, because Kodi crashes all of the time, when I use DXVA Copy-back with madVR 3DLUTs. No chance for me to resolve this, I tried..

clsid2 commented 3 years ago

You need to look in the Windows Event Viewer. You should be able to find some details about the crashes there. Look at the crashing module. That is component in which the crash occurred. If that points to for example the graphics driver, then it is unlikely that the bug is caused by LAVFilters.

mr-berndt commented 3 years ago

OK. Besides, do I have any way to test LAVFilters standalone? I come from the Linux world. There I would simply run e. g. ffmpeg file.mkv -o /dev/null or something. Anything similar I could build in this case under Windows?

clsid2 commented 3 years ago

Not possible. It needs a player and a video renderer to test hardware decoding.

ale5000-git commented 3 years ago

Maybe this can give more info: https://bluesky-soft.com/en/DXVAChecker.html

elwongest commented 3 years ago

You can test directshow filters using graphstudionext. Trying different source and renderer filters.