diff --git a/main.go b/main.go index fd0d3ee..4731027 100644 --- a/main.go +++ b/main.go @@ -7,9 +7,9 @@ import ( "fmt" "io" "net/http" - "path/filepath" "os" "os/exec" + "path/filepath" "regexp" "strconv" "strings" @@ -83,14 +83,24 @@ func main() { // Falls nicht bereits .mp4 als Endung existiert if ext != ".mp4" { - mp4Out = strings.TrimSuffix(outputPath, ext) + ".mp4" + mp4Out = strings.TrimSuffix(outputPath, ext) + ".mp4" } - if err := exec.Command("ffmpeg", "-y", "-i", outputPath, "-c", "copy", mp4Out).Run(); err != nil { + if err := exec.Command( + "ffmpeg", + "-y", + "-i", outputPath, + "-c:v", "copy", + "-c:a", "copy", + "-bsf:a", "aac_adtstoasc", + "-movflags", "+faststart", + mp4Out, + ).Run(); err != nil { fmt.Println("⚠️ Fehler bei Umwandlung in MP4:", err) } else { - fmt.Println("✅ Umwandlung abgeschlossen:", mp4Out) + fmt.Println("✅ Umwandlung abgeschlossen (web-optimiert):", mp4Out) } + } // --- helper --- diff --git a/recorder.exe b/recorder.exe index 4773972..8619536 100644 Binary files a/recorder.exe and b/recorder.exe differ