Page 1 of 1

Enable hardware acceleration in macOS application using VLCKit

Posted: 16 Jul 2019 15:16
by vishk
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

Re: enable hardware acceleration in macOS application using VLCKit

Posted: 16 Jul 2019 15:37
by unidan
Hi, "--avcodec-hw=vaapi_drm" is hw acceleration for linux. you would want to use videotoolbox for macosx I guess.

Re: Enable hardware acceleration in macOS application using VLCKit

Posted: 16 Oct 2019 21:13
by ePirat
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.