Skip to content

Commit

Permalink
[TASK] change output file name
Browse files Browse the repository at this point in the history
dpolakovics committed Nov 5, 2024
1 parent 9cc2b66 commit 8a22d21
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/logic/sync-stereo.go
Original file line number Diff line number Diff line change
@@ -38,6 +38,8 @@ func combineStereoFiles(folder1 string, folder2 string, outputFolder string, pro
}

// Construct FFmpeg command
newFileName := outputFolder + "/" + filepath.Base(files2[index])
newFileName = newFileName[:len(newFileName)-4] + "_synced.mp3"
ctx, _ := context.WithCancel(context.Background())
cmd := exec.CommandContext(ctx, ffmpegPath,
"-i", file,
@@ -46,7 +48,7 @@ func combineStereoFiles(folder1 string, folder2 string, outputFolder string, pro
"-progress",
"pipe:1",
"-map", "[a]",
outputFolder + "/" + filepath.Base(files2[index]))
newFileName)
cmd.SysProcAttr = getSysProcAttr()
stdout, err := cmd.StdoutPipe()
if err != nil {

0 comments on commit 8a22d21

Please sign in to comment.