diff --git a/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandSetVideoEncoder/1.0.0/index.js b/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandSetVideoEncoder/1.0.0/index.js index 61427d065..9ec099829 100644 --- a/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandSetVideoEncoder/1.0.0/index.js +++ b/FlowPlugins/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandSetVideoEncoder/1.0.0/index.js @@ -159,7 +159,7 @@ var details = function () { return ({ exports.details = details; // eslint-disable-next-line @typescript-eslint/no-unused-vars var plugin = function (args) { return __awaiter(void 0, void 0, void 0, function () { - var lib, hardwareDecoding, hardwareType, i, stream, targetCodec, ffmpegPreset, ffmpegQuality, forceEncoding, hardwarEncoding, encoderProperties; + var lib, hardwareDecoding, hardwareType, i, stream, image_streams, targetCodec, ffmpegPreset, ffmpegQuality, forceEncoding, hardwarEncoding, encoderProperties; var _a, _b; return __generator(this, function (_c) { switch (_c.label) { @@ -175,7 +175,8 @@ var plugin = function (args) { return __awaiter(void 0, void 0, void 0, function case 1: if (!(i < args.variables.ffmpegCommand.streams.length)) return [3 /*break*/, 4]; stream = args.variables.ffmpegCommand.streams[i]; - if (!(stream.codec_type === 'video')) return [3 /*break*/, 3]; + image_streams = ['mjpeg', 'png', 'gif']; + if (!(stream.codec_type === 'video' || image_streams.includes(stream.codec_name))) return [3 /*break*/, 3]; targetCodec = String(args.inputs.outputCodec); ffmpegPreset = String(args.inputs.ffmpegPreset); ffmpegQuality = String(args.inputs.ffmpegQuality); diff --git a/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandSetVideoEncoder/1.0.0/index.ts b/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandSetVideoEncoder/1.0.0/index.ts index 920ece68c..16b9d2475 100644 --- a/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandSetVideoEncoder/1.0.0/index.ts +++ b/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandSetVideoEncoder/1.0.0/index.ts @@ -138,7 +138,8 @@ const plugin = async (args: IpluginInputArgs): Promise => { for (let i = 0; i < args.variables.ffmpegCommand.streams.length; i += 1) { const stream = args.variables.ffmpegCommand.streams[i]; - if (stream.codec_type === 'video') { + const image_streams = ['mjpeg', 'png', 'gif']; + if (stream.codec_type === 'video' || image_streams.includes(stream.codec_name)) { const targetCodec = String(args.inputs.outputCodec); const ffmpegPreset = String(args.inputs.ffmpegPreset); const ffmpegQuality = String(args.inputs.ffmpegQuality);