<?php require_once 'vendor/autoload.php'; use Senorbacon\StitchLib\StitchLib; if ($argc < 2) { die("Usage: php " . $argv[0] . " <filename>\n - filename points to file with list of videos to stitch together"); } if (!is_file($argv[1])) { die("Videos file '{$argv[1]}' not found"); } $videos = file_get_contents($argv[1]); try { echo StitchLib::stitch(explode("\n", $videos)); } catch (Exception $e) { die($e->getMessage()); }