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

FFmpeg trac at avcodec.org
Thu Feb 25 06:29:25 CET 2016


#5272: videotoolbox fails to initialize for mpeg2, mpeg4 codec
-------------------------------------+-------------------------------------
             Reporter:  lucaswang    |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  avcodec      |                  Version:  git-
             Keywords:               |  master
  videotoolbox                       |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:
 ffmpeg 2.8 branch can decode mpeg2video, mpeg4 and h264, but 3.0 and
 master can only decode h264. videotoolbox_default_init returns
 AVERROR_UNKNOWN for mpeg2video and mpeg4.
 How to reproduce:
 {{{
 % ffmpeg version N-76033-g1a29804 Copyright (c) 2000-2016 the FFmpeg
 developers
   built with Apple LLVM version 7.0.2 (clang-700.1.81)
   configuration: --extra-version=QtAV --disable-doc --disable-debug
 --disable-shared --enable-pic --enable-runtime-cpudetect --enable-hwaccels
 --enable-avresample --disable-postproc --enable-videotoolbox --cc=clang
 --extra-cflags='-mmacosx-version-min=10.8' --extra-ldflags='-mmacosx-
 version-min=10.8'
   libavutil      55. 19.100 / 55. 19.100
   libavcodec     57. 25.101 / 57. 25.101
   libavformat    57. 26.100 / 57. 26.100
   libavdevice    57.  0.101 / 57.  0.101
   libavfilter     6. 36.100 /  6. 36.100
   libavresample   3.  0.  0 /  3.  0.  0
   libswscale      4.  0.100 /  4.  0.100
   libswresample   2.  0.101 /  2.  0.101
 Input #0, mpeg, from
 '/Volumes/Share/samples/big_buck_bunny_480p_MPEG2_MP2_25fps_1800K.MPG':
   Duration: 00:01:14.68, start: 0.240000, bitrate: 2123 kb/s
     Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 854x480
 [SAR 1:1 DAR 427:240], max. 2496 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
     Stream #0:1[0x1c0]: Audio: mp2, 44100 Hz, stereo, s16p, 160 kb/s
 File '/tmp/t.ts' already exists. Overwrite ? [y/N] Output #0, mpegts, to
 '/tmp/t.ts':
   Metadata:
     encoder         : Lavf57.26.100
     Stream #0:0: Video: mpeg2video (Main), yuv420p, 854x480 [SAR 1:1 DAR
 427:240], q=2-31, 200 kb/s, 25 fps, 90k tbn, 25 tbc
     Metadata:
       encoder         : Lavc57.25.101 mpeg2video
     Side data:
       cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
     Stream #0:1: Audio: mp2, 44100 Hz, stereo, s16, 384 kb/s
     Metadata:
       encoder         : Lavc57.25.101 mp2
 Stream mapping:
   Stream #0:0 -> #0:0 (mpeg2video (native) -> mpeg2video (native))
   Stream #0:1 -> #0:1 (mp2 (native) -> mp2 (native))
 Press [q] to stop, [?] for help
 Error creating Videotoolbox decoder.
 videotoolbox hwaccel requested for input stream #0:0, but cannot be
 initialized.
 [mpeg2video @ 0x7fa632804000] decoding to AV_PIX_FMT_NONE is not
 supported.
 [mpeg2video @ 0x7fa632804000] mpeg_decode_postinit() failure
 Error while decoding stream #0:0: Operation not permitted
 Error creating Videotoolbox decoder.
 videotoolbox hwaccel requested for input stream #0:0, but cannot be
 initialized.
 [mpeg2video @ 0x7fa632804000] decoding to AV_PIX_FMT_NONE is not
 supported.
 [mpeg2video @ 0x7fa632804000] mpeg_decode_postinit() failure
 Error while decoding stream #0:0: Operation not permitted
 Error creating Videotoolbox decoder.
 }}}

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


More information about the FFmpeg-trac mailing list