Skip to content

Commit

Permalink
feature: allow exporting mov videos with alpha layer
Browse files Browse the repository at this point in the history
  • Loading branch information
nilp0inter committed Apr 26, 2022
1 parent 97d29e4 commit 30053c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/FFmpegWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1289,6 +1289,11 @@ AVStream *FFmpegWriter::add_video_stream() {
}
}

// hacky hack hack
if (c->codec_id == AV_CODEC_ID_PRORES) {
c->pix_fmt = AV_PIX_FMT_YUVA444P10;
}

AV_COPY_PARAMS_FROM_CONTEXT(st, c);
#if (LIBAVFORMAT_VERSION_MAJOR < 58)
// FFmpeg < 4.0
Expand Down

0 comments on commit 30053c9

Please sign in to comment.