Skip to content

🎥 Make videos programmatically with React

Merge branch 'main' into pr/1380

Jonny Burger0c3bf01cdf3c
diff --cc packages/renderer/src/render-media.ts
index 2e7cbd2045,f7f2247862..ede1384af4
--- a/packages/renderer/src/render-media.ts
+++ b/packages/renderer/src/render-media.ts
@@@ -170,8 -167,15 +171,13 @@@ export const renderMedia = (
...options
}: RenderMediaOptions): Promise<Buffer | null> => {
validateQuality(options.quality);
- if (typeof crf !== 'undefined' && crf !== null) {
- validateSelectedCrfAndCodecCombination(crf, codec);
- }
+ validateQualitySettings({crf, codec, videoBitrate});
+ validateSelectedCodecAndProResCombination({
+ codec,
+ proResProfile,
+ });
+
if (outputLocation) {
validateOutputFilename(codec, getExtensionOfFilename(outputLocation));
}