File tree Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"targets" : [{
3
3
"target_name" : "beamcoder" ,
4
- "sources" : [ "src/beamcoder.cc" , "src/beamcoder_util.cc" ,
4
+ "sources" : [ "src/beamcoder.cc" , "src/beamcoder_util.cc" ,
5
5
"src/log.cc" ,
6
6
"src/governor.cc" , "src/demux.cc" ,
7
7
"src/decode.cc" , "src/filter.cc" ,
90
90
}],
91
91
['OS=="mac"' , {
92
92
"include_dirs" : [
93
- "/opt/homebrew/Cellar/ffmpeg/5.0/include"
93
+ "/usr/local/Cellar/ffmpeg@5/5.1.3/include/" ,
94
+ "/opt/homebrew/Cellar/ffmpeg@5/5.1.3/include/" ,
94
95
],
95
96
"library_dirs" : [
96
- "/opt/homebrew/Cellar/ffmpeg/5.0/lib" ,
97
+ "/usr/local/Cellar/ffmpeg@5/5.1.3/lib/" ,
98
+ "/opt/homebrew/Cellar/ffmpeg@5/5.1.3/lib/" ,
97
99
]
98
100
}],
99
101
]
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ async function win32() {
99
99
if ( e . code === 'EEXIST' ) return ;
100
100
else throw e ;
101
101
} ) ;
102
-
102
+
103
103
const ffmpegFilename = 'ffmpeg-5.x-win64-shared' ;
104
104
await access ( `ffmpeg/${ ffmpegFilename } ` , fs . constants . R_OK ) . catch ( async ( ) => {
105
105
const html = await getHTML ( 'https://github.com/BtbN/FFmpeg-Builds/wiki/Latest' , 'latest autobuilds' ) ;
@@ -180,20 +180,21 @@ async function darwin() {
180
180
console . log ( 'Checking for FFmpeg dependencies via HomeBrew.' ) ;
181
181
let output ;
182
182
let returnMessage ;
183
-
183
+
184
184
try {
185
- output = await exec ( 'brew list ffmpeg' ) ;
185
+ output = await exec ( 'brew list ffmpeg@5 ' ) ;
186
186
returnMessage = 'FFmpeg already present via Homebrew.' ;
187
187
} catch ( err ) {
188
- if ( err . stderr !== 'Error: No such keg: /usr/local/Cellar/ffmpeg\n' ) {
188
+ if ( err . stderr . indexOf ( 'Error: No such keg' ) === - 1 &&
189
+ err . stderr . indexOf ( 'ffmpeg@5' ) === - 1 ) {
189
190
console . error ( err ) ;
190
191
console . log ( 'Either Homebrew is not installed or something else is wrong.\nExiting' ) ;
191
192
process . exit ( 1 ) ;
192
193
}
193
194
194
195
console . log ( 'FFmpeg not installed. Attempting to install via Homebrew.' ) ;
195
196
try {
196
- output = await exec ( 'brew install nasm pkg-config texi2html ffmpeg' ) ;
197
+ output = await exec ( 'brew install nasm pkg-config texi2html ffmpeg@5 ' ) ;
197
198
returnMessage = 'FFmpeg installed via Homebrew.' ;
198
199
} catch ( err ) {
199
200
console . log ( 'Failed to install ffmpeg:\n' ) ;
Original file line number Diff line number Diff line change @@ -265,8 +265,8 @@ export interface VideoInputParam extends InputParam {
265
265
height : number
266
266
pixelFormat : string
267
267
pixelAspect : Array < number >
268
- hw_device_ctx : HWDeviceContext // Optional
269
- swPixelFormat : string // Optional
268
+ hw_device_ctx ? : HWDeviceContext // Optional
269
+ swPixelFormat ? : string // Optional
270
270
}
271
271
/** The required parameters for setting up audio filter inputs */
272
272
export interface AudioInputParam extends InputParam {
You can’t perform that action at this time.
0 commit comments