-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revert PS-670-rendition-video_enhance1 commits
- Loading branch information
Showing
17 changed files
with
150 additions
and
491 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
lib/php/rendition-factory/src/Transformer/Video/FFMpeg/Format/FormatInterface.php
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
lib/php/rendition-factory/src/Transformer/Video/FFMpeg/Format/JpegFormat.php
This file was deleted.
Oops, something went wrong.
42 changes: 0 additions & 42 deletions
42
lib/php/rendition-factory/src/Transformer/Video/FFMpeg/Format/MkvFormat.php
This file was deleted.
Oops, something went wrong.
42 changes: 0 additions & 42 deletions
42
lib/php/rendition-factory/src/Transformer/Video/FFMpeg/Format/Mpeg4Format.php
This file was deleted.
Oops, something went wrong.
42 changes: 0 additions & 42 deletions
42
lib/php/rendition-factory/src/Transformer/Video/FFMpeg/Format/MpegFormat.php
This file was deleted.
Oops, something went wrong.
42 changes: 0 additions & 42 deletions
42
lib/php/rendition-factory/src/Transformer/Video/FFMpeg/Format/QuicktimeFormat.php
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
lib/php/rendition-factory/src/Transformer/Video/FFMpeg/Format/Video/WebM.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace Alchemy\RenditionFactory\Transformer\Video\FFMpeg\Format\Video; | ||
|
||
class WebM extends \FFMpeg\Format\Video\WebM | ||
{ | ||
protected $videoCodecs = []; | ||
|
||
public function __construct($audioCodec = 'libvorbis', $videoCodec = 'libvpx') | ||
{ | ||
$this->videoCodecs = parent::getAvailableVideoCodecs(); | ||
if (!in_array('copy', $this->videoCodecs)) { | ||
$this->videoCodecs[] = 'copy'; | ||
} | ||
parent::__construct($audioCodec, $videoCodec); | ||
} | ||
|
||
public function getAvailableVideoCodecs() | ||
{ | ||
return $this->videoCodecs; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
lib/php/rendition-factory/src/Transformer/Video/FFMpeg/Format/Video/X264.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace Alchemy\RenditionFactory\Transformer\Video\FFMpeg\Format\Video; | ||
|
||
class X264 extends \FFMpeg\Format\Video\X264 | ||
{ | ||
protected $videoCodecs = []; | ||
|
||
public function __construct($audioCodec = 'aac', $videoCodec = 'libx264') | ||
{ | ||
$this->videoCodecs = parent::getAvailableVideoCodecs(); | ||
if (!in_array('copy', $this->videoCodecs)) { | ||
$this->videoCodecs[] = 'copy'; | ||
} | ||
parent::__construct($audioCodec, $videoCodec); | ||
} | ||
|
||
public function getAvailableVideoCodecs() | ||
{ | ||
return $this->videoCodecs; | ||
} | ||
} |
Oops, something went wrong.