directX vs direct3D

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
dbrb2
Blank Cone
Blank Cone
Posts: 74
Joined: 07 Sep 2007 20:21

directX vs direct3D

Postby dbrb2 » 23 Aug 2012 03:13

Hi,

I have a machine which spends all day displaying multiple video streams in multiple VLC windows. For each, using command line parameters, I can select either directX or direct3D. I am currently running VLC 1.17.

The only outward difference I can see is that using directX uses overlays, wheras using directX does not. Does this mean then that when using dirext3D all of the video decoding is being done by the CPU as opposed to the GPU? This may nopt matter, but I'm just trying to work out the pros/cons of using one vs the other.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: directX vs direct3D

Postby Jean-Baptiste Kempf » 23 Aug 2012 22:10

Both are using the GPU to do chroma conversion and scaling.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

dbrb2
Blank Cone
Blank Cone
Posts: 74
Joined: 07 Sep 2007 20:21

Re: directX vs direct3D

Postby dbrb2 » 23 Aug 2012 22:52

Oh good - I had worried that since, as I understand it, hardware video overlays bypass the OS (hence why screenshots / vnc servers etc see those video streams as black squares), and since this is not a problem with direct3D, this indicated the OS was having to do more work.

Seems to be working OK for now though (w7 32 bit machines)

dbrb2
Blank Cone
Blank Cone
Posts: 74
Joined: 07 Sep 2007 20:21

Re: directX vs direct3D

Postby dbrb2 » 25 Aug 2012 02:44

...I notice that if I do not force an output module, then VLC chooses the "best" module to use. Does anyone know on what basis this choice is made?

We have some XP machines, and if we force direct3D, the logs show a direct3D initialisation failure, and we get no video, but directX works fine. I guess this is something to do with the installed graphics card? For the moment ihave stopped forcing the output module at all, since VLC seems to make the right choices on it's own...

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: directX vs direct3D

Postby Jean-Baptiste Kempf » 25 Aug 2012 03:51

...I notice that if I do not force an output module, then VLC chooses the "best" module to use. Does anyone know on what basis this choice is made?

We have some XP machines, and if we force direct3D, the logs show a direct3D initialisation failure, and we get no video, but directX works fine. I guess this is something to do with the installed graphics card? For the moment ihave stopped forcing the output module at all, since VLC seems to make the right choices on it's own...
DirectX is the default on XP
Direct3D is the default on Vista, 7 and 8

If direct3D does not work on XP for you, your drivers are screwed.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

dbrb2
Blank Cone
Blank Cone
Posts: 74
Joined: 07 Sep 2007 20:21

Re: directX vs direct3D

Postby dbrb2 » 25 Aug 2012 06:09

We are using some rather ancient analogue video output graphics cards on the XP machine, and we know there are some bugs in the drivers, so this sounds quite possible. Whether or not direct3d works is presumably down to what the OS can instruct the graphics hardware to do, and thus as you say the drivers?

Is there any particuloar reason why the default has changed from XP to Win7? Does direct3D have advantages?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: directX vs direct3D

Postby Jean-Baptiste Kempf » 25 Aug 2012 18:40

If you do not know why, don't change the defaults.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

dbrb2
Blank Cone
Blank Cone
Posts: 74
Joined: 07 Sep 2007 20:21

Re: directX vs direct3D

Postby dbrb2 » 26 Aug 2012 01:32

Thanks for your polite and informative response :-)


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 7 guests