Skip to content

🎥 Make videos programmatically with React

stubs for CRF value

Jonny Burger69fa536007e2
diff --git a/packages/core/src/config/crf.ts b/packages/core/src/config/crf.ts
new file mode 100644
index 0000000000..6f25f45313
--- /dev/null
+++ b/packages/core/src/config/crf.ts
@@ -0,0 +1,11 @@
+type Crf = number | undefined;
+
+let currentCrf: Crf = undefined;
+
+export const setCrf = (newCrf: Crf) => {
+ currentCrf = newCrf;
+};
+
+export const getCrf = () => {
+ return currentCrf;
+};