1- import fs , { existsSync , readFileSync , unlinkSync } from "fs" ;
2- import path from "path" ;
1+ import fs , { readFileSync } from "fs" ;
32import { execSync } from "child_process" ;
43import { PREFIX } from "./const.mjs" ;
5- import { compileFunction } from "vm" ;
64
75export const enableX265 = ( isMusl , isWindows ) => {
86 if ( isWindows ) {
@@ -22,7 +20,8 @@ export const enableX265 = (isMusl, isWindows) => {
2220 ] . filter ( Boolean ) ;
2321
2422 if ( ! fs . existsSync ( "x265" ) ) {
25- execSync ( "git clone https://github.com/videolan/x265 x265" , {
23+ // Because https://github.com/videolan/x265/pull/17
24+ execSync ( "git clone https://github.com/MarkusVolk/x265 x265" , {
2625 stdio : "inherit" ,
2726 } ) ;
2827 }
@@ -67,7 +66,6 @@ export const enableX265 = (isMusl, isWindows) => {
6766 [
6867 "cmake" ,
6968 '-DCMAKE_INSTALL_PREFIX="remotion"' ,
70- "-DCMAKE_POLICY_VERSION_MINIMUM=3.5" ,
7169 "-DENABLE_SHARED:BOOL=OFF" ,
7270 "-DCMAKE_BUILD_TYPE=Release" ,
7371 "-DSTATIC_LINK_CRT:BOOL=" + ( staticallyLinkCLibrary ? "ON" : "OFF" ) ,
0 commit comments