[FFmpeg-user] h264_videotoolbox encoder

Alfred E. Heggestad alfred.heggestad at gmail.com
Sun Nov 11 17:11:14 EET 2018


On 09/11/2018 23:34, Carl Eugen Hoyos wrote:
> 2018-11-09 22:18 GMT+01:00, Alfred E. Heggestad <alfred.heggestad at gmail.com>:
> 
>> Version info first:
>>
>> $ ffmpeg -version
>> ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
> 
> While is relatively recent, there is in general no release support
> on this mailing list, and even less so for macos.
> 
> [...]
> 
>>      320 x  240    Not working
> 
>>       Stream #0:0: Video: h264 (Main), yuv420p(progressive), 338x240
> 
> The resolutions look different.
> 

Hi,

Many thanks for your feedback.


Here is the output using ffmpeg from git HEAD:


$ ./ffmpeg -i ~/bin/ik.mkv -c:v h264_videotoolbox ~/tmp/output.mp4
ffmpeg version N-92406-g8860d30731 Copyright (c) 2000-2018 the FFmpeg 
developers
   built with Apple LLVM version 8.1.0 (clang-802.0.38)
   configuration:
   libavutil      56. 23.101 / 56. 23.101
   libavcodec     58. 39.100 / 58. 39.100
   libavformat    58. 22.100 / 58. 22.100
   libavdevice    58.  6.100 / 58.  6.100
   libavfilter     7. 43.100 /  7. 43.100
   libswscale      5.  4.100 /  5.  4.100
   libswresample   3.  4.100 /  3.  4.100
Input #0, matroska,webm, from '/Users/alfredh/bin/ik.mkv':
   Metadata:
     COMPATIBLE_BRANDS: iso6avc1mp41
     MAJOR_BRAND     : dash
     MINOR_VERSION   : 0
     ENCODER         : Lavf58.12.100
   Duration: 00:08:40.42, start: -0.007000, bitrate: 354 kb/s
     Stream #0:0: Video: h264 (Main), yuv420p(progressive), 338x240, 25 
fps, 25 tbr, 1k tbn, 50 tbc (default)
     Metadata:
       HANDLER_NAME    : VideoHandler
       DURATION        : 00:08:40.360000000
     Stream #0:1(eng): Audio: opus, 48000 Hz, stereo, fltp (default)
     Metadata:
       DURATION        : 00:08:40.421000000
File '/Users/alfredh/tmp/output.mp4' already exists. Overwrite ? [y/N] y
Stream mapping:
   Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_videotoolbox))
   Stream #0:1 -> #0:1 (opus (native) -> aac (native))
Press [q] to stop, [?] for help
[h264_videotoolbox @ 0x7fc076009600] Error: cannot create compression 
session: -12915
[h264_videotoolbox @ 0x7fc076009600] Try -allow_sw 1. The hardware 
encoder may be busy, or not supported.
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
[aac @ 0x7fc07600a800] Qavg: 65536.000
[aac @ 0x7fc07600a800] 2 frames left in the queue on closing
Conversion failed!



More information about the ffmpeg-user mailing list