π₯ Make videos programmatically with React
π Fix ProRes transparency support
William Candillon5a6ec927ac20
diff --git a/packages/core/src/config/pixel-format.ts b/packages/core/src/config/pixel-format.tsindex 0cfd4e95d7..a35806da99 100644--- a/packages/core/src/config/pixel-format.ts+++ b/packages/core/src/config/pixel-format.ts@@ -8,6 +8,7 @@ const validOptions = ['yuv420p10le','yuv422p10le','yuv444p10le',+ 'yuva444p10le'] as const;export type PixelFormat = typeof validOptions[number];diff --git a/packages/renderer/src/get-prores-profile-name.ts b/packages/renderer/src/get-prores-profile-name.tsindex 652d77663f..183ce53da8 100644--- a/packages/renderer/src/get-prores-profile-name.ts+++ b/packages/renderer/src/get-prores-profile-name.ts@@ -1,5 +1,7 @@import {Codec, ProResProfile} from 'remotion';+const proResProfiles = ['4444-xq', '4444', 'hq', 'standard', 'light', 'proxy'];+export const getProResProfileName = (codec: Codec,proResProfile: ProResProfile | undefined@@ -8,20 +10,9 @@ export const getProResProfileName = (return null;}- switch (proResProfile) {- case '4444-xq':- return '5';- case '4444':- return '4';- case 'hq':- return '3';- case 'standard':- return '2';- case 'light':- return '1';- case 'proxy':- return '0';- default:- return '3';+ if (proResProfiles.indexOf(proResProfile) === -1) {+ return '3';}++ return proResProfile;};