From 4fcd3c9f9577f39f65601a62c01ef7aa3dfef0e7 Mon Sep 17 00:00:00 2001 From: kim Date: Tue, 5 Nov 2024 21:55:35 +0000 Subject: [PATCH] set empty module name when calling ffmpeg / ffprobe --- internal/media/ffmpeg.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/internal/media/ffmpeg.go b/internal/media/ffmpeg.go index 1d7b01905..c225d4378 100644 --- a/internal/media/ffmpeg.go +++ b/internal/media/ffmpeg.go @@ -181,6 +181,10 @@ func ffmpeg(ctx context.Context, inpath string, outpath string, args ...string) } fscfg = fscfg.WithFSMount(shared, path.Dir(inpath)) + // Set anonymous module name. + modcfg = modcfg.WithName("") + + // Update with prepared fs config. return modcfg.WithFSConfig(fscfg) }, }) @@ -247,6 +251,10 @@ func ffprobe(ctx context.Context, filepath string) (*result, error) { } fscfg = fscfg.WithFSMount(in, path.Dir(filepath)) + // Set anonymous module name. + modcfg = modcfg.WithName("") + + // Update with prepared fs config. return modcfg.WithFSConfig(fscfg) }, })