Rename Audio to AudioInterface and Video to VideoInterface
This commit is contained in:
parent
cf97e06650
commit
ea17f2f257
12 changed files with 128 additions and 34 deletions
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
namespace FFMpeg\Format\Video;
|
||||
|
||||
use FFMpeg\Format\Video as BaseVideo;
|
||||
use FFMpeg\Format\VideoInterface;
|
||||
|
||||
/**
|
||||
* The resamplable video interface
|
||||
|
|
@ -20,7 +20,7 @@ use FFMpeg\Format\Video as BaseVideo;
|
|||
*
|
||||
* @author Romain Neutron imprec@gmail.com
|
||||
*/
|
||||
interface Resamplable extends BaseVideo
|
||||
interface Resamplable extends VideoInterface
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
namespace FFMpeg\Format\Video;
|
||||
|
||||
use FFMpeg\Format\Video as BaseVideo;
|
||||
use FFMpeg\Format\VideoInterface;
|
||||
use FFMpeg\Format\Dimension;
|
||||
|
||||
/**
|
||||
|
|
@ -21,7 +21,7 @@ use FFMpeg\Format\Dimension;
|
|||
*
|
||||
* @author Romain Neutron imprec@gmail.com
|
||||
*/
|
||||
interface Resizable extends BaseVideo
|
||||
interface Resizable extends VideoInterface
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -11,12 +11,12 @@
|
|||
|
||||
namespace FFMpeg\Format\Video;
|
||||
|
||||
use FFMpeg\Format\Video as BaseVideo;
|
||||
use FFMpeg\Format\VideoInterface;
|
||||
|
||||
/**
|
||||
* @author Romain Neutron imprec@gmail.com
|
||||
*/
|
||||
interface Transcodable extends BaseVideo
|
||||
interface Transcodable extends VideoInterface
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
|
|||
47
src/FFMpeg/Format/Video/WMV.php
Normal file
47
src/FFMpeg/Format/Video/WMV.php
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of PHP-FFmpeg.
|
||||
*
|
||||
* (c) Alchemy <info@alchemy.fr>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace FFMpeg\Format\Video;
|
||||
|
||||
/**
|
||||
* The WMV video format
|
||||
*
|
||||
* @author Romain Neutron imprec@gmail.com
|
||||
*/
|
||||
class WMV extends DefaultVideo
|
||||
{
|
||||
protected $audioCodec = 'wmav2';
|
||||
protected $videoCodec = 'wmv2';
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function supportBFrames()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAvailableAudioCodecs()
|
||||
{
|
||||
return array('wmav2');
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAvailableVideoCodecs()
|
||||
{
|
||||
return array('wmv2');
|
||||
}
|
||||
}
|
||||
47
src/FFMpeg/Format/Video/WMV3.php
Normal file
47
src/FFMpeg/Format/Video/WMV3.php
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of PHP-FFmpeg.
|
||||
*
|
||||
* (c) Alchemy <info@alchemy.fr>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace FFMpeg\Format\Video;
|
||||
|
||||
/**
|
||||
* The WMV video format
|
||||
*
|
||||
* @author Romain Neutron imprec@gmail.com
|
||||
*/
|
||||
class WMV3 extends DefaultVideo
|
||||
{
|
||||
protected $audioCodec = 'wmav3';
|
||||
protected $videoCodec = 'wmv3';
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function supportBFrames()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAvailableAudioCodecs()
|
||||
{
|
||||
return array('wmav3');
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getAvailableVideoCodecs()
|
||||
{
|
||||
return array('wmv3');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue