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

Create multiple target outputs #170

Open
gunrosen opened this issue Sep 14, 2021 · 3 comments
Open

Create multiple target outputs #170

gunrosen opened this issue Sep 14, 2021 · 3 comments

Comments

@gunrosen
Copy link

Does jave2 support to generate multiple target files of the sample input?
For example, command like this:

ffmpeg -i input \
	-s 1280x720 -acodec … -vcodec … output1 \
	-s 640x480  -acodec … -vcodec … output2 \
	-s 320x240  -acodec … -vcodec … output3

Ref: https://trac.ffmpeg.org/wiki/Creating%20multiple%20outputs
I read docs and examples but not find how to do that.

@a-schild
Copy link
Owner

This is not supported at the moment.
I would accept a pull request to add this functionality.

But I wonder if it performance wise better to do it this way, or perhaps it's better to just start one instance per target format/file.
Do you have some performance comparisions between using the single call, versus 3 concurrent calls?

@gunrosen
Copy link
Author

I know, performance would be considered. Currently, it works fine without multiple target outputs.
I see this guy having the same concern with me. Hope it helps.
https://itectec.com/superuser/ffmpeg-multiple-outputs-performance-single-instance-vs-multiple-instances/

@a-schild
Copy link
Owner

I don't see an advantage when using multiple targets in the same call/process as mentioned in the link you provided.
So I don't see an advantage to implement it on jave...

Of course if you provide your own benchmarks, perhaps....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants