[FFmpeg-user] hevc_videotoolbox was not supported any more?

桃源老師 xanadu6291 at dream.jp
Mon Feb 28 04:59:22 EET 2022


Hello, 

I've encountered funny error when trying to use hevc_videotoolbox, a hardware acceleration on Mac.  I can use h264_videotoolbox without any problem.  Does hevc_videotoolbox not supported any more?


Here's command output...

ffmpeg -i ~/Movies/Mariah\ Carey\ -\ My\ All.mp4 -c:v hevc_videotoolbox -tag:v hvc1 -b:v 5000k -c:a copy output.mp4
ffmpeg version N-105453-gcc5eb2e662 Copyright (c) 2000-2022 the FFmpeg developers
  built with Apple clang version 13.0.0 (clang-1300.0.29.30)
  configuration: --prefix=/Volumes/ffmpeg_compile --pkg-config-flags=--static --enable-gpl --enable-version3 --enable-nonfree --enable-libmp3lame --enable-libfdk-aac --enable-libvo-amrwbenc --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvorbis --enable-libspeex --enable-libopus --enable-libgsm --enable-libtwolame --enable-libsoxr --enable-libmodplug --enable-libopenjpeg --enable-libwebp --enable-libtheora --enable-libx264 --enable-libopenh264 --enable-libx265 --enable-libxvid --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libfribidi --enable-libass --enable-libbluray --enable-libvidstab --enable-libsnappy --enable-libzmq --enable-libzvbi --enable-libcdio --enable-libzimg --enable-libaom --enable-libdav1d --enable-libmysofa --enable-librubberband --enable-libshine --enable-libxavs2 --enable-libdavs2 --enable-libvmaf
  libavutil      57. 19.100 / 57. 19.100
  libavcodec     59. 20.100 / 59. 20.100
  libavformat    59. 17.101 / 59. 17.101
  libavdevice    59.  5.100 / 59.  5.100
  libavfilter     8. 26.101 /  8. 26.101
  libswscale      6.  5.100 /  6.  5.100
  libswresample   4.  4.100 /  4.  4.100
  libpostproc    56.  4.100 / 56.  4.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/roushi/Movies/Mariah Carey - My All.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.75.100
  Duration: 00:03:48.88, start: 0.000000, bitrate: 760 kb/s
  Stream #0:0[0x1](und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(progressive), 640x480 [SAR 1:1 DAR 4:3], 611 kb/s, 29.97 fps, 29.97 tbr, 16k tbn (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 139 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
File 'output.mp4' already exists. Overwrite? [y/N] y
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> hevc (hevc_videotoolbox))
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[hevc_videotoolbox @ 0x7fce59705740] Error encoding frame: -12905
[hevc_videotoolbox @ 0x7fce59705740] popping: -542398533
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4380 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20220228/0a935f11/attachment.bin>


More information about the ffmpeg-user mailing list