Skip to content

Commit

Permalink
'#1823: log warning instead of aborting if FFmpeg in not on PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
lfcnassif committed May 25, 2024
1 parent 067fc8f commit f8b3f5f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import iped.engine.config.AudioTranscriptConfig;
import iped.engine.config.Configuration;
import iped.engine.config.ConfigurationManager;
import iped.exception.IPEDException;

public class WhisperTranscriptTask extends Wav2Vec2TranscriptTask {

Expand All @@ -35,7 +34,7 @@ public void init(ConfigurationManager configurationManager) throws Exception {
try {
Runtime.getRuntime().exec("ffmpeg");
} catch (IOException e) {
throw new IPEDException("Error checking FFmpeg presence, is it on PATH?");
logger.warn("FFmpeg not found on PATH, transcription won't work if you switched to WhisperX library.");
}
}
super.init(configurationManager);
Expand Down

0 comments on commit f8b3f5f

Please sign in to comment.