✨ Set stream codecs properly
This commit is contained in:
parent
9abcb9ec1b
commit
e869ff2a59
4 changed files with 149 additions and 11 deletions
33
src/Format/DefaultSubtitle.php
Normal file
33
src/Format/DefaultSubtitle.php
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
|
||||
namespace Danjones\FFMpeg\Format;
|
||||
|
||||
class DefaultSubtitle implements SubtitleInterface
|
||||
{
|
||||
public function __construct($codec)
|
||||
{
|
||||
$this->setSubtitleCodec($codec);
|
||||
}
|
||||
|
||||
public function setSubtitleCodec($subtitleCodec)
|
||||
{
|
||||
$this->subtitleCodec = $subtitleCodec;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getSubtitleCodec()
|
||||
{
|
||||
return $this->subtitleCodec;
|
||||
}
|
||||
|
||||
public function getPasses()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
public function getExtraParams()
|
||||
{
|
||||
return [];
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue