[FFmpeg-devel] [PATCH] Fix videotoolbox compile error on OS X 10.8.

Dan Dennedy dan at dennedy.org
Tue Jun 21 07:44:54 CEST 2016

On Mon, Jun 20, 2016 at 9:45 PM Dan Dennedy <dan at dennedy.org> wrote:

> On Sun, Jun 19, 2016 at 9:25 PM Richard Kern <kernrj at gmail.com> wrote:
>> > On Jun 19, 2016, at 6:11 PM, Dan Dennedy <dan at dennedy.org> wrote:
>> >
>> > Fixes error:
>> > libavcodec/videotoolbox.c:511:18: error: implicit declaration of
>> > function 'CMVideoFormatDescriptionCreateFromH264ParameterSets' is
>> > invalid in C99
>> >
>> > This was added in 10.9:
>> >
>> https://developer.apple.com/reference/coremedia/1489818-cmvideoformatdescriptioncreatefr?language=objc
>> Thanks for catching this - applied.
>> If you have access to OS X 10.8, can you test using this hwaccel?
> My nightly build agent for my app is a hackintosh running 10.8, but I do
> not believe it has the hardware or driver to support vda or videotoolbox to
> test this on that machine. When I use ffmpeg -hwaccel with vda or
> videotoolbox, it fails to initialize. I can, however, successfully use a
> build made on it on another, real mac running a very recent OS X - probably
> not what you are interested in.

Actually, I have to retract this claim of a build made on 10.8 working on
my MacBook Pro with OS X (10.11). It works using FFmpeg v3.0.2, which the
app uses for releases. However, upon making a build using FFmpeg git
master, -hwaccel videotoolbox is not working with the same AVCHD clip:
/Applications/Shotcut.app/Contents/MacOS/ffmpeg -v verbose -hwaccel
videotoolbox -threads 1 -i ~/Movies/00108.MTS -t 30 -y test.mp4
[NULL @ 0x7f9659026200] Ignoring NAL type 9 in extradata
Error creating Videotoolbox decoder.
videotoolbox hwaccel requested for input stream #0:0, but cannot be

My app is not using hwaccel at this time; so, not a big deal for me. But, I
thought you might want to know.

More information about the ffmpeg-devel mailing list