weee
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user