This commit is contained in:
Brooke Vibber 2023-02-16 11:40:59 -08:00
commit 74dbc1419f
4 changed files with 37 additions and 34 deletions

View file

@ -103,9 +103,15 @@ function process_mp3( $filename, $pts ) {
return "$tag$data";
}
$playlist = "caminandes-llamigos.webm.audio.mp3.m3u8";
$playlist_out = "caminandes-llamigos.webm.audio.mp3.combined.m3u8";
$outfile = "caminandes-llamigos.webm.audio.mp3";
$args = $_SERVER['argv'];
$self = array_shift( $args );
//$playlist = "caminandes-llamigos.webm.audio.mp3.m3u8";
//$playlist_out = "caminandes-llamigos.webm.audio.mp3.combined.m3u8";
//$outfile = "caminandes-llamigos.webm.audio.mp3";
$playlist = array_shift( $args );
$playlist_out = $playlist;
$outfile = array_shift( $args );
$lines = file( $playlist, FILE_IGNORE_NEW_LINES + FILE_SKIP_EMPTY_LINES );
$pts = 0.0;
@ -115,7 +121,7 @@ $chunks = [];
$offset = 0;
foreach ( $lines as $line ) {
// todo: create a single-file version
// create a single-file version
// and rewrite the manifest
/*