Skip to content

Commit 4317470

Browse files
br0k3xzImPatrick
authored andcommitted
web/remux: fix mimetype mp3 with certain videos
(cherry picked from commit 1298c5d) br0k3x@1298c5d
1 parent 63d9045 commit 4317470

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

web/src/lib/task-manager/queue.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ const makeAudioArgs = (info: CobaltLocalProcessingResponse) => {
8888
ffargs.push(
8989
"-map", "0",
9090
"-map", "1",
91+
// always encode cover to mjpeg for mp3 to ensure proper mimetype
92+
// this fixes "No mimetype is known for stream" errors
93+
"-c:v", "mjpeg",
9194
...(info.audio.cropCover ? [
92-
"-c:v", "mjpeg",
9395
"-vf", "scale=-1:720,crop=720:720",
94-
] : [
95-
"-c:v", "copy",
96-
]),
96+
] : []),
9797
);
9898
} else {
9999
ffargs.push("-vn");

0 commit comments

Comments
 (0)