diff --git a/converter/bik/converter.go b/converter/bik/converter.go index 5d06b8f..189ff8a 100644 --- a/converter/bik/converter.go +++ b/converter/bik/converter.go @@ -35,6 +35,9 @@ func convertBik(outPath string, in [3]io.ReadSeeker) error { } ffmpegPath, err := exec.LookPath("ffmpeg") + if err != nil { + ffmpegPath, err = exec.LookPath("./ffmpeg") + } useFfmpeg := err == nil if useFfmpeg { cmd := exec.Command(ffmpegPath, "-y", "-f", "bink", "-i", "pipe:", outPath+".mp4") diff --git a/main.go b/main.go index b48afd1..d83f923 100644 --- a/main.go +++ b/main.go @@ -95,7 +95,9 @@ func main() { } if _, err := exec.LookPath("ffmpeg"); err != nil { - prt.Warnf("FFmpeg not installed. Please install FFmpeg to convert videos to MP4. Without FFmpeg, videos will be saved as BIK.") + if _, err := exec.LookPath("./ffmpeg"); err != nil { + prt.Warnf("FFmpeg not installed or found locally. Please install FFmpeg, or place ffmpeg.exe in the current folder to convert videos to MP4. Without FFmpeg, videos will be saved as BIK.") + } } if *gameDir == "" {