protonemedia / laravel-ffmpeg

This package provides an integration with FFmpeg for Laravel. Laravel's Filesystem handles the storage of the files.
https://protone.media/en/blog/how-to-use-ffmpeg-in-your-laravel-projects
MIT License
1.62k stars 193 forks source link

Refactor from Process::run #476

Open foremtehan opened 1 year ago

foremtehan commented 1 year ago

Hey man thanks for your amazing library

I wonder how can i reformat this command to this lib ?

$command = [
    'ffmpeg',
    '-i',
    $file,
    '-c:a',
    'libmp3lame',
    '-q:a',
    '0',
    $output
];

Process::run($command)->throw();