Video / audio conversion, thumbnailing and more ! PHP FFmpeg wrapper
V2 Introduced final keywords for classes that are not covered by semver guarantee. Users should not be impacted except if you inherit those classes. An upgrade to ^2.0 should be no-pain.
final
keywords for classes that are not supposed to be extended
to enforce possible bc issues later. Upgrade to 2.0 is fine if you're not extending
base classes.VideoInfo::getVideoStreams()->getFirst()->getAspectRatio()
Video\Logger\LoggerInterface
and Video\Cache\CacheInterface
.VideoInfo::getVideoBitRate(): int
-> Use VideoInfo::getVideoStreams()->getFirst()->getBitRate()
instead.
VideoInfo::getAudioBitRate(): int
-> Use VideoInfo::getAudioStreams()->getFirst()->getBitRate()
instead.
VideoInfo::getVideoCodecName(): ?string
-> Use VideoInfo::getVideoStreams()->getFirst()->getCodecName()
instead.
VideoInfo::getAudioCodecName(): ?string
-> Use VideoInfo::getAudioStreams()->getFirst()->getCodecName()
instead.
Removed undocumented Video\Config\LoggerConfigInterface
from container specs, replaced by standard factories Video\Logger\LoggerInterface::class
;
VideoInfoReader
now accepts a psr-16 / simple-cache implementation in the constructorVideoInfoReader::getInfo($file, CacheInterface $cache=null)
to allow using a specific psr-16 cache implementaton.InvalidFFProbeJsonException
in VideoInfoReader::getInfo()
to improve debug.VideoStream::getFps(?int $decimals=null)
to get the stream framerate.MissingFFMpegBinaryException
and MissingFFProbeBinaryException
(ProcessFailedException).VideoInfoInterface::getVideoStreams()
and VideoInfoInterface::getAudioStreams()
VideoInfo::getVideoBitRate(): int
-> Use VideoInfo::getVideoStreams()->getFirst()->getBitRate()
instead.VideoInfo::getAudioBitRate(): int
-> Use VideoInfo::getAudioStreams()->getFirst()->getBitRate()
instead.VideoInfo::getVideoCodecName(): ?string
-> Use VideoInfo::getVideoStreams()->getFirst()->getCodecName()
instead.VideoInfo::getAudioCodecName(): ?string
-> Use VideoInfo::getAudioStreams()->getFirst()->getCodecName()
instead.