Skip to content

Commit 24d99aa

Browse files
authored
Merge pull request #31 from peirix/v1
Seek option in audio transcode
2 parents cf22dba + 377b011 commit 24d99aa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/services/Transcode.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,10 @@ public function getAudioUrl($filePath, $audioOptions): string
367367
}
368368
$ffmpegCmd .= ' '.$thisEncoder['audioCodecOptions'];
369369

370+
if (!empty($audioOptions['seekInSecs'])) {
371+
$ffmpegCmd .= ' -ss '.$audioOptions['seekInSecs'];
372+
}
373+
370374
if (!empty($audioOptions['timeInSecs'])) {
371375
$ffmpegCmd .= ' -t '.$audioOptions['timeInSecs'];
372376
}

0 commit comments

Comments
 (0)