diff --git a/source/net/filebot/media/FFProbe.java b/source/net/filebot/media/FFProbe.java index 7cb53ead..d7accf45 100644 --- a/source/net/filebot/media/FFProbe.java +++ b/source/net/filebot/media/FFProbe.java @@ -20,10 +20,14 @@ import com.cedarsoftware.util.io.JsonWriter; public class FFProbe implements MediaCharacteristics { - protected String getFFProbeCommand() { + public String getFFProbeCommand() { return System.getProperty("net.filebot.media.ffprobe", "ffprobe"); } + public String version() throws IOException { + return execute(getFFProbeCommand(), "-show_program_version", "-hide_banner").toString(); + } + protected Map parse(File file) throws IOException, InterruptedException { String[] command = { getFFProbeCommand(), "-show_streams", "-show_format", "-print_format", "json", "-v", "error", file.getCanonicalPath() }; diff --git a/source/net/filebot/web/AcoustIDClient.java b/source/net/filebot/web/AcoustIDClient.java index 18eda093..a041d9d0 100644 --- a/source/net/filebot/web/AcoustIDClient.java +++ b/source/net/filebot/web/AcoustIDClient.java @@ -192,6 +192,10 @@ public class AcoustIDClient implements MusicIdentificationService { return System.getProperty("net.filebot.AcoustID.fpcalc", "fpcalc"); } + public String version() throws IOException { + return execute(getChromaprintCommand(), "-version").toString(); + } + public Map fpcalc(File file) throws IOException, InterruptedException { Map fields = new EnumMap(ChromaprintField.class);