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

Allow to create empty arguments #196

Closed
wants to merge 2 commits into from

Conversation

CriggerMarg
Copy link

I was in need to create command like
-loop 1 -i "empty.png" -t 31
and was unable to do so because I have to use some input first.
So I was getting
-i "empty.png" -loop 1 -t 31
instead and that is wrong command, it does not produce video with desired length.

Now I can use it like this

FFMpegArguments.FromEmpty(options => options.Loop(1))
.AddFileInput("empty.png")
...

I was in need to create command like 
-loop 1 -i "empty.png" -t 31
and was unable to do so because I have to use some input first. 
So I was getting 
-i "empty.png" -loop 1 -t 31 
instead and that is wrong command, it does not produce video with desired length.
@rosenbjerg
Copy link
Owner

Can't the same thing be achieved with FFMpegArguments.FromFileInput("/path", opt => opt.Loop(1)).OutputTo....?

@rosenbjerg
Copy link
Owner

Options on Input are put before -i ..., similarly, options to output are put before the output arg

@CriggerMarg
Copy link
Author

Options on Input are put before -i ..., similarly, options to output are put before the output arg

Well, yes. That way works. My apologies, closing PR

@CriggerMarg CriggerMarg closed this Apr 1, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants