This commit is contained in:
2026-08-23 14:13:18 -05:00
parent 789bf91eed
commit 866f243f1b
37 changed files with 1761 additions and 58 deletions
+5 -1
View File
@@ -77,7 +77,11 @@ func (s *Store) ExtractEmbedded(ctx context.Context, mediaPath string, streamInd
"-map", fmt.Sprintf("0:%d", streamIndex),
"-frames:v", "1",
"-c:v", "copy",
"--", tmp.Name(),
// Temporary files deliberately have a neutral .img suffix. Tell
// ffmpeg which muxer to use instead of asking it to infer one from
// that suffix. ffmpeg does not accept `--` as an end-of-options
// marker, so including it here made every embedded-art request fail.
"-f", "image2", tmp.Name(),
)
if out, err := cmd.CombinedOutput(); err != nil {
os.Remove(tmp.Name())