| | |
| | | @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"; |
| | | } |
| | |
| | | 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"; |
| | | } |