$ffmpeg = FFMpeg\FFMpeg::create([
'ffmpeg.binaries' => '/opt/local/ffmpeg/bin/ffmpeg',
'timeout' => 3600, // The timeout for the underlying process
'ffmpeg.threads' => 1, // The number of threads that FFMpeg should use
), $logger);
$video = $ffmpeg->open('video.mpg');
$video
->frame(FFMpeg\Coordinate\TimeCode::fromSeconds(1))
->save('frame.jpg');