func pathBinaryHasCorrectFlags() bool {
	ffmpegPath, err := exec.LookPath("ffmpeg")
	if err != nil {
		return false
	}
	cmd := stashExec.Command(ffmpegPath)
	bytes, _ := cmd.CombinedOutput()
	output := string(bytes)
	hasOpus := strings.Contains(output, "--enable-libopus")
	hasVpx := strings.Contains(output, "--enable-libvpx")
	hasX264 := strings.Contains(output, "--enable-libx264")
	hasX265 := strings.Contains(output, "--enable-libx265")
	hasWebp := strings.Contains(output, "--enable-libwebp")
	return hasOpus && hasVpx && hasX264 && hasX265 && hasWebp
}
// Checks if FFMPEG in the path has the correct flags
Checks if FFMPEG in the path has the correct flags
// Checks if FFMPEG in the path has the correct flags
func pathBinaryHasCorrectFlags() bool {
	ffmpegPath, err := exec.LookPath("ffmpeg")
	if err != nil {
		return false
	}
	cmd := stashExec.Command(ffmpegPath)
	bytes, _ := cmd.CombinedOutput()
	output := string(bytes)
	hasOpus := strings.Contains(output, "--enable-libopus")
	hasVpx := strings.Contains(output, "--enable-libvpx")
	hasX264 := strings.Contains(output, "--enable-libx264")
	hasX265 := strings.Contains(output, "--enable-libx265")
	hasWebp := strings.Contains(output, "--enable-libwebp")
	return hasOpus && hasVpx && hasX264 && hasX265 && hasWebp
}
func pathBinaryHasCorrectFlags ( ) bool { ffmpegPath , err := exec . LookPath ( " " ) if err != nil { return false } cmd := stashExec . Command ( ffmpegPath ) bytes , _ := cmd . CombinedOutput ( ) output := string ( bytes ) hasOpus := strings . Contains ( output , " " ) hasVpx := strings . Contains ( output , " " ) hasX264 := strings . Contains ( output , " " ) hasX265 := strings . Contains ( output , " " ) hasWebp := strings . Contains ( output , " " ) return hasOpus && hasVpx && hasX264 && hasX265 && hasWebp }
Checks if FFMPEG in the path has the correct flags
Checks if FFMPEG in the path has the correct flags