-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8f84111
commit 0122ce0
Showing
3 changed files
with
26 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package logic | ||
|
||
import ( | ||
"fmt" | ||
"os/exec" | ||
"runtime" | ||
ffstatic_windows_amd64 "github.com/go-ffstatic/windows-amd64" | ||
) | ||
|
||
func findFFmpeg() (string, error) { | ||
|
||
path, err := exec.LookPath("ffmpeg") | ||
if err == nil { | ||
return path, nil | ||
} | ||
|
||
// Add platform-specific fallback paths | ||
if runtime.GOOS == "windows" { | ||
return ffstatic_darwin_amd64.FFmpegPath(), nil | ||
} | ||
|
||
return "", fmt.Errorf("FFmpeg not found") | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters