1
0
mirror of https://github.com/aNNiMON/ffmpegbot synced 2024-09-19 22:54:20 +03:00

Show audio spectrum output for audio and voices

This commit is contained in:
aNNiMON 2024-09-15 23:32:34 +03:00
parent 39a44c3735
commit 976fa6e63c
2 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,6 @@ public class AudioResolver implements ParametersResolver {
} else {
parameters.enable(AudioBitrate.ID);
}
});
}

View File

@ -14,6 +14,7 @@ public class OutputFormatResolver implements ParametersResolver {
@Override
public void resolve(@NotNull Parameters parameters, @NotNull FileInfo fileInfo) {
final var outputFormat = switch (fileInfo.fileType()) {
case AUDIO, VOICE -> new OutputFormat(List.of(AUDIO, AUDIO_SPECTRUM), AUDIO);
case VIDEO -> forVideo(fileInfo);
case VIDEO_NOTE -> new OutputFormat(List.of(VIDEO_NOTE, VIDEO, AUDIO, AUDIO_SPECTRUM), VIDEO_NOTE);
case ANIMATION -> forAnimation(fileInfo);