2012-04-13 10:20:54 +02:00
|
|
|
<?php
|
|
|
|
|
|
2012-04-13 14:34:53 +02:00
|
|
|
/*
|
|
|
|
|
* 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.
|
|
|
|
|
*/
|
|
|
|
|
|
2012-04-13 10:20:54 +02:00
|
|
|
namespace FFMpeg\Format;
|
|
|
|
|
|
2012-10-31 00:53:26 +01:00
|
|
|
interface VideoInterface extends AudioInterface
|
2012-04-13 10:20:54 +02:00
|
|
|
{
|
2013-06-25 10:03:20 +02:00
|
|
|
/**
|
2013-06-25 10:40:20 +02:00
|
|
|
* Gets the kiloBitrate value.
|
2013-06-25 10:03:20 +02:00
|
|
|
*
|
2021-03-02 15:39:45 +01:00
|
|
|
* @return int
|
2013-06-25 10:03:20 +02:00
|
|
|
*/
|
|
|
|
|
public function getKiloBitrate();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Returns the modulus used by the Resizable video.
|
|
|
|
|
*
|
|
|
|
|
* This used to calculate the target dimensions while maintaining the best
|
|
|
|
|
* aspect ratio.
|
|
|
|
|
*
|
|
|
|
|
* @see http://www.undeadborn.net/tools/rescalculator.php
|
|
|
|
|
*
|
2021-03-02 15:39:45 +01:00
|
|
|
* @return int
|
2013-06-25 10:03:20 +02:00
|
|
|
*/
|
|
|
|
|
public function getModulus();
|
|
|
|
|
|
|
|
|
|
/**
|
2013-06-25 10:40:20 +02:00
|
|
|
* Returns the video codec.
|
2013-06-25 10:03:20 +02:00
|
|
|
*
|
|
|
|
|
* @return string
|
|
|
|
|
*/
|
|
|
|
|
public function getVideoCodec();
|
|
|
|
|
|
|
|
|
|
/**
|
2013-06-25 10:40:20 +02:00
|
|
|
* Returns true if the current format supports B-Frames.
|
2013-06-25 10:03:20 +02:00
|
|
|
*
|
|
|
|
|
* @see https://wikipedia.org/wiki/Video_compression_picture_types
|
|
|
|
|
*
|
2020-12-23 11:14:24 +01:00
|
|
|
* @return bool
|
2013-06-25 10:03:20 +02:00
|
|
|
*/
|
|
|
|
|
public function supportBFrames();
|
|
|
|
|
|
|
|
|
|
/**
|
2013-06-25 10:40:20 +02:00
|
|
|
* Returns the list of available video codecs for this format.
|
2013-06-25 10:03:20 +02:00
|
|
|
*
|
|
|
|
|
* @return array
|
|
|
|
|
*/
|
|
|
|
|
public function getAvailableVideoCodecs();
|
2017-01-24 15:19:32 -03:00
|
|
|
|
|
|
|
|
/**
|
2020-02-24 21:42:38 +01:00
|
|
|
* Returns the list of additional parameters for this format.
|
2017-06-30 21:27:10 +02:00
|
|
|
*
|
|
|
|
|
* @return array
|
2017-01-24 15:19:32 -03:00
|
|
|
*/
|
2017-06-30 21:27:10 +02:00
|
|
|
public function getAdditionalParameters();
|
2020-02-24 21:42:38 +01:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Returns the list of initial parameters for this format
|
|
|
|
|
*
|
|
|
|
|
* @return array
|
|
|
|
|
*/
|
|
|
|
|
public function getInitialParameters();
|
2012-05-25 15:44:43 +02:00
|
|
|
}
|