jave2 icon indicating copy to clipboard operation
jave2 copied to clipboard

Create multiple target outputs

Open gunrosen opened this issue 4 years ago • 3 comments
trafficstars

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.

gunrosen avatar Sep 14 '21 10:09 gunrosen

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?

a-schild avatar Sep 14 '21 14:09 a-schild

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/

gunrosen avatar Sep 14 '21 17:09 gunrosen

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....

a-schild avatar Sep 14 '21 17:09 a-schild