Skip to content

Formerly KrillinAI, VideoTranslation and Dubbing Tool for 120+ Languages. Open-source AI workspace for creators, powered by Codex. Video downloader, video translation, create videos, images, audios, and edits with Agents in one place. For your Social Media like YouTube, TikTok, Instagram, etc.

fix: get video resolution error

沈浩614ca57fa33a
diff --git a/internal/service/link2file.go b/internal/service/link2file.go
index ec6811f0..1e40f4bb 100644
--- a/internal/service/link2file.go
+++ b/internal/service/link2file.go
@@ -87,6 +87,9 @@ func (s Service) linkToFile(ctx context.Context, stepParam *types.SubtitleTaskSt
if config.Conf.App.Proxy != "" {
cmdArgs = append(cmdArgs, "--proxy", config.Conf.App.Proxy)
}
+ if storage.FfmpegPath != "" {
+ cmdArgs = append(cmdArgs, "--ffmpeg-location", storage.FfmpegPath)
+ }
cmd := exec.Command(storage.YtdlpPath, cmdArgs...)
output, err = cmd.CombinedOutput()
if err != nil {