[FFmpeg-trac] #5272(avcodec:open): videotoolbox fails to initialize for mpeg2, mpeg4 codec

FFmpeg trac at avcodec.org
Sun Mar 20 10:00:40 CET 2016


#5272: videotoolbox fails to initialize for mpeg2, mpeg4 codec
-------------------------------------+-------------------------------------
             Reporter:  lucaswang    |                    Owner:
                 Type:  defect       |                   Status:  open
             Priority:  important    |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:               |               Blocked By:
  videotoolbox regression            |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by ponpon):

 measure to avoid this error

 this error arises from two changes.
 first: from EnableHardwareAcceleratedVideoDecoder to
 RequireHardwareAcceleratedVideoDecoder of videotoolbox.c in ID:
 78cc19f15ead41909ddaf85cd5bad10036a93883.
 second: from videotoolbox_extralibs="-framework CoreFoundation -framework
 VideoToolbox -framework CoreMedia -framework QuartzCore -framework
 CoreVideo" to videotoolbox_hwaccel_extralibs="-framework QuartzCore" of
 configure in ID: 3af71ac3f9f635856145503f2ace829aad813636

 execute the following. but videotoolbox software decoding is used.
 {{{
 sed -i -e
 's/RequireHardwareAcceleratedVideoDecoder/EnableHardwareAcceleratedVideoDecoder/g'
 "./libavcodec/videotoolbox.c"
 sed -i -e 's/videotoolbox_hwaccel_extralibs=\"-framework
 QuartzCore\"/videotoolbox_extralibs=\"-framework CoreFoundation -framework
 VideoToolbox -framework CoreMedia -framework QuartzCore -framework
 CoreVideo\"/g' "./configure"
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5272#comment:10>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list