This bundle provides a simple wrapper for the PHP_FFmpeg library, exposing the library as a Symfony service.
Configure which ffmpeg binary to use in config.yml
:
dubture_f_fmpeg:
ffmpeg_binary: /usr/bin/ffmpeg
ffprobe_binary: /usr/bin/ffprobe
Using the service:
$ffmpeg = $this->get('dubture_ffmpeg.ffmpeg');
$ffmpeg->open('Video.mpeg')
->encode(new WebM(), 'file.webm')
->encode(new X264, 'file.mp4')
->encode(new Ogg(), 'file.ogv')
->close();