diff --git a/docs/source/API/API/FFMpeg/Format/Video/X264.html b/docs/source/API/API/FFMpeg/Format/Video/X264.html
index 399b173..bcf7d52 100644
--- a/docs/source/API/API/FFMpeg/Format/Video/X264.html
+++ b/docs/source/API/API/FFMpeg/Format/Video/X264.html
@@ -119,7 +119,17 @@
|
- string
+ integer
+ |
+
+ setPasses(integer $passes)
+ Sets the number of passes.
+ |
+ |
+
+
+ |
+ integer
|
getPasses()
@@ -499,12 +509,37 @@
+
+
+
+
+
+ public integer
+ setPasses(integer $passes)
+
+
+ Sets the number of passes.
+
+
+
- at line 68
- public string
+
+ public integer
getPasses()
@@ -517,7 +552,7 @@
- | string |
+ integer |
|
diff --git a/src/FFMpeg/Format/Video/X264.php b/src/FFMpeg/Format/Video/X264.php
index 5f8e8d9..c945167 100644
--- a/src/FFMpeg/Format/Video/X264.php
+++ b/src/FFMpeg/Format/Video/X264.php
@@ -19,6 +19,9 @@ class X264 extends DefaultVideo
/** @var boolean */
private $bframesSupport = true;
+ /** @var integer */
+ private $passes = 2;
+
public function __construct($audioCodec = 'libfaac', $videoCodec = 'libx264')
{
$this
@@ -62,12 +65,23 @@ class X264 extends DefaultVideo
return array('libx264');
}
+ /**
+ * @param $passes
+ *
+ * @return X264
+ */
+ public function setPasses($passes)
+ {
+ $this->passes = $passes;
+ return $this;
+ }
+
/**
* {@inheritDoc}
*/
public function getPasses()
{
- return 2;
+ return $this->passes;
}
/**
|