msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
2.25k stars 1.21k forks source link

d3d11videosink inside gst-plugins-bad has problem #21074

Open syehoonkim opened 4 months ago

syehoonkim commented 4 months ago

Description / Steps to reproduce the issue

Dear, I have found that gst-launch-1.0 cannot run properly when I try to use d3d11videosink. The reproduction steps are as follow: gst-launch-1.0 ! videotestsrc ! autovidosink or gst-launch-1.0 ! videotestsrc ! d3d11videosink

Expected behavior

GStreamer should play test signal with DirectX11.

Actual behavior

Got context from element 'd3d11videosink0': gst.d3d11.device.handle=context, device=(GstD3D11Device)"(GstD3D11Device)\ d3d11device2", adapter=(uint)0, adapter-luid=(gint64)80247, device-id=(uint)9392, vendor-id=(uint)4318, hardware=(boolean)true, description=(string)"NVIDIA\ RTX\ A4000"; ERROR: from element /GstPipeline:pipeline0/GstD3D11VideoSink:d3d11videosink0: Cannot create converter Additional debug info: Failed to prepare d3d11window

Verification

Windows Version

MINGW64_NT-10.0-19045

MINGW environments affected

Are you willing to submit a PR?

No response

Biswa96 commented 3 months ago

The reproduction steps are as follow: gst-launch-1.0 ! videotestsrc ! autovidosink or gst-launch-1.0 ! videotestsrc ! d3d11videosink

I got different output from those two commands.

$ gst-launch-1.0 ! videotestsrc ! d3d11videosink
WARNING: erroneous pipeline: syntax error

$ gst-launch-1.0 ! videotestsrc ! autovidosink
WARNING: erroneous pipeline: syntax error

Is discrete graphics card required for those commands?

syehoonkim commented 3 months ago

Oh, I am sorry that I made weird commands. The commands should look like this:

gst-launch-1.0 videotestsrc ! d3d11videosink
gst-launch-1.0 videotestsrc ! autovideosink

There should be no "!" between gst-launch-1.0 and videotestsrc, and I missed an "e" in autovideosink Would you please run those commands again?

Biswa96 commented 3 months ago

I can reproduce the errors with those command.

Biswa96 commented 3 months ago

Just a little observation. Those aforementioned commands work if I add video/x-raw,format=NV12 i.e.

syehoonkim commented 3 months ago

Ah, thank you for informing me. I will try this.