Skip to content

Commit

Permalink
Merge pull request #10 from remotion-dev/videotoolbox
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyBurger authored Oct 4, 2024
2 parents df43eb0 + d540cc7 commit a5b7d3b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion compile-ffmpeg.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ const decoders = [
"hls",
"m4a",
"rawvideo",
];
process.platform === "darwin" ? "h264_videotoolbox" : null,
process.platform === "darwin" ? "hevc_videotoolbox" : null,
].filter(Boolean);

const demuxers = [
"aac",
Expand Down Expand Up @@ -109,6 +111,8 @@ const demuxers = [
"gif",
"hls",
"m4a",
"mpeg2_videotoolbox",
"mpeg4_videotoolbox",
];

if (!existsSync(PREFIX)) {
Expand Down Expand Up @@ -253,6 +257,9 @@ execSync(
"--enable-encoder=prores_ks",
"--enable-encoder=rawvideo",
"--enable-encoder=null",
process.platform === "darwin" ? "--enable-videotoolbox" : null,
process.platform === "darwin" ? "--enable-encoder=h264_videotoolbox" : null,
process.platform === "darwin" ? "--enable-encoder=hevc_videotoolbox" : null,
"--disable-muxers",
"--enable-muxer=webm,opus,mp4,wav,mp3,mov,matroska,hevc,h264,gif,image2,image2pipe,adts,m4a,mpegts,null,avi",
"--enable-libx264",
Expand Down

0 comments on commit a5b7d3b

Please sign in to comment.