isIs there a cleaner way to do this?
try {
$ffprobe = FFProbe::create();
$streams = $ffprobe->streams($infile);
$videoStreams = $streams->videos();
$audioStreams = $streams->audios();
if (!$videoStreams) {
throw new Exception("Could not find a video stream for file: " . $infile . PHP_EOL);
}
} catch (RuntimeException $e) {
throw $e;
}