argument("opt"); $path = $this->argument("path"); $queuedFfmpegService = new QueuedFfmpegService(); if ($command == "add") { $queuedFfmpegService->processDir($path); } else { $queuedFfmpegService->setDestinationDirectory("/mnt/e/rec_encode/"); $queuedFfmpegService->processQueue(); // $ffmpeg = new FfmpegService(); // $ffmpeg->setNeedRemoveExistFiles(false); // $ffmpeg->setNeedRemoveAfterEncode(true); // $ffmpeg->processDirWithQueue($path, "file_to_encode"); } } }