Skip to content

Incorrect order of arguments for input #124

@kresic-ivan-nsoft

Description

@kresic-ivan-nsoft

Hi there,

I'm trying to add some text to an input video for a new output video. However, I'm getting errors no matter what order of commands I try.

The command need to be something like ffmpeg -i input.mp4 -vf "drawtext=...", however, I cannot accomplish that order of arguments, which needs to be respected.

I've tried

  • FFmpegBuilder().addExtraArgs("-vf", "drawtext="..."").addInput().addOutput()
  • FFmpegBuilder().addInput().addExtraArgs("-vf", "drawtext"=..."").addOutput()
  • FFmpegBuilder().addInput().addOutput().addExtraArgs("-vf", ""drawtext=...""),

however, the result is always incorrect order of the arguments (either -vf -i -f -r..., or -i -f -r -vf, both of which cause errors because -vf isn't immediately following the -i).

Any help here? Is there a way to define the order or the args or explicitly say the args should be applied after the input?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions