GPU-Acceleration

This forum is about all development around libVLC.
Morgoth2010
New Cone
New Cone
Posts: 2
Joined: 06 Nov 2010 15:40

GPU-Acceleration

Postby Morgoth2010 » 06 Nov 2010 15:50

Hi all,
I´m trying to use the nVLC-Wrapper for C#
http://www.codeproject.com/KB/audio-video/nVLC.aspx

the problem ist that i don´t know how to activate the GPU-Acceleration in libVLC.
Can anybody help me in this topic?

Best Regards,
Thomas

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: GPU-Acceleration

Postby Jean-Baptiste Kempf » 06 Nov 2010 20:35

--ffmpeg-hw
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.

Morgoth2010
New Cone
New Cone
Posts: 2
Joined: 06 Nov 2010 15:40

Re: GPU-Acceleration

Postby Morgoth2010 » 07 Nov 2010 12:07

Thx....that´s the solution :D

jerrylipeng
New Cone
New Cone
Posts: 3
Joined: 13 Apr 2015 05:01

Re: GPU-Acceleration

Postby jerrylipeng » 13 Apr 2015 05:14

Hi all, does "--ffmpeg-hw" still work? I tried several options in the nVLC example projects ("--ffmpeg-hw", "--avcodec-hw=any", "--avcodec-hw=dxva2"), but seems none of them works.
Could somebody help?

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: GPU-Acceleration

Postby Jean-Baptiste Kempf » 14 Apr 2015 22:43

"--avcodec-hw=any" should work
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.

jerrylipeng
New Cone
New Cone
Posts: 3
Joined: 13 Apr 2015 05:01

Re: GPU-Acceleration

Postby jerrylipeng » 15 Apr 2015 03:30

Thanks for your reply.

I was using VLC 2.2.0 to play a 3840*2160 mp4:
- Start vlc in command line: vlc --avcodec-hw=any, the video is choppy
- Start vlc in command line: vlc --avcodec-hw=dxva2, the video looks good
- In nVLC example, calling libvlc_new with/without "--avcodec-hw=xxx" makes no difference, both choppy.

Did I miss something?

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: GPU-Acceleration

Postby Jean-Baptiste Kempf » 15 Apr 2015 11:37

Try 2.2.1
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.

Lamerjack
New Cone
New Cone
Posts: 1
Joined: 02 Nov 2015 09:53

Re: GPU-Acceleration

Postby Lamerjack » 02 Nov 2015 16:36

Here same problem...
Somebody has any news?
Me i tested with --ffmpeg-hw and say that is not supported.
I try with --avcodec-hw=dxva2 or --avcodec-hw=any and nothing.
I tested also forcing the direct 3d with --vout=direct3d11 and then --avcodec-hw=dxva2
i tested veriso 2.2.1 2.2.2 and 3.0...
in the 3.0 i try also --vout=direct3d11 and --avcodec-hw=d3d11va
if i give the same parameters on command line works fine the video ils fluid and the cpu occupation go down to 5%.
Any idea/suggestion?

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

Re: GPU-Acceleration

Postby Rémi Denis-Courmont » 02 Nov 2015 16:40

You're not supposed to pass vout and avcodec-hw to LibVLC. It controls them internally based on higher-level video control functions.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

parker
Blank Cone
Blank Cone
Posts: 39
Joined: 21 Sep 2010 05:25

Re: GPU-Acceleration

Postby parker » 04 Nov 2015 09:29

Hi all
I´m trying to use the nVLC-Wrapper for C#

People help me answer this question.
http://www.codeproject.com/Messages/514 ... utube.aspx

thank you

parker
Blank Cone
Blank Cone
Posts: 39
Joined: 21 Sep 2010 05:25

Re: GPU-Acceleration

Postby parker » 28 Nov 2015 09:34

Hi all
I´m trying to use the nVLC-Wrapper for C#

People help me answer this question.
http://www.codeproject.com/Messages/514 ... utube.aspx

thank you
please!!!!!!

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: GPU-Acceleration

Postby Jean-Baptiste Kempf » 28 Jun 2016 09:26

use the same options than the app.
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.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 3 guests