Skip to content

Commit

Permalink
Upgrade to ffmpeg caused issue with previous syntax for video croppin…
Browse files Browse the repository at this point in the history
…g, try fix by specifying the use of stream to act on explicitly.
  • Loading branch information
Layoric committed Nov 22, 2024
1 parent 3feeee1 commit e7df42c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AiServer.ServiceInterface/Generation/ComfyProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public async Task<TransformResult> TransformMediaAsync(MediaProvider provider, M
// Handle cropping
if (args is { CropX: not null, CropY: not null, CropWidth: not null, CropHeight: not null })
{
filterComplex.Add($"crop={args.CropWidth}:{args.CropHeight}:{args.CropX}:{args.CropY}");
filterComplex.Add($"[0:v]crop={args.CropWidth}:{args.CropHeight}:{args.CropX}:{args.CropY}");
}

if (args is { WatermarkInput: not null, WatermarkPosition: not null })
Expand Down

0 comments on commit e7df42c

Please sign in to comment.