You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
userMessage: `Output format '${format}' is not supported by your FFmpeg installation. This could be due to missing codecs or your FFmpeg version not including support for this format. Please check your FFmpeg installation and ensure it includes the necessary encoders/muxers.`
15
+
};
16
+
}
17
+
18
+
if(errorText.includes('unknown encoder')||errorText.includes('encoder not found')){
userMessage: `Video/audio encoder '${encoder}' is not available in your FFmpeg installation. Your FFmpeg may have been compiled without this codec. Please install a version that includes the '${encoder}' encoder.`
24
+
};
25
+
}
26
+
27
+
if(errorText.includes('error initializing the muxer')){
28
+
return{
29
+
isFormatError: true,
30
+
userMessage: `FFmpeg failed to initialize the output format. This usually indicates the output format is not supported or the file extension doesn't match the requested format. Please verify your FFmpeg installation includes the necessary muxers.`
31
+
};
32
+
}
33
+
34
+
if(errorText.includes('unknown decoder')||errorText.includes('decoder not found')){
userMessage: `Video/audio decoder '${decoder}' is not available in your FFmpeg installation. Your FFmpeg may have been compiled without this codec. Please install a version that includes the '${decoder}' decoder.`
userMessage: `Video filter '${filter}' is not available in your FFmpeg installation. Please ensure you have a complete FFmpeg installation with filter support.`
'FFmpeg is not installed on this system. Please install FFmpeg to use image conversion features. Installation guide: https://ffmpeg.org/download.html'
11
+
);
12
+
}
13
+
14
+
if(error.message==='FFPROBE_NOT_FOUND'){
15
+
thrownewNodeOperationError(
16
+
node,
17
+
'FFprobe is not installed on this system. Please install FFmpeg (which includes FFprobe) to use image conversion features. Installation guide: https://ffmpeg.org/download.html'
18
+
);
19
+
}
20
+
21
+
if(error.message.includes('is not supported by your FFmpeg installation')||
22
+
error.message.includes('is not available in your FFmpeg installation')||
23
+
error.message.includes('failed to initialize the output format')||
24
+
error.message.includes('is not supported by the selected codec')||
25
+
error.message.includes('is not available in your FFmpeg installation')){
'FFmpeg is not installed on this system. Please install FFmpeg to use image conversion features. Installation guide: https://ffmpeg.org/download.html'
150
-
);
151
-
}
152
-
thrownewNodeApiError(this.getNode(),errorasany);
160
+
handleFFmpegImageError(error,this.getNode());
153
161
}
154
162
}
155
163
@@ -208,18 +216,6 @@ export async function imageToRaw(this: IExecuteFunctions, imageBuffer: Buffer, u
208
216
awaitcleanupInput();
209
217
awaitcleanupOutput();
210
218
211
-
if(error.message==='FFMPEG_NOT_FOUND'){
212
-
thrownewNodeOperationError(
213
-
this.getNode(),
214
-
'FFmpeg is not installed on this system. Please install FFmpeg to use image conversion features. Installation guide: https://ffmpeg.org/download.html'
215
-
);
216
-
}
217
-
if(error.message==='FFPROBE_NOT_FOUND'){
218
-
thrownewNodeOperationError(
219
-
this.getNode(),
220
-
'FFprobe is not installed on this system. Please install FFmpeg (which includes FFprobe) to use image conversion features. Installation guide: https://ffmpeg.org/download.html'
0 commit comments