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:
parent
39a44c3735
commit
976fa6e63c
@ -61,7 +61,6 @@ public class AudioResolver implements ParametersResolver {
|
|||||||
} else {
|
} else {
|
||||||
parameters.enable(AudioBitrate.ID);
|
parameters.enable(AudioBitrate.ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@ public class OutputFormatResolver implements ParametersResolver {
|
|||||||
@Override
|
@Override
|
||||||
public void resolve(@NotNull Parameters parameters, @NotNull FileInfo fileInfo) {
|
public void resolve(@NotNull Parameters parameters, @NotNull FileInfo fileInfo) {
|
||||||
final var outputFormat = switch (fileInfo.fileType()) {
|
final var outputFormat = switch (fileInfo.fileType()) {
|
||||||
|
case AUDIO, VOICE -> new OutputFormat(List.of(AUDIO, AUDIO_SPECTRUM), AUDIO);
|
||||||
case VIDEO -> forVideo(fileInfo);
|
case VIDEO -> forVideo(fileInfo);
|
||||||
case VIDEO_NOTE -> new OutputFormat(List.of(VIDEO_NOTE, VIDEO, AUDIO, AUDIO_SPECTRUM), VIDEO_NOTE);
|
case VIDEO_NOTE -> new OutputFormat(List.of(VIDEO_NOTE, VIDEO, AUDIO, AUDIO_SPECTRUM), VIDEO_NOTE);
|
||||||
case ANIMATION -> forAnimation(fileInfo);
|
case ANIMATION -> forAnimation(fileInfo);
|
||||||
|
Loading…
Reference in New Issue
Block a user