fix: don't quote file paths

This commit is contained in:
2024-09-05 15:56:29 +02:00
parent 46b3ec95bd
commit 5edf4f35ad
+2 -5
View File
@@ -79,11 +79,8 @@ func encode(fullFilePath string, fileName string, teaP *tea.Program, cfg ParsedC
} }
} }
quotedFilePath := fmt.Sprintf("\"%s\"", fullFilePath) err = ffmpeg.Input(fullFilePath).
quotedNewFilePath := fmt.Sprintf("\"%s\"", newFileFullPath) Output(newFileFullPath, ffmpeg.KwArgs{
err = ffmpeg.Input(quotedFilePath).
Output(quotedNewFilePath, ffmpeg.KwArgs{
"c:v": cfg.VideoEncoder, "c:v": cfg.VideoEncoder,
"crf": cfg.CRF, "crf": cfg.CRF,
"preset": cfg.Preset, "preset": cfg.Preset,