Enable hardware acceleration in macOS application using VLCKit

macOS specific usage questions
vishk
New Cone
New Cone
Posts: 1
Joined: 16 Jul 2019 15:09

Enable hardware acceleration in macOS application using VLCKit

Postby vishk » 16 Jul 2019 15:16

How to enable hardware acceleration decoding in a macOS application using VLCKit framework, so that while playing videos GPU is also used. As of now only CPU is used and when the CPU reached 100%, video is stuck and not playing properly.

The options I used are
"--avcodec-skiploopfilter=4",
"--avcodec-skip-frame=2",
"--avcodec-fast",
"--verbose=0",
"--avcodec-hw=vaapi_drm",
"--avcodec-skip-idct=2",
"--avcodec-threads=255"

Please let me know

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: enable hardware acceleration in macOS application using VLCKit

Postby unidan » 16 Jul 2019 15:37

Hi, "--avcodec-hw=vaapi_drm" is hw acceleration for linux. you would want to use videotoolbox for macosx I guess.

User avatar
ePirat
Developer
Developer
Posts: 162
Joined: 10 Oct 2017 00:07
Operating System: macOS
Contact:

Re: Enable hardware acceleration in macOS application using VLCKit

Postby ePirat » 16 Oct 2019 21:13

VLCKit should automatically use Videotoolbox, as it is enabled by default. If it is not working for you, make sure the Video codec is supported on your model, if it should work provide verbose logs please.


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 24 guests