[Libav-user] Using Videotoolbox H.264 decode on MacOS

BIGLER Don (Framatome) don.bigler at framatome.com
Thu Feb 6 17:03:26 EET 2020


Here is an example from the QtAV library:
https://github.com/wang-bin/QtAV/blob/master/src/codec/video/VideoDecoderVideoToolbox.cpp

From: Libav-user [mailto:libav-user-bounces at ffmpeg.org] On Behalf Of Philippe Noël
Sent: Thursday, February 6, 2020 9:07 AM
To: This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter.
Subject: Re: [Libav-user] Using Videotoolbox H.264 decode on MacOS

Security Notice: Please be aware that this email was sent by an external sender.
Bumping this, anyone has experience working with videotoolbox on libav?

Philippe

On Sun, Feb 2, 2020 at 11:53 AM Philippe Noël <philippe_noel at college.harvard.edu<mailto:philippe_noel at college.harvard.edu>> wrote:
Hello,

I'm trying to use Hwaccel H.264 decoding on MacOS. I have MacOS Catalina (Late 2015 model) and when I run "ffmpeg -hwaccels" it shows "videotoolbox" twice. From the FFmpeg website, it seems videotoolbox is implemented for both encode and decode of H.264 videos.

I've found the encoder name, "h264_videotoolbox" but I can't find the name to feed to "avcodec_find_decoder_by_name" for the videotoolbox decoder. I was searching online and couldn't find much, but found that apparently standard "h264" decoder will use videotoolbox hwaccel if properly set up, is that correct? How should I proceed to decode H264 with videotoolbox, how do I tell the decoder to use videotoolbox hwaccel with h264, or what is the name of the videotoolbox decoder?

Thanks for your help!

Philippe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20200206/c33a20a3/attachment.html>


More information about the Libav-user mailing list