[FFmpeg-devel] [PATCH]: Video Decoder Acceleration (VDA) HWAccel module for Mac OS X

Michael Niedermayer michaelni at gmx.at
Fri Nov 4 21:55:58 CET 2011


On Fri, Nov 04, 2011 at 08:47:37PM +0100, Sebastien Zwickert wrote:
> 
> On Nov 3, 2011, at 2:39 PM, Hanspeter Niederstrasser wrote:
> 
> > Fresh git pull and this fails to build on OS X 10.7.2:
> 
> […]
> 
> > Undefined symbols for architecture x86_64:
> >  "_kVDADecoderConfiguration_Height", referenced from:
> >      _ff_vda_create_decoder in vda.o
> >  "_kVDADecoderConfiguration_Width", referenced from:
> >      _ff_vda_create_decoder in vda.o
> >  "_kVDADecoderConfiguration_SourceFormat", referenced from:
> >      _ff_vda_create_decoder in vda.o
> >  "_kVDADecoderConfiguration_avcCData", referenced from:
> >      _ff_vda_create_decoder in vda.o
> >  "_VDADecoderCreate", referenced from:
> >      _ff_vda_create_decoder in vda.o
> >  "_CVPixelBufferGetPixelFormatType", referenced from:
> >      _vda_decoder_callback in vda.o
> >  "_CVPixelBufferRetain", referenced from:
> >      _vda_decoder_callback in vda.o
> >  "_VDADecoderDestroy", referenced from:
> >      _ff_vda_destroy_decoder in vda.o
> >  "_CVPixelBufferRelease", referenced from:
> >      _ff_vda_destroy_decoder in vda.o
> >      _ff_vda_release_vda_frame in vda.o
> >  "_VDADecoderDecode", referenced from:
> >      _ff_vda_decoder_decode in vda.o
> > ld: symbol(s) not found for architecture x86_64
> > clang: error: linker command failed with exit code 1 (use -v to see invocation)
> > make: *** [libavcodec/libavcodec.53.dylib] Error 1
> > 
> > Manually adding "-framework CoreFoundation -framework
> > VideoDecodeAcceleration -framework QuartzCore" (copied from configure)
> > to the linker command successfully builds libavcodec.dylib.  My
> > configure line is:
> > 
> > ../configure --prefix=/usr/local/ffmpeg-git --enable-shared
> > --disable-static --enable-gpl --enable-version3 --enable-pthreads
> > --enable-x11grab --enable-bzlib --enable-libcelt --enable-frei0r
> > --enable-libopencore-amrnb --enable-libopencore-amrwb
> > --enable-libopencv --enable-libcdio --enable-libdirac
> > --enable-libfreetype --enable-libmodplug --enable-libmp3lame
> > --enable-libopenjpeg --enable-librtmp --enable-libschroedinger
> > --enable-libspeex --enable-libtheora --enable-libvorbis
> > --enable-libvpx --enable-libx264 --enable-libxvid --enable-zlib
> > --extra-cflags='-I/sw/include -I/usr/X11/include'
> > --extra-libs='-L/sw/lib -L/usr/X11/lib' --cc=clang
> > 
> > and the output from configure says:
> > 
> > Enabled hwaccels:
> > h264_vda
> > 
> > Hanspeter
> 
> 
> Thanks for your report.
> 
> This happens when vda is not explicitly enable/disable in the configure line.
> 
> I provided a patch in attachment that fixes the issue. By default, it enables vda
> if it is not explicitly disabled in the configure line and if header is found.

patch applied, thanks


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

While the State exists there can be no freedom; when there is freedom there
will be no State. -- Vladimir Lenin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20111104/d5ba257d/attachment.asc>


More information about the ffmpeg-devel mailing list