-
Notifications
You must be signed in to change notification settings - Fork 249
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
It seems that filters cannot be used at the same time #149
Comments
Could you please provide me with a full example? |
here's the full example
i have tried swapping the filter order,only the below one works,for example,If the scaleFilter is added after, the video will only scaled without adding subtitles. If the SubtitleFilter is added later, the video will only add subtitles but not scaled. |
Thanks for testing this. https://stackoverflow.com/questions/6195872/applying-multiple-filters-at-once-with-ffmpeg Something like this is required At the moment each filter added ads an -vf .... to the command line, need to contact them together (and make sure the escaping of special chars still works) |
@mressler Hello Michael, In Encoder.java on lines 391+ we have this stream processing
When two video filters are passed to the Encoder, then it generates this command arguments:
But for ffmpeg, we need only one -vf argument, and then contact the expressions with "; " so it should generate
|
Should be fixed in the 3.2.0-SNAPSHOT release. |
Sorry, I missed the @mention. You likely want to set a complex filtergraph. That's what FFMPEG calls it in the documentation, and that's what I added early in 3.0. But that's a good change to support multiple filters. |
i need to add 2 filters and i tried this:
but only the below one works,
Log says
I don’t know if the method I’m using is incorrect or it’s a bug
The text was updated successfully, but these errors were encountered: