SuRGeoNix / Flyleaf

Media Player .NET Library for WinUI 3/ WPF/WinForms (based on FFmpeg/DirectX)
GNU Lesser General Public License v3.0
715 stars 101 forks source link

win7 renderer Initialization failed #307

Closed swimfish09 closed 1 year ago

swimfish09 commented 1 year ago

use master latest code.


18.45.16.464 | Info  | [FlyleafEngine] Audio Devices
{0.0.0.00000000}.{788a75c5-203e-4fec-b488-39903aa4162c} |  (Realtek High Definition Audio) *

18.45.16.472 | Info  | [FlyleafEngine] FlyleafLib 3.7.17
18.45.16.476 | Info  | [FlyleafEngine] Loading FFmpeg libraries from 'C:\Users\xxx\Desktop\net6.0-windows\medialib\x64'
18.45.16.539 | Info  | [FlyleafEngine] FFmpeg Loaded (Location: C:\Users\xxx\Desktop\net6.0-windows\medialib\x64, Ver: 60.3.100) [Devices: no, Filters: yes]
18.45.16.553 | Info  | [FlyleafEngine] GPU Adapters
[#1] Intel Intel(R) HD Graphics 520          [ID: 6422  , LUID: 62919 , DVM: 192 MB  , DSM: 0 B     , SSM: 1.59 GB]

18.45.16.569 | Info  | [FlyleafEngine] Plugin loaded (OpenDefault - 3.7.17.0)
18.45.16.569 | Info  | [FlyleafEngine] Plugin loaded (OpenSubtitles - 3.7.17.0)
18.45.16.569 | Info  | [FlyleafEngine] Plugin loaded (StreamSuggester - 3.7.17.0)
18.45.16.569 | Info  | [FlyleafEngine] [PluginHandler] No external plugins found
18.45.16.570 | Info  | [FlyleafEngine] Thread started
18.45.16.793 | Debug | [#1]     [Player        ] Creating Player (Usage = AVS)
18.45.16.823 | Debug | [#1]     [Renderer      ] Initializing
18.45.16.834 | Error | [#1]     [Renderer      ] Initialization failed (The given key '0' was not present in the dictionary.)
18.45.16.835 | Debug | [#1]     [Renderer      ] Disposing
18.45.16.838 | Info  | [#1]     [Renderer      ] Disposed
18.45.16.840 | Debug | [#1]     [Player        ] Created
18.45.16.843 | Info  | [#1]     [Player        ] Opening ./Sample.mp4
18.45.16.844 | Debug | [#1]     [Player        ] Initializing
18.45.16.850 | Debug | [#1]     [Decoder: Video] Stopped -> Stopped
18.45.16.850 | Info  | [#1]     [Decoder: Video] Disposed
18.45.16.853 | Debug | [#1]     [Player        ] Initialized
18.45.16.858 | Debug | [#1]     [FlyleafHost #1] Assign Player #1
18.45.16.859 | Debug | [#1]     [Renderer      ] Initializing
18.45.16.865 | Error | [#1]     [Renderer      ] Initialization failed (The given key '4294967296' was not present in the dictionary.)
18.45.16.865 | Debug | [#1]     [Renderer      ] Disposing
18.45.16.866 | Info  | [#1]     [Renderer      ] Disposed
18.45.16.869 | Debug | [#1]     [Renderer      ] Initializing
18.45.16.875 | Error | [#1]     [Renderer      ] Initialization failed (The given key '8589934592' was not present in the dictionary.)
18.45.16.875 | Debug | [#1]     [Renderer      ] Disposing
18.45.16.875 | Info  | [#1]     [Renderer      ] Disposed
18.45.16.877 | Info  | [#1]     [Renderer      ] Initializing 8-bit swap chain with 2 buffers [Handle: 1311600]
18.45.16.877 | Error | [#1]     [Renderer      ] [SwapChain] Initialization failed (Object reference not set to an instance of an object.)
18.45.17.010 | Info  | [#1]     [PluginHandler ] [OpenDefault] Open Success
18.45.17.011 | Info  | [#1]     [PluginHandler ] SuggestItem #0 - Sample
18.45.17.013 | Debug | [#1]     [Decoder: Video] Stopped -> Stopped
18.45.17.013 | Info  | [#1]     [Decoder: Video] Disposed
18.45.17.014 | Info  | [#1]     [PluginHandler ] [OpenDefault] Open Item (0) Success
18.45.17.019 | Debug | [#1]     [Demuxer:  Main] Stopped -> Opening
18.45.17.026 | Debug | [#1]     [Demuxer:  Main] Ignoring format option reconnect
18.45.17.026 | Debug | [#1]     [Demuxer:  Main] Ignoring format option reconnect_streamed
18.45.17.026 | Debug | [#1]     [Demuxer:  Main] Ignoring format option reconnect_delay_max
18.45.17.026 | Debug | [#1]     [Demuxer:  Main] Ignoring format option user_agent
18.45.17.026 | Debug | [#1]     [Demuxer:  Main] Ignoring format option rtsp_transport
18.45.17.072 | Info  | [#1]     [Demuxer:  Main] Format Context Info 
[Format  ] QuickTime / MOV/mov,mp4,m4a,3gp,3g2,mj2 | mov,mp4,m4a,3gp,3g2,mj2,psp,m4b,ism,ismv,isma,f4v,avif | 00:00:00/00:00:05.3120000 | 00:00:00/00:00:05.3120000
[Video #0] h264 yuv420p 1280x720 @ 25 | [Color: BT709] [BR: 1205959] | 00:00:00/00:00:05.2800000 | 00:00:00/00:00:05.2800000
[Audio #1-und] aac fltp@16 48KHz 5.1 | [BR: 384828] | 00:00:00/00:00:05.3119999 | 00:00:00/00:00:05.3119999

18.45.17.072 | Debug | [#1]     [Demuxer:  Main] Opening -> Stopped
18.45.17.076 | Debug | [#1]     [Decoder: Video] Stopped -> Opening
18.45.17.078 | Debug | [#1]     [Renderer      ] Initializing
18.45.17.084 | Error | [#1]     [Renderer      ] Initialization failed (The given key '12884901888' was not present in the dictionary.)
18.45.17.084 | Debug | [#1]     [Renderer      ] Disposing
18.45.17.084 | Info  | [#1]     [Renderer      ] Disposed
18.45.17.084 | Debug | [#1]     [Decoder: Video] VA Disabled
18.45.17.088 | Info  | [#1]     [Demuxer:  Main] [Video #0] Enabled
18.45.17.088 | Debug | [#1]     [Decoder: Video] Opening -> Stopped
18.45.17.089 | Info  | [#1]     [DecoderContext] [OpenVideoStream] #_ => #0
18.45.17.092 | Info  | [#1]     [DecoderContext] [OpenPlaylistItem] None => Sample
18.45.17.093 | Info  | [#1]     [DecoderContext] [Open] ./Sample.mp4 
18.45.17.097 | Debug | [#1]     [Player        ] OnBufferingStarted
18.45.17.098 | Debug | [#1]     [Demuxer:  Main] Stopped -> Running
18.45.17.099 | Debug | [#1]     [Decoder: Video] Stopped -> Running
18.45.17.099 | Debug | [#1]     [Demuxer:  Main] Thread started (Running)
18.45.17.099 | Debug | [#1]     [Decoder: Video] Thread started (Running)
18.45.17.105 | Debug | [#1]     [Demuxer:  Main] Running -> Ended
18.45.17.105 | Debug | [#1]     [Demuxer:  Main] Thread stopped (Ended)
18.45.17.147 | Error | [#1]     [Decoder: Video] [Pixel Format] Unknown
18.45.17.147 | Debug | [#1]     [Decoder: Video] Running -> Stopping
18.45.17.147 | Debug | [#1]     [Decoder: Video] Stopping -> Stopped
18.45.17.147 | Debug | [#1]     [Decoder: Video] Thread stopped (Stopped)
18.45.17.149 | Warn  | [#1]     [Player        ] Video Exhausted
18.45.17.159 | Info  | [#1]     [Player        ] Stopped
18.45.17.159 | Warn  | [#1]     [Player        ] [MediaBuffer] No video frame
18.45.17.159 | Info  | [#1]     [Player        ] Finished -> 00:00:00
18.45.17.160 | Debug | [#1]     [Player        ] OnBufferingCompleted (Error: Buffering failed)
18.45.17.161 | Debug | [#1]     [Player        ] [SCREAMER] Finished (Status: Paused, Error: Playback stopped unexpectedly)
18.45.23.339 | Debug | [#1]     [FlyleafHost #1] De-assign Player #1
18.45.23.340 | Debug | [#1]     [FlyleafHost #1] Disposed
18.45.23.349 | Debug | [#1]     [Player        ] Initializing
18.45.23.355 | Debug | [#1]     [Decoder: Video] Stopped -> Stopped
18.45.23.355 | Info  | [#1]     [Decoder: Video] Disposed
18.45.23.358 | Debug | [#1]     [Demuxer:  Main] Ended -> Stopped
18.45.23.358 | Info  | [#1]     [Demuxer:  Main] Disposed
18.45.23.358 | Debug | [#1]     [Player        ] Initialized
18.45.23.358 | Info  | [#1]     [Player        ] Disposed
SuRGeoNix commented 1 year ago

@swimfish09 I cannot reproduce in Win8 that I've spare. Which was the last version was working?

swimfish09 commented 1 year ago

@SuRGeoNix Maybe this commit https://github.com/SuRGeoNix/Flyleaf/commit/0f96ffa7cc1fb2bfe71bb643779929f20b7e554e

SuRGeoNix commented 1 year ago

@swimfish09 That does not make sense, you told me that was the fix for another issue here https://github.com/SuRGeoNix/Flyleaf/issues/292

I can't test it so I will need you to confirm which commit did it.

swimfish09 commented 1 year ago

@SuRGeoNix Sorry for I have only tried with commit https://github.com/SuRGeoNix/Flyleaf/commit/0f96ffa7cc1fb2bfe71bb643779929f20b7e554e. After this commit,the lib can not work with win7 any more.


20.39.05.416 | Info  | [FlyleafEngine] Audio Devices
{0.0.0.00000000}.{788a75c5-203e-4fec-b488-39903aa4162c} | (Realtek High Definition Audio) *

20.39.05.425 | Info  | [FlyleafEngine] FlyleafLib 3.7.15
20.39.05.430 | Info  | [FlyleafEngine] Loading FFmpeg libraries from 'C:\Users\xxx\Desktop\net6.0-windows\medialib\x64'
20.39.05.498 | Info  | [FlyleafEngine] FFmpeg Loaded (Location: C:\Users\xxx\Desktop\net6.0-windows\medialib\x64, Ver: 60.3.100) [Devices: no, Filters: yes]
20.39.05.515 | Info  | [FlyleafEngine] GPU Adapters
[#1] Intel Intel(R) HD Graphics 520          [ID: 6422  , LUID: 62919 , DVM: 192 MB  , DSM: 0 B     , SSM: 1.59 GB]

20.39.05.536 | Info  | [FlyleafEngine] Plugin loaded (OpenDefault - 3.7.15.0)
20.39.05.536 | Info  | [FlyleafEngine] Plugin loaded (OpenSubtitles - 3.7.15.0)
20.39.05.536 | Info  | [FlyleafEngine] Plugin loaded (StreamSuggester - 3.7.15.0)
20.39.05.536 | Info  | [FlyleafEngine] [PluginHandler] No external plugins found
20.39.05.538 | Info  | [FlyleafEngine] Thread started
20.39.05.825 | Debug | [#1]     [Player        ] Creating Player (Usage = AVS)
20.39.05.856 | Debug | [#1]     [Renderer      ] Initializing
20.39.05.877 | Debug | [#1]     [Renderer      ] GPU Adapter
Intel Intel(R) HD Graphics 520          [ID: 6422  , LUID: 62919 , DVM: 192 MB  , DSM: 0 B     , SSM: 1.59 GB]
[Output #1] \\.\DISPLAY1         [Id: 0     , Top: 0   , Left: 0   , Width: 1366, Height: 768 , Ratio: [683:384]

20.39.05.901 | Error | [#1]     [Renderer      ] D3D11 Video Processor Initialization Failed
20.39.05.906 | Info  | [#1]     [Renderer      ] Initialized with Feature Level 11.0
20.39.05.908 | Debug | [#1]     [Player        ] Created
20.39.05.911 | Info  | [#1]     [Player        ] Opening C:\Users\liang\Desktop\net6.0-windows\Sample.mp4
20.39.05.912 | Debug | [#1]     [Player        ] Initializing
20.39.05.918 | Debug | [#1]     [Decoder: Video] Stopped -> Stopped
20.39.05.918 | Info  | [#1]     [Decoder: Video] Disposed
20.39.05.919 | Debug | [#1]     [Player        ] Initialized
20.39.05.924 | Debug | [#1]     [FlyleafHost #1] Assign Player #1
20.39.05.940 | Info  | [#1]     [Renderer      ] Initializing 8-bit swap chain with 2 buffers [Handle: 4129746]
20.39.05.942 | Warn  | [#1]     [Renderer      ] Device Remove Reason = 。

20.39.05.942 | Warn  | [#1]     [Renderer      ] [SwapChain] Initialization failed (HRESULT: [0x887A0001], Module: [Vortice.DXGI], ApiCode: [DXGI_ERROR_INVALID_CALL/InvalidCall]). Failling back to WARP device.
20.39.05.942 | Debug | [#1]     [Renderer      ] Disposing
20.39.05.946 | Info  | [#1]     [Renderer      ] Disposed
20.39.05.946 | Debug | [#1]     [Renderer      ] Initializing
20.39.05.953 | Error | [#1]     [Renderer      ] Initialization failed (The given key '0' was not present in the dictionary.)
20.39.05.953 | Debug | [#1]     [Renderer      ] Disposing
20.39.05.953 | Info  | [#1]     [Renderer      ] Disposed
20.39.06.076 | Info  | [#1]     [PluginHandler ] [OpenDefault] Open Success
20.39.06.077 | Info  | [#1]     [PluginHandler ] SuggestItem #0 - Sample
20.39.06.079 | Debug | [#1]     [Decoder: Video] Stopped -> Stopped
20.39.06.079 | Info  | [#1]     [Decoder: Video] Disposed
20.39.06.080 | Info  | [#1]     [PluginHandler ] [OpenDefault] Open Item (0) Success
20.39.06.085 | Debug | [#1]     [Demuxer:  Main] Stopped -> Opening
20.39.06.095 | Debug | [#1]     [Demuxer:  Main] Ignoring format option reconnect
20.39.06.095 | Debug | [#1]     [Demuxer:  Main] Ignoring format option reconnect_streamed
20.39.06.095 | Debug | [#1]     [Demuxer:  Main] Ignoring format option reconnect_delay_max
20.39.06.095 | Debug | [#1]     [Demuxer:  Main] Ignoring format option user_agent
20.39.06.095 | Debug | [#1]     [Demuxer:  Main] Ignoring format option rtsp_transport
20.39.06.144 | Info  | [#1]     [Demuxer:  Main] Format Context Info 
[Format  ] QuickTime / MOV/mov,mp4,m4a,3gp,3g2,mj2 | mov,mp4,m4a,3gp,3g2,mj2,psp,m4b,ism,ismv,isma,f4v,avif | 00:00:00/00:00:05.3120000 | 00:00:00/00:00:05.3120000
[Video #0] h264 yuv420p 1280x720 @ 25 | [Color: BT709] [BR: 1205959] | 00:00:00/00:00:05.2800000 | 00:00:00/00:00:05.2800000
[Audio #1-und] aac fltp@16 48KHz 5.1 | [BR: 384828] | 00:00:00/00:00:05.3119999 | 00:00:00/00:00:05.3119999

20.39.06.144 | Debug | [#1]     [Demuxer:  Main] Opening -> Stopped
20.39.06.148 | Debug | [#1]     [Decoder: Video] Stopped -> Opening
20.39.06.150 | Debug | [#1]     [Renderer      ] Initializing
20.39.06.156 | Error | [#1]     [Renderer      ] Initialization failed (The given key '4294967296' was not present in the dictionary.)
20.39.06.156 | Debug | [#1]     [Renderer      ] Disposing
20.39.06.157 | Info  | [#1]     [Renderer      ] Disposed
20.39.06.158 | Debug | [#1]     [Decoder: Video] Opening -> Stopped
20.39.06.158 | Info  | [#1]     [Decoder: Video] Disposed
20.39.06.159 | Info  | [#1]     [DecoderContext] [OpenVideoStream] #_ => #0 [Error: Failed to open video stream #0
[Video Setup] Object reference not set to an instance of an object.]
20.39.06.160 | Info  | [#1]     [DecoderContext] [OpenPlaylistItem] None => Sample [Error: Failed to open video stream #0
[Video Setup] Object reference not set to an instance of an object.]
20.39.06.160 | Info  | [#1]     [DecoderContext] [Open] C:\Users\xxx\Desktop\net6.0-windows\Sample.mp4  [Error: Failed to open video stream #0
[Video Setup] Object reference not set to an instance of an object.]
20.39.09.124 | Debug | [#1]     [FlyleafHost #1] De-assign Player #1
20.39.09.125 | Debug | [#1]     [FlyleafHost #1] Disposed
20.39.09.132 | Debug | [#1]     [Player        ] Initializing
20.39.09.134 | Debug | [#1]     [Demuxer:  Main] Stopped -> Stopped
20.39.09.134 | Info  | [#1]     [Demuxer:  Main] Disposed
20.39.09.134 | Debug | [#1]     [Player        ] Initialized
20.39.09.135 | Info  | [#1]     [Player        ] Disposed
SuRGeoNix commented 1 year ago

@swimfish09 Before that commit you were getting the error (from #292)

Initialization failed (Unable to load DLL 'dcomp.dll' or one of its dependencies:  (0x8007007E))

So I'm really confused

swimfish09 commented 1 year ago

Yes, now it is a different issue.

SuRGeoNix commented 1 year ago

@swimfish09 sorry for telling this, but I will not waste my time with Win7. Feel free to debug it/fix it and create a pull request. As I've told you in the past, I'm not planning to support Win7.