Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Sep 9, 2024
1 parent 9837da6 commit eca4f60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions objects/HLSProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public static function createHLSWithAudioTracks($pathFileName, $destinationFile)

// Add resolution playlist entry to the master playlist
$masterPlaylist .= "#EXT-X-STREAM-INF:BANDWIDTH=" . ($rate * 1000) . ",RESOLUTION=-2x{$value},AUDIO=\"audio_group\"\n";
$masterPlaylist .= "res{$value}/index.m3u8 \n";
$masterPlaylist .= "res{$value}/index.m3u8".PHP_EOL;

// Append FFmpeg command for this resolution
$ffmpegCommand .= self::getFFmpegCommandForResolution($pathFileName, $value, $rate, $framerate, $audioTracks, $keyInfoFile, $outputFile);
Expand All @@ -109,7 +109,7 @@ public static function createHLSWithAudioTracks($pathFileName, $destinationFile)

// Add resolution playlist entry to the master playlist
$masterPlaylist .= "#EXT-X-STREAM-INF:BANDWIDTH=" . ($rate * 1000) . ",RESOLUTION=-2x{$resolution},AUDIO=\"audio_group\"\n";
$masterPlaylist .= "res{$resolution}/index.m3u8 \n";
$masterPlaylist .= "res{$resolution}/index.m3u8".PHP_EOL;

// Append FFmpeg command for this resolution
$ffmpegCommand .= self::getFFmpegCommandForResolution($pathFileName, $resolution, $rate, $framerate, $audioTracks, $keyInfoFile, $outputFile);
Expand Down

0 comments on commit eca4f60

Please sign in to comment.