mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
28.3k stars 2.9k forks source link

Getting Failed to create a DXGI 1.6 output interface: No such interface supported (0x80004002) error when opening videos #11206

Closed psatmur closed 1 year ago

psatmur commented 1 year ago

Important Information

Provide following Information:

If you're not using git master or the latest release, update. Releases are listed here: https://github.com/mpv-player/mpv/releases

Reproduction steps

Just opened the video with "mpv "

Expected behavior

Should play video and audio

Actual behavior

Plays only audio

Log file

Make a log file made with -v -v or --log-file=output.txt, paste it to https://0x0.st/ or attach it to the github issue, and replace this text with a link to it.

[cplayer] Command line options: '-v' 'India.The.Modi.Question.S01E01.1080p.HDTV.H264-DARKFLiX[eztv.re].mkv'
[cplayer] mpv 0.35.0 Copyright © 2000-2022 mpv/MPlayer/mplayer2 projects
[cplayer]  built on Mon Nov 14 04:47:57 2022
[cplayer] FFmpeg library versions:
[cplayer]    libavutil       57.42.100
[cplayer]    libavcodec      59.52.102
[cplayer]    libavformat     59.34.101
[cplayer]    libswscale      6.8.112
[cplayer]    libavfilter     8.50.100
[cplayer]    libswresample   4.9.100
[cplayer] FFmpeg version: git-2022-11-14-3ab11dc5b
[cplayer]
[cplayer] Configuration: meson configure build -Dprefix=/__w/mpv-winbuild-cmake/mpv-winbuild-cmake/build64/install/mingw -Dbuildtype=release -Doptimization=3
[cplayer] List of enabled features: av-channel-layout build-date cplayer cuda-hwaccel cuda-interop d3d-hwaccel d3d11 d3d9-hwaccel direct3d dos-paths dvdnav egl-angle egl-angle-win32 egl-helpers ffmpeg ffnvcodec gl gl-dxinterop gl-dxinterop-d3d9 gl-win32 glob glob-win32 gpl iconv javascript jpeg jpegxl lcms2 libarchive libass libavdevice libbluray libm libmpv-shared libplacebo libplacebo-next luajit manpage-build noexecstack openal pdf-build plain-gl rubberband rubberband-3 sdl2 sdl2-audio sdl2-gamepad sdl2-video shaderc spirv-cross stdatomic threads uchardet vapoursynth vector vulkan wasapi win32 win32-desktop win32-executable win32-internal-pthreads zimg zlib
[cplayer] Built with NDEBUG.
[cplayer] Reading config file C:/ProgramData/chocolatey/lib/mpv.install/tools/mpv/mpv.conf
[cplayer] Applying profile 'default'...
[cplayer] Setting option 'v' = '' (flags = 8)
[cplayer] Waiting for scripts...
[osd/libass] libass API version: 0x1600010
[osd/libass] libass source: commit: 3df19c2e809b16c9cf7c925fa3bb573e2e6f4fdd
[osd/libass] Shaper: FriBidi 1.0.12 (SIMPLE) HarfBuzz-ng 5.3.1 (COMPLEX)
[osd/libass] Setting up fonts...
[osd/libass] Using font provider directwrite (with GDI)
[osd/libass] Done.
[cplayer] Set property: shared-script-properties -> 1
[cplayer] Set property: shared-script-properties -> 1
[cplayer] Done loading scripts.
[cplayer] Running hook: ytdl_hook/on_load
[ytdl_hook] ytdl:// hook
[cplayer] Set property: shared-script-properties -> 1
[ytdl_hook] not a ytdl:// url
[cplayer] Set property: shared-script-properties -> 1
[ifo_dvdnav] Opening India.The.Modi.Question.S01E01.1080p.HDTV.H264-DARKFLiX[eztv.re].mkv
[osd/libass] libass API version: 0x1600010
[osd/libass] libass source: commit: 3df19c2e809b16c9cf7c925fa3bb573e2e6f4fdd
[bdmv/bluray] Opening India.The.Modi.Question.S01E01.1080p.HDTV.H264-DARKFLiX[eztv.re].mkv
[file] Opening India.The.Modi.Question.S01E01.1080p.HDTV.H264-DARKFLiX[eztv.re].mkv
[osd/libass] Shaper: FriBidi 1.0.12 (SIMPLE) HarfBuzz-ng 5.3.1 (COMPLEX)
[demux] Trying demuxers for level=normal.
[osd/libass] Setting up fonts...
[mkv] Seeking to 1389968411 to read header element 0x114d9b74.
[file] stream level seek from 131072 to 1389968411
[osd/libass] Using font provider directwrite (with GDI)
[osd/libass] Done.
[mkv] Seeking to 1389837474 to read header element 0x1c53bb6b.
[file] stream level seek from 1389968479 to 1389837474
[mkv] Parsing cues...
[mkv] Seeking to 1389968330 to read header element 0x1254c367.
[file] stream level seek from 1389968479 to 5757
[mkv] All headers are parsed!
[demux] Detected file format: Matroska
[cplayer] Opening done: India.The.Modi.Question.S01E01.1080p.HDTV.H264-DARKFLiX[eztv.re].mkv
[find_files] Loading external files in .
[cplayer] Running hook: ytdl_hook/on_preloaded
[mkv] select track 0
[mkv] select track 1
[cplayer]  (+) Video --vid=1 (*) (h264 1920x1080 25.000fps)
[cplayer]  (+) Audio --aid=1 --alang=eng (*) (aac 2ch 48000Hz)
[cplayer]      Subs  --sid=1 --slang=eng (dvb_subtitle)
[cplayer]      Subs  --sid=2 --slang=eng (subrip)
[vo/gpu] Probing for best GPU context.
[vo/gpu/d3d11] Initializing GPU context 'd3d11'
[vo/gpu/d3d11] Using Direct3D 11 feature level 11_0
[vo/gpu/d3d11] Device Name: NVIDIA GeForce 710A
[vo/gpu/d3d11] Device ID: 10de:1140 (rev a1)
[vo/gpu/d3d11] Subsystem ID: 103c:2af9
[vo/gpu/d3d11] LUID: 000000000000657c
[vo/gpu/d3d11] Initializing SPIR-V compiler 'shaderc'
[vo/gpu/d3d11] Using Direct3D 11.1 runtime
[vo/gpu/d3d11] Maximum Texture2D size: 16384x16384
[vo/gpu/d3d11] D3DCompiler version: 10.0.10240.19265
[vo/gpu/d3d11] Using DXGI 1.2+
[vo/gpu/d3d11] Failed to create a DXGI 1.6 output interface: No such interface supported (0x80004002)
[vo/gpu/d3d11] Selected swapchain format R8G8B8A8_UNORM (28), attempting to utilize it.
[vo/gpu/d3d11] Selected swapchain color space RGB_FULL_G22_NONE_P709 (0), attempting to utilize it.
[vo/gpu/d3d11] Failed to create v4 swapchain for color space configuration (No such interface supported (0x80004002))!
[vo/gpu/d3d11] Using flip-model presentation
[vo/gpu] Testing FBO format rgba16hf
[vo/gpu] Using FBO format rgba16hf.
[vo/gpu] No advanced processing required. Enabling dumb mode.
[vo/gpu/win32] DPI detected from the new API: 96
[vo/gpu/win32] display-fps: 60.000000
[vo/gpu/win32] color-profile: C:\Windows\system32\spool\drivers\color\sRGB Color Space Profile.icm
[vo/gpu] Assuming 60.000000 FPS for display sync.
[vd] Container reported FPS: 25.000000
[vd] Codec list:
[vd]     h264 - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
[vd]     h264_qsv (h264) - H264 video (Intel Quick Sync Video acceleration)
[vd]     h264_cuvid (h264) - Nvidia CUVID H264 decoder
[vd] Opening decoder h264
[vd] No hardware decoding requested.
[vd] Using software decoding.
[vd] Detected 4 logical cores.
[vd] Requesting 5 threads for decoding.
[vd] DR failed - disabling.
[vd] Selected codec: h264 (H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10)
[vf] User filter list:
[vf]   (empty)
[ad] Codec list:
[ad]     aac - AAC (Advanced Audio Coding)
[ad]     aac_fixed (aac) - AAC (Advanced Audio Coding)
[ad] Opening decoder aac
[ad] Requesting 1 threads for decoding.
[ad] Selected codec: aac (AAC (Advanced Audio Coding))
[af] User filter list:
[af]   (empty)
[cplayer] Starting playback...
[vd] Using software decoding.
[vd] Decoder format: 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/auto CL=mpeg2/4/h264
[vd] Using container aspect ratio.
[vf] [in] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] (disabled)
[vf] [autorotate] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [autorotate] (disabled)
[vf] [convert] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [convert] (disabled)
[vf] [out] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[af] [in] 48000Hz stereo 2ch floatp
[af] [userspeed] 48000Hz stereo 2ch floatp
[af] [userspeed] (disabled)
[af] [convert] 48000Hz stereo 2ch floatp
[ao] Trying audio driver 'wasapi'
[ao/wasapi] requested format: 48000 Hz, stereo channels, floatp
[ao/wasapi] No device specified. Selecting default.
[ao/wasapi] Selecting device '{e002b4ba-729d-4ee0-8c07-a0cd92ca1484}' (Speakers (Realtek High Definition Audio))
[ao/wasapi] Monitoring changes in device {0.0.0.00000000}.{e002b4ba-729d-4ee0-8c07-a0cd92ca1484}
[ao/wasapi] Trying stereo float (32/32 bits) @ 48000hz (shared) -> ok
[ao/wasapi] Accepted as stereo float @ 48000hz -> stereo float (32/32 bits) @ 48000hz (shared)
[ao/wasapi] Device period: 10 ms
[ao/wasapi] Buffer frame count: 2400 (50 ms)
[ao/wasapi] IAudioClock::GetFrequency gave a frequency of 384000.
[ao/wasapi] device buffer: 2400 samples.
[ao/wasapi] using soft-buffer of 9600 samples.
[cplayer] AO: [wasapi] 48000Hz stereo 2ch float
[cplayer] AO: Description: Windows WASAPI audio output (event mode)
[autoconvert] inserting resampler
[swresample] format change, reinitializing resampler
[swresample] 48000Hz stereo floatp -> 48000Hz stereo float
[af] [out] 48000Hz stereo 2ch float
[cplayer] VO: [gpu] 1920x1080 yuv420p
[cplayer] VO: Description: Shader-based GPU Renderer
[vo/gpu] reconfig to 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vo/gpu/win32] reset window bounds: 0:-8:1920:1080
[vo/gpu/win32] adjusted window bounds: 71:32:1779:1001
[vo/gpu/win32] resize window: 1779:1001
[vo/gpu/win32] resize window: 1779:1001
[vo/gpu/d3d11] Couldn't resize swapchain: The parameter is incorrect. (0x80070057)
[cplayer] Could not initialize video chain.
[vo/gpu/d3d11] Couldn't resize swapchain: The application made a call that is invalid. Either the parameters of the call or the state of some object was incorrect.
[vo/gpu/d3d11] Enable the D3D debug layer in order to see details via debug messages. (0x887a0001)
[vo/gpu] Resize: 1779x1001
[vo/gpu] Reported display depth: 8
[vo/gpu/win32] uninit
[mkv] deselect track 0
[cplayer] Video: no video
[cplayer] audio ready
[cplayer] starting audio playback
[cplayer] playback restart complete @ 0.000000, audio=playing, video=eof
[cplayer] Set property: shared-script-properties -> 1
[cplayer] Set property: shared-script-properties -> 1

Sample files

Sample files needed to reproduce this issue can be uploaded to https://0x0.st/ or similar sites. (Only needed if the issue cannot be reproduced without it.) Do not use garbage like "cloud storage", especially not Google Drive.

EzeKees commented 1 year ago

You need to update windows, your version (Windows 10 2015 LTSB 1507) is old. The DXGI enhancements were implemented around 2018.

psatmur commented 1 year ago

You need to update windows, your version (Windows 10 2015 LTSB 1507) is old. The DXGI enhancements were implemented around 2018.

If I’m not wrong, the minimum version of windows required is windows 7 right? It was mentioned in the wiki

Traneptora commented 1 year ago

Windows 7 is EOL so no

Traneptora commented 1 year ago

What happens if you use --vo=gpu-next --gpu-api=opengl?

bt4ibwem8 commented 5 months ago

What happens if you use --vo=gpu-next --gpu-api=opengl?

it plays fine without errors on win7... Without --gpu-api=opengl i get 2 errors:

  1. [vo/gpu/d3d11] Failed to query swap chain's output information
  2. [vo/gpu/d3d11] Failed to create v4 swapchain for color space configuration (No such interface supported (0x80004002))!

However even with these 2 errors the videos are playing fine. I have mpv in the 0.38.0 version.