Enabling Hardware Acceleration (DXVA2) for libvlc 2.2.1 via command line switch from VLCJ

This forum is about all development around libVLC.
aitte
Cone that earned his stripes
Cone that earned his stripes
Posts: 310
Joined: 28 Feb 2012 00:26

Enabling Hardware Acceleration (DXVA2) for libvlc 2.2.1 via command line switch from VLCJ

Postby aitte » 21 Aug 2015 11:08

Background:

I have an application built with LibGDX.

I'm using VLC for video playback via VLCJ.

For the Windows deployment, I need hardware accelerated video decoding - which from my understanding will be via DXVA2 on Windows.

However VLC 2.2.1 has DXVA disabled by default, and the command line switches like -avcodec-hw=dxva2.lo from previous VLC versions don't seem to work


How do I set the flags to enable hardware video decoding?

Rémi Denis-Courmont
Developer
Developer
Posts: 15229
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Enabling Hardware Acceleration (DXVA2) for libvlc 2.2.1 via command line switch from VLCJ

Postby Rémi Denis-Courmont » 21 Aug 2015 11:47

If you don't mind shooting yourself in the foot, you have to make a custom build. Forcing acceleration on VLC 2.x will break decoding on some systems.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

aitte
Cone that earned his stripes
Cone that earned his stripes
Posts: 310
Joined: 28 Feb 2012 00:26

Re: Enabling Hardware Acceleration (DXVA2) for libvlc 2.2.1 via command line switch from VLCJ

Postby aitte » 21 Aug 2015 19:34

Thanks for the quick reply!

- Any recommended guide or documentation on custom building 2.2.1 for dxva?

- In what scenarios will decoding break?

- In my use case I have 100% control of the encoding parameters for the video that will be played back by VLC, is there some recommended format/profile that will work best with DXVA?

- My target device is running a Bay Trail Intel HD Graphics (Z3735F)

Rémi Denis-Courmont
Developer
Developer
Posts: 15229
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Enabling Hardware Acceleration (DXVA2) for libvlc 2.2.1 via command line switch from VLCJ

Postby Rémi Denis-Courmont » 21 Aug 2015 21:43

Depending on hardware and drivers.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

rocky
Blank Cone
Blank Cone
Posts: 61
Joined: 13 Jan 2007 12:21
Contact:

Re: Enabling Hardware Acceleration (DXVA2) for libvlc 2.2.1 via command line switch from VLCJ

Postby rocky » 25 Aug 2015 05:16

What about
- Any recommended guide or documentation on custom building 2.2.1 for dxva?
- In my use case I have 100% control of the encoding parameters for the video that will be played back by VLC, is there some recommended format/profile that will work best with DXVA?

- My target device is running a Bay Trail Intel HD Graphics (Z3735F)


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 10 guests