Fix some errors

This commit is contained in:
grosroro 2012-05-28 14:29:20 +02:00
commit 8954d1e013

View file

@ -8,8 +8,8 @@ In the examples we will show you, we assume we work in an environnment where
FFMpeg has been initialized to ``$ffmpeg`` var ; there are two ways to FFMpeg has been initialized to ``$ffmpeg`` var ; there are two ways to
initialize the environment : initialize the environment :
Autoloading FFMpeg Loading FFMpeg automatically
^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The easiest way to initialize ``FMpeg`` it is to call the loader ; this will The easiest way to initialize ``FMpeg`` it is to call the loader ; this will
look in your PATH environment variable to find ffmpeg/avconv binary : look in your PATH environment variable to find ffmpeg/avconv binary :
@ -29,7 +29,7 @@ look in your PATH environment variable to find ffmpeg/avconv binary :
// This logger provides some usefull infos about what's happening // This logger provides some usefull infos about what's happening
$ffmpeg = FFMpeg::load($logger); $ffmpeg = FFMpeg::load($logger);
.. note:: FFMpeg and FFProbe both requires a logger with gives ffedback about .. note:: FFMpeg and FFProbe both requires a logger with gives feedback about
what's happening. By passing a NullHandler to the logger, you disable the what's happening. By passing a NullHandler to the logger, you disable the
logging system. logging system.
@ -42,7 +42,7 @@ You can also initialize with a custom path to the binary :
.. code-block:: php .. code-block:: php
<?php <?php
$ffmpeg = new FFMpeg::load('/usr/local/src/ffmpeg/bin/ffmpeg', $logger); $ffmpeg = new FFMpeg('/usr/local/src/ffmpeg/bin/ffmpeg', $logger);
Defining formats Defining formats
@ -68,6 +68,9 @@ target file `file.ogv` :
->encode($oggFormat, 'file.ogv') ->encode($oggFormat, 'file.ogv')
->close(); ->close();
.. note: ``FFmpeg`` methods always return the object itself so you can chain
multiple methods.
Create HTML5 videos Create HTML5 videos
^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^
@ -108,6 +111,7 @@ These formats are available as these objects :
Create your own media type Create your own media type
^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^
FFProbe recipes FFProbe recipes
--------------- ---------------