Opened 2 years ago

Last modified 5 months ago

#9801 new defect

prores_videotoolbox failed in cli tool (Error: cannot create compression session: -12908)

Reported by: Juneleung Chan Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by Juneleung Chan)

Summary of the bug:
mac OS 11.6.6 with ffmpeg5, prores_videotoolbox cant run with Cli successfully. H264_videoetoolbox and hevc_videoetoolbox can run successfully, only prores_videotoolbox failed. Error as "Error: cannot create compression session: -12908".

if I run

"ffmpeg -h encoder=prores_videotoolbox"

I can get encoder info successfully as:

"Encoder prores_videotoolbox [VideoToolbox ProRes Encoder]:
    General capabilities: dr1 delay hardware 
    Threading capabilities: none
    Supported pixel formats: videotoolbox_vld yuv420p nv12 ayuv64le uyvy422 p010le nv16 p210le nv24 p410le bgra
prores_videotoolbox AVOptions:
  -profile           <int64>      E..V....... Profile (from -99 to 5) (default auto)
     auto                         E..V....... Automatically determine based on input format
     proxy                        E..V....... ProRes 422 Proxy
     lt                           E..V....... ProRes 422 LT
     standard                     E..V....... ProRes 422
     hq                           E..V....... ProRes 422 HQ
     4444                         E..V....... ProRes 4444
     xq                           E..V....... ProRes 4444 XQ
  -allow_sw          <boolean>    E..V....... Allow software encoding (default false)
  -require_sw        <boolean>    E..V....... Require software encoding (default false)
  -realtime          <boolean>    E..V....... Hint that encoding should happen in real-time if not faster (e.g. capturing from camera). (default false)
  -frames_before     <boolean>    E..V....... Other frames will come before the frames in this session. This helps smooth concatenation issues. (default false)
  -frames_after      <boolean>    E..V....... Other frames will come after the frames in this session. This helps smooth concatenation issues. (default false)

How to reproduce:

% ffmpeg  -i 123.mov  -vcodec prores_videotoolbox 20220603.mov -y 
ffmpeg version 
  built with Apple clang version 13.0.0 (clang-1300.0.29.3)

get info as :

[prores_videotoolbox @ 0x7fc10940ca80] Error: cannot create compression session: -12908
[prores_videotoolbox @ 0x7fc10940ca80] 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
Conversion failed!

Change History (4)

comment:1 by Juneleung Chan, 2 years ago

Description: modified (diff)

comment:2 by Juneleung Chan, 2 years ago

Summary: prores_videotoolbox failed in cli toolprores_videotoolbox failed in cli tool (Error: cannot create compression session: -12908)

comment:3 by Marton Balint, 22 months ago

Priority: importantnormal

Not a regression or a crash, so does not qualify as important.

comment:4 by Fractale, 5 months ago

same issue

Note: See TracTickets for help on using tickets.