for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the PHP-FFmpeg-video-streaming package.
*
* (c) Amin Yazdanpanah <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Streaming\Format;
use FFMpeg\Format\Audio\DefaultAudio;
abstract class Video extends DefaultAudio
{
/** @var string */
protected $videoCodec;
protected $audioKiloBitrate = null;
* @return string
public function getVideoCodec(): string
return $this->videoCodec;
}
* @param string $videoCodec
public function setVideoCodec(string $videoCodec): void
$this->videoCodec = $videoCodec;
* Returns an array of extra parameters to add to ffmpeg commandline.
* @return array()
public function getExtraParams()
return [
'-c:v',
$this->getVideoCodec()
];