ffmpeg-mappable-media/src/FFMpeg/Format/VideoInterface.php

72 lines
1.5 KiB
PHP
Raw Normal View History

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;
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
*
* @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
*
* @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
*
* @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();
/**
2020-02-24 21:42:38 +01:00
* Returns the list of additional parameters for this format.
*
* @return array
*/
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
}