From 48c6373afaacfbb3919da7a7fc976030455870b3 Mon Sep 17 00:00:00 2001 From: thundxrr <159169975+thundxrr@users.noreply.github.com> Date: Mon, 29 Jul 2024 18:54:04 +0700 Subject: [PATCH] Added detection for n-prefixed ffmpeg version string (#5102) --- pkg/ffmpeg/ffmpeg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ffmpeg/ffmpeg.go b/pkg/ffmpeg/ffmpeg.go index 5ee98a873..c32a3e2fd 100644 --- a/pkg/ffmpeg/ffmpeg.go +++ b/pkg/ffmpeg/ffmpeg.go @@ -158,7 +158,7 @@ func (f *FFMpeg) getVersion() error { return err } - version_re := regexp.MustCompile(`ffmpeg version ((\d+)\.(\d+)(?:\.(\d+))?)`) + version_re := regexp.MustCompile(`ffmpeg version n?((\d+)\.(\d+)(?:\.(\d+))?)`) stdoutStr := stdout.String() match := version_re.FindStringSubmatchIndex(stdoutStr) if match == nil {