diff --git a/src/FFMpeg/Binary.php b/src/FFMpeg/Binary.php index d163f2f..889085f 100644 --- a/src/FFMpeg/Binary.php +++ b/src/FFMpeg/Binary.php @@ -31,8 +31,8 @@ abstract class Binary implements AdapterInterface /** * Binary constructor * - * @param type $binary The path file to the binary - * @param \Monolog\Logger $logger A logger + * @param type $binary The path file to the binary + * @param \Monolog\Logger $logger A logger */ public function __construct($binary, \Monolog\Logger $logger = null) { @@ -49,8 +49,8 @@ abstract class Binary implements AdapterInterface /** * Load the static binary * - * @param \Monolog\Logger $logger A logger - * @return \FFMpeg\Binary The binary + * @param \Monolog\Logger $logger A logger + * @return \FFMpeg\Binary The binary * @throws Exception\BinaryNotFoundException */ public static function load(\Monolog\Logger $logger = null) diff --git a/src/FFMpeg/FFMpeg.php b/src/FFMpeg/FFMpeg.php index 3da7145..2649a9a 100644 --- a/src/FFMpeg/FFMpeg.php +++ b/src/FFMpeg/FFMpeg.php @@ -25,7 +25,7 @@ class FFMpeg extends Binary /** * Opens a file in order to be processed * - * @param string $pathfile + * @param string $pathfile * @return \FFMpeg\FFMpeg * @throws Exception\InvalidFileArgumentException */ @@ -58,8 +58,8 @@ class FFMpeg extends Binary /** * - * @param int $time The time in second where to take the snapshot - * @param string $output The pathfile where to write + * @param integer $time The time in second where to take the snapshot + * @param string $output The pathfile where to write * @return \FFMpeg\FFMpeg * @throws Exception\RuntimeException * @throws Exception\LogicException @@ -101,9 +101,9 @@ class FFMpeg extends Binary /** * Encode the file to the specified format * - * @param Format\AudioFormat $format The output format - * @param string $outputPathfile The pathfile where to write - * @param int $threads The number of threads to use + * @param Format\AudioFormat $format The output format + * @param string $outputPathfile The pathfile where to write + * @param integer $threads The number of threads to use * @return \FFMpeg\FFMpeg * @throws Exception\RuntimeException * @throws Exception\LogicException @@ -132,9 +132,9 @@ class FFMpeg extends Binary /** * Encode to audio * - * @param Format\AudioFormat $format The output format - * @param string $outputPathfile The pathfile where to write - * @param int $threads The number of threads to use + * @param Format\AudioFormat $format The output format + * @param string $outputPathfile The pathfile where to write + * @param integer $threads The number of threads to use * @return \FFMpeg\FFMpeg * @throws Exception\RuntimeException */ @@ -168,9 +168,9 @@ class FFMpeg extends Binary /** * Encode to video * - * @param Format\VideoFormat $format The output format - * @param string $outputPathfile The pathfile where to write - * @param int $threads The number of threads to use + * @param Format\VideoFormat $format The output format + * @param string $outputPathfile The pathfile where to write + * @param integer $threads The number of threads to use * @return \FFMpeg\FFMpeg * @throws Exception\RuntimeException */ @@ -192,7 +192,6 @@ class FFMpeg extends Binary . ' -trellis 1 -qscale 1 ' . '-acodec ' . $format->getAudioCodec() . ' -ab 92k '; - $tmpFile = new \SplFileInfo(tempnam(sys_get_temp_dir(), 'temp') . '.' . pathinfo($outputPathfile, PATHINFO_EXTENSION)); $passes = array(); diff --git a/src/FFMpeg/FFProbe.php b/src/FFMpeg/FFProbe.php index 18c5b0c..3827c11 100644 --- a/src/FFMpeg/FFProbe.php +++ b/src/FFMpeg/FFProbe.php @@ -24,7 +24,7 @@ class FFProbe extends Binary /** * Probe the format of a given file * - * @param string $pathfile + * @param string $pathfile * @return string * @throws Exception\InvalidFileArgumentException * @throws Exception\RuntimeException @@ -43,7 +43,7 @@ class FFProbe extends Binary /** * Probe the streams contained in a given file * - * @param string $pathfile + * @param string $pathfile * @return string * @throws Exception\InvalidFileArgumentException * @throws Exception\RuntimeException @@ -61,7 +61,7 @@ class FFProbe extends Binary /** * - * @param string $command + * @param string $command * @return string * @throws Exception\RuntimeException */ diff --git a/src/FFMpeg/Format/Audio/Flac.php b/src/FFMpeg/Format/Audio/Flac.php index a556e62..079165d 100644 --- a/src/FFMpeg/Format/Audio/Flac.php +++ b/src/FFMpeg/Format/Audio/Flac.php @@ -29,4 +29,4 @@ class Flac extends DefaultAudioFormat { return array('flac'); } -} \ No newline at end of file +} diff --git a/src/FFMpeg/Format/Audio/Mp3.php b/src/FFMpeg/Format/Audio/Mp3.php index ee60c38..8f52831 100644 --- a/src/FFMpeg/Format/Audio/Mp3.php +++ b/src/FFMpeg/Format/Audio/Mp3.php @@ -29,4 +29,4 @@ class Mp3 extends DefaultAudioFormat { return array('libmp3lame'); } -} \ No newline at end of file +} diff --git a/src/FFMpeg/Format/AudioFormat.php b/src/FFMpeg/Format/AudioFormat.php index 99bbeba..f2cfd34 100644 --- a/src/FFMpeg/Format/AudioFormat.php +++ b/src/FFMpeg/Format/AudioFormat.php @@ -26,4 +26,4 @@ interface AudioFormat * @return array */ public function getAvailableAudioCodecs(); -} \ No newline at end of file +} diff --git a/src/FFMpeg/Format/DefaultAudioFormat.php b/src/FFMpeg/Format/DefaultAudioFormat.php index dce7601..e45a261 100644 --- a/src/FFMpeg/Format/DefaultAudioFormat.php +++ b/src/FFMpeg/Format/DefaultAudioFormat.php @@ -46,7 +46,7 @@ abstract class DefaultAudioFormat implements AudioFormat * Set the audio codec, Should be in the available ones, otherwise an * exception is thrown * - * @param string $audioCodec + * @param string $audioCodec * @throws \InvalidArgumentException */ public function setAudioCodec($audioCodec) @@ -74,7 +74,7 @@ abstract class DefaultAudioFormat implements AudioFormat /** * Set the audio sample rate * - * @param int $audioSampleRate + * @param integer $audioSampleRate * @throws \InvalidArgumentException */ public function setAudioSampleRate($audioSampleRate) @@ -99,7 +99,7 @@ abstract class DefaultAudioFormat implements AudioFormat /** * Set the kiloBitrate value * - * @param int $kiloBitrate + * @param int integer $kiloBitrate * @throws \InvalidArgumentException */ public function setKiloBitrate($kiloBitrate) diff --git a/src/FFMpeg/Format/DefaultVideoFormat.php b/src/FFMpeg/Format/DefaultVideoFormat.php index 04125e2..52da3f9 100644 --- a/src/FFMpeg/Format/DefaultVideoFormat.php +++ b/src/FFMpeg/Format/DefaultVideoFormat.php @@ -53,8 +53,8 @@ abstract class DefaultVideoFormat extends DefaultAudioFormat implements VideoFor /** * Set the dimensions * - * @param int $width The heigth - * @param int $height The width + * @param integer $width The heigth + * @param integer $height The width * @throws \InvalidArgumentException */ public function setDimensions($width, $height) @@ -83,7 +83,7 @@ abstract class DefaultVideoFormat extends DefaultAudioFormat implements VideoFor /** * Set the framerate * - * @param int $frameRate + * @param integer $frameRate * @throws \InvalidArgumentException */ public function setFrameRate($frameRate) @@ -109,7 +109,7 @@ abstract class DefaultVideoFormat extends DefaultAudioFormat implements VideoFor * Set the video codec, Should be in the available ones, otherwise an * exception is thrown * - * @param string $videoCodec + * @param string $videoCodec * @throws \InvalidArgumentException */ public function setVideoCodec($videoCodec) @@ -137,7 +137,7 @@ abstract class DefaultVideoFormat extends DefaultAudioFormat implements VideoFor /** * Set the GOP size * - * @param int $GOPsize + * @param integer $GOPsize * @throws \InvalidArgumentException */ public function setGOPsize($GOPsize) @@ -152,8 +152,8 @@ abstract class DefaultVideoFormat extends DefaultAudioFormat implements VideoFor /** * Returns the nearest multiple for a value * - * @param int $value - * @param int $multiple + * @param integer $value + * @param integer $multiple * @return int */ protected function getMultiple($value, $multiple) diff --git a/src/FFMpeg/Format/Video/Ogg.php b/src/FFMpeg/Format/Video/Ogg.php index 352a5ba..236eccb 100644 --- a/src/FFMpeg/Format/Video/Ogg.php +++ b/src/FFMpeg/Format/Video/Ogg.php @@ -38,4 +38,4 @@ class Ogg extends DefaultVideoFormat { return array('libtheora'); } -} \ No newline at end of file +} diff --git a/src/FFMpeg/Format/Video/WebM.php b/src/FFMpeg/Format/Video/WebM.php index 94a9aee..79cd20d 100644 --- a/src/FFMpeg/Format/Video/WebM.php +++ b/src/FFMpeg/Format/Video/WebM.php @@ -46,4 +46,4 @@ class WebM extends DefaultVideoFormat { return array('libvpx'); } -} \ No newline at end of file +} diff --git a/src/FFMpeg/Format/Video/X264.php b/src/FFMpeg/Format/Video/X264.php index 34b7d12..023a6cd 100644 --- a/src/FFMpeg/Format/Video/X264.php +++ b/src/FFMpeg/Format/Video/X264.php @@ -38,4 +38,4 @@ class X264 extends DefaultVideoFormat { return array('libx264'); } -} \ No newline at end of file +} diff --git a/src/FFMpeg/Format/VideoFormat.php b/src/FFMpeg/Format/VideoFormat.php index 3c7b2fa..38be13f 100644 --- a/src/FFMpeg/Format/VideoFormat.php +++ b/src/FFMpeg/Format/VideoFormat.php @@ -30,4 +30,4 @@ interface VideoFormat extends AudioFormat * @return array */ public function getAvailableVideoCodecs(); -} \ No newline at end of file +}