Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
gael-connan-cybex committed Aug 21, 2024
1 parent bce472c commit cf96af0
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions app/Jobs/TranscodeVideo.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,19 +200,6 @@ protected function isLocalFilesystem(Filesystem $disk): bool
return $disk->getAdapter() instanceof LocalFilesystemAdapter;
}

/**
* The original needs to be available locally, since transcoding to MP4 uses the basic PHP-FFmpeg package, which cannot access cloud storages.
*
* @param FFMpeg $ffmpeg
* @return StreamingMedia
*/
protected function openFromCloud(FFMpeg $ffmpeg): StreamingMedia
{
$this->localDisk->writeStream($this->tempOriginalFilename, $this->originalsDisk->readStream($this->originalFilePath));

return $ffmpeg->customInput($this->localDisk->path($this->tempOriginalFilename), $this->decoder->getInitialParameters());
}

/**
* Sets the file name and file paths which are needed for the transcoding process.
*
Expand Down

0 comments on commit cf96af0

Please sign in to comment.