ffmpeg-cli-wrapper
ffmpeg-cli-wrapper copied to clipboard
How do I set the number of threads to be processed?
trafficstars
The question How do I set the number of threads to be processed?
**Example **
FFmpegBuilder builder = new FFmpegBuilder()
.setInput(probeResult) // Filename, or a FFmpegProbeResult
.overrideOutputFiles(true) // Override the output if it exists
.addOutput(mp3_convert + "/" + fileName) // Filename for the destination
.setTargetSize(250_000)
.setAudioChannels(1) // Mono audio
.setAudioSampleRate(48_000) // at 48KHz
.setAudioBitRate(65536) // at 64 kbit/s
.done();
What you have tried I tried hard to try .setTheads (4), but it failed.