Skip to content

Commit 9b8255d

Browse files
committed
Added -vn flag for audio transcoding to remove video tracks on transcoded audio
Signed-off-by: Andrew Welch <andrew@nystudio107.com>
1 parent f6440e6 commit 9b8255d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/services/Transcode.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,8 @@ public function getAudioUrl($filePath, $audioOptions): string
349349
.' -i '.escapeshellarg($filePath)
350350
.' -acodec '.$thisEncoder['audioCodec']
351351
.' '.$thisEncoder['audioCodecOptions']
352-
.' -bufsize 1000k -vn'
352+
.' -bufsize 1000k'
353+
.' -vn'
353354
.' -threads '.$thisEncoder['threads'];
354355

355356
// Set the bitrate if desired

0 commit comments

Comments
 (0)