Update flows

This commit is contained in:
HaveAGitGat 2023-08-26 17:53:07 +01:00
parent 658857fdf4
commit 25c4fab8d9
73 changed files with 4295 additions and 839 deletions

View file

@ -52,12 +52,13 @@ const plugin = (args:IpluginInputArgs):IpluginOutputArgs => {
let hasCodec = false;
// @ts-expect-error type
args.inputFileObj.ffProbeData.streams.forEach((stream) => {
if (stream.codec_type === 'video' && stream.codec_name === args.inputs.codec) {
hasCodec = true;
}
});
if (args.inputFileObj.ffProbeData.streams) {
args.inputFileObj.ffProbeData.streams.forEach((stream) => {
if (stream.codec_type === 'video' && stream.codec_name === args.inputs.codec) {
hasCodec = true;
}
});
}
return {
outputFileObj: args.inputFileObj,