Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2860 from pypeclub/bugfix/OP-2898_ffmpeg-crashes-…
Browse files Browse the repository at this point in the history
…slate-merge-png-to-prores

General: ffmpeg was crashing on slate merge
  • Loading branch information
jakubjezek001 authored Mar 10, 2022
2 parents ba1ac11 + 09dbeff commit 78772b5
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions openpype/plugins/publish/extract_review_slate.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,21 @@ def codec_args(self, repre):

profile_name = no_audio_stream.get("profile")
if profile_name:
profile_name = profile_name.replace(" ", "_").lower()
codec_args.append("-profile:v {}".format(profile_name))
# Rest of arguments is prores_kw specific
if codec_name == "prores_ks":
codec_tag_to_profile_map = {
"apco": "proxy",
"apcs": "lt",
"apcn": "standard",
"apch": "hq",
"ap4h": "4444",
"ap4x": "4444xq"
}
codec_tag_str = no_audio_stream.get("codec_tag_string")
if codec_tag_str:
profile = codec_tag_to_profile_map.get(codec_tag_str)
if profile:
codec_args.extend(["-profile:v", profile])

pix_fmt = no_audio_stream.get("pix_fmt")
if pix_fmt:
Expand Down

0 comments on commit 78772b5

Please sign in to comment.