Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing complex arguments to ffmpeg crashes ffmp #21

Closed
CodeF0x opened this issue Feb 4, 2025 · 1 comment
Closed

Passing complex arguments to ffmpeg crashes ffmp #21

CodeF0x opened this issue Feb 4, 2025 · 1 comment

Comments

@CodeF0x
Copy link
Contributor

CodeF0x commented Feb 4, 2025

I am trying to add a watermark to some files with the following command:

dotnet .\FFMP.dll -d 'C:\Users\Tobi\Videos\Delta Force\' --output-pattern "{{name}}_watermark.mp4" --convert -- -i watermark.png -filter_complex "[1]format=rgba,lut=a=val*0.3[watermark];[0][watermark]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2" -c:a copy

This produces the error

Starting application...
Error: The 'codec' argument is required.
Error: The 'output-pattern' argument is required.
Error: Specified input directory 'C:\Users\Tobi\Videos\Delta Force" --output-pattern {{name}}_watermark.mp4 --convert -- -i watermark.png -filter_complex [1]format=rgba,lut=a=val*0.3[watermark];[0][watermark]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2 -c: a copy' does not exist.

--output-pattern is provided and from my understanding, --convert should replace --codec

@CodeF0x CodeF0x changed the title Passing complex arguments to ffmpeg crashes Passing complex arguments to ffmpeg crashes ffmp Feb 4, 2025
@CodeF0x
Copy link
Contributor Author

CodeF0x commented Feb 4, 2025

As it turns out, something else caused the problem. I've opened #22

@CodeF0x CodeF0x closed this as completed Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant