use of org.fagu.fmv.ffmpeg.filter.impl.Volume in project fmv by f-agu.
the class FFHelper method audioVolumeAdjustToMax.
/**
* @param inFile
* @param outFile
* @throws IOException
*/
public static void audioVolumeAdjustToMax(File inFile, File outFile) throws IOException {
VolumeDetected volumeDetected = audioVolumeDetect(inFile);
System.out.println(volumeDetected);
FFMPEGExecutorBuilder builder = FFMPEGExecutorBuilder.create();
builder.addMediaInputFile(inFile);
Volume volume = Volume.build().increaseToMax(volumeDetected);
builder.filter(volume);
builder.addMediaOutputFile(outFile).videoCodecCopy().overwrite();
FFExecutor<Object> executor = builder.build();
executor.execute();
}
Aggregations