Skip to content

Symfony bundle to provide PHP-FFmpeg as a Symfony service

License

Notifications You must be signed in to change notification settings

gizmola/ffmpeg-bundle

 
 

Repository files navigation

Symfony ffmpeg bundle

This bundle provides a simple wrapper for the PHP_FFmpeg library, exposing the library as a Symfony service.

Example usage

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();

About

Symfony bundle to provide PHP-FFmpeg as a Symfony service

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%