From 5edf4f35ad0c3ce08ec718e4c70afb2ed72cd753 Mon Sep 17 00:00:00 2001 From: IllusionMan1212 Date: Thu, 5 Sep 2024 15:56:29 +0200 Subject: [PATCH] fix: don't quote file paths --- main.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index 604f06d..93d14d4 100644 --- a/main.go +++ b/main.go @@ -79,11 +79,8 @@ func encode(fullFilePath string, fileName string, teaP *tea.Program, cfg ParsedC } } - quotedFilePath := fmt.Sprintf("\"%s\"", fullFilePath) - quotedNewFilePath := fmt.Sprintf("\"%s\"", newFileFullPath) - - err = ffmpeg.Input(quotedFilePath). - Output(quotedNewFilePath, ffmpeg.KwArgs{ + err = ffmpeg.Input(fullFilePath). + Output(newFileFullPath, ffmpeg.KwArgs{ "c:v": cfg.VideoEncoder, "crf": cfg.CRF, "preset": cfg.Preset,