kongzy
2024-09-14 f0f00e9ba8a755e4317e029d73b69a92ad9f9df1
exam-common/src/main/java/com/gkhy/exam/common/config/FFmpegConfig.java
@@ -20,8 +20,11 @@
    @Bean
    public FFmpeg fFmpeg() {
        String path = System.getProperty("user.dir");
        if(path.endsWith("exam-admin")){
            path=path.replace("\\exam-admin","");
        }
        if (isLinux()){
            path+="ffmpeg/ffmpeg-linux/ffmpeg";
            path+="/ffmpeg/ffmpeg-linux/ffmpeg";
        }else if (isWindows()){
            path+="/ffmpeg/ffmpeg-win/bin/ffmpeg.exe";
        }
@@ -34,7 +37,7 @@
    public FFprobe fFprobe() {
        String path = System.getProperty("user.dir");
        if (isLinux()){
            path+="ffmpeg/ffmpeg-linux/ffprobe";
            path+="/ffmpeg/ffmpeg-linux/ffprobe";
        }else if (isWindows()){
            path+="/ffmpeg/ffmpeg-win/bin/ffprobe.exe";
        }