2017 © Pedro PelĂĄez
 

symfony-bundle sonata-media-provider-video-bundle

This bundle extends providers Sonata Media Bundle, creates a new provider for uploading videos and use FFmpeg

image

xmon/sonata-media-provider-video-bundle

This bundle extends providers Sonata Media Bundle, creates a new provider for uploading videos and use FFmpeg

  • Friday, September 30, 2016
  • by jjeag
  • Repository
  • 4 Watchers
  • 2 Stars
  • 1,048 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 10 Forks
  • 8 Open issues
  • 10 Versions
  • 2 % Grown

The README.md

SonataMediaProviderVideoBundle

The SonataMediaProviderVideoBundle extends providers SonataMediaBundle, creates a new video provider for uploading videos, generate thumbnail and use FFmpeg., (*1)

This Bundle is based on sergeym/VideoBundle, this Fork and the rest of the Forks of the main project appear to be abandoned and I have made many changes, so I decided to create a new functional and documented project., (*2)

Requirements

You need install ffmpeg in your server., (*3)

Installation

First you need install phansys/getid3 dependency

$ php composer.phar require phansys/getid3:~2.1@dev

There are a problem installing from composer.json of this bundle, issue #16, (*4)

Install this bundle

$ php composer.phar require xmon/sonata-media-provider-video-bundle 

Add VideoBundle to your application kernel

// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new Xmon\SonataMediaProviderVideoBundle\XmonSonataMediaProviderVideoBundle(),
        // ...
    );
}

Configuration example

fter installing the bundle, make sure you configure these parameters, (*5)

xmon_sonata_media_provider_video:
    ffmpeg_binary: "/usr/local/bin/ffmpeg" # Required, ffmpeg binary path
    ffprobe_binary: "/usr/local/bin/ffprobe" # Required, ffprobe binary path
    binary_timeout: 60 # Optional, default 60
    threads_count: 4 # Optional, default 4
    config:
        image_frame: 5 # Optional, default 10, Can not be empty. Where the second image capture
        video_width: 640 # Optional, default 640, Can not be empty. Video proportionally scaled to this width
    formats:
        mp4: true # Optional, default true, generate MP4 format
        ogg: true # Optional, default true, generate OGG format
        webm: true # Optional, default true, generate WEBM format

Twig usage

For printing the URLs of the converted videos that have been saved in the metadata field, I have created 3 twig filters, (*6)

{{ media|video_mp4 }}
{{ media|video_ogg }}
{{ media|video_webm }}

Credits

The Versions

30/09 2016

dev-master

9999999-dev https://github.com/xmon/SonataMediaProviderVideoBundle

This bundle extends providers Sonata Media Bundle, creates a new provider for uploading videos and use FFmpeg

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony2 bundle video media ffmpeg sonata-media

30/09 2016

v1.0.4

1.0.4.0 https://github.com/xmon/SonataMediaProviderVideoBundle

This bundle extends providers Sonata Media Bundle, creates a new provider for uploading videos and use FFmpeg

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony2 bundle video media ffmpeg sonata-media

31/05 2016

v1.0.3

1.0.3.0 https://github.com/xmon/SonataMediaProviderVideoBundle

This bundle extends providers Sonata Media Bundle, creates a new provider for uploading videos and use FFmpeg

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony2 bundle video media ffmpeg sonata-media

27/04 2016

v1.0.2

1.0.2.0 https://github.com/xmon/SonataMediaProviderVideoBundle

This bundle extends providers Sonata Media Bundle, creates a new provider for uploading videos and use FFmpeg

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony2 bundle video media ffmpeg sonata-media

02/04 2016

v1.0.1

1.0.1.0 https://github.com/xmon/SonataMediaProviderVideoBundle

This bundle extends providers Sonata Media Bundle, creates a new provider for uploading videos and use FFmpeg

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony2 bundle video media ffmpeg sonata-media

16/03 2016

v1.0.0

1.0.0.0 https://github.com/xmon/SonataMediaProviderVideoBundle

This bundle extends providers Sonata Media Bundle, creates a new provider for uploading videos and use FFmpeg

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony2 bundle video media ffmpeg sonata-media

15/03 2016

v0.0.5-beta

0.0.5.0-beta https://github.com/xmon/SonataMediaProviderVideoBundle

This bundle extends providers Sonata Media Bundle, creates a new provider for uploading videos and use FFmpeg

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony2 bundle video media ffmpeg sonata-media

15/03 2016

v0.0.4-beta

0.0.4.0-beta https://github.com/xmon/SonataMediaProviderVideoBundle

This bundle extends providers Sonata Media Bundle, creates a new provider for uploading videos and use FFmpeg

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony2 bundle video media ffmpeg sonata-media

14/03 2016

v0.0.2-beta

0.0.2.0-beta https://github.com/xmon/SonataMediaProviderVideoBundle

This bundle extends providers Sonata Media Bundle, creates a new provider for uploading videos and use FFmpeg

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony2 bundle video media ffmpeg sonata-media

14/03 2016

v0.0.1-beta

0.0.1.0-beta https://github.com/xmon/SonataMediaProviderVideoBundle

This bundle extends providers Sonata Media Bundle, creates a new provider for uploading videos and use FFmpeg

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony2 bundle video media ffmpeg sonata-media