} } else { $outFile = "Joined"; } $outFile = RemoveExtension($outFile); } // Check for available fragments and rename if required if ($f4f->fragNum) { $fragNum = $f4f->fragNum; } else { if ($start) { $fragNum = $start - 1; } } if ($rename) { RenameFragments($baseFilename, $fragNum, $fileExt); $fragNum = 0; } $count = $fragNum + 1; while (true) { if (file_exists($baseFilename . $count) or file_exists($baseFilename . $count . $fileExt)) { $fragCount++; } else { break; } $count++; } LogInfo("Found {$fragCount} fragments"); if (!$f4f->processed) { // Process available fragments if ($fragCount < 1) {
} else { $outFile = "Joined"; } $outFile = RemoveExtension($outFile); } // Check for available fragments and rename if required if ($f4f->fragStart) { $fragStart = $f4f->fragStart; } else { if ($start) { $fragStart = $start - 1; } } $files = GetFragmentList($baseFilename, $fragStart, $fileExt); if ($rename) { $files = RenameFragments($files, $baseFilename); $fragStart = 0; } $fragCount = count($files); if (!($f4f->live or $f4f->play)) { LogInfo("Found " . $fragCount . " fragments"); } // Process available fragments if (!$f4f->processed) { if ($fragCount < 1) { exit(1); } $f4f->lastFrag = $fragStart; $f4f->outFile = $outFile; $timeStart = microtime(true); LogDebug("Joining Fragments:");