argument("opt"); $path = $this->argument("path"); $queuedFfmpegService = new QueuedFfmpegService(); if ($command == "add") { $queuedFfmpegService->processDir($path); } else { $ffmpeg = new FfmpegService(); $ffmpeg->processDirWithQueue($path, "file_to_encode"); } } }