You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fatal error: Uncaught TypeError: FFMpeg\Filters\Video\ClipFilter::apply(): Argument #2 ($format) must be of type FFMpeg\Format\VideoInterface, FFMpeg\Format\Audio\Mp3 given, called in D:\wamp330\www\demo\PHP-FFMPEG\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\Media\AbstractVideo.php on line 168 and defined in D:\wamp330\www\demo\PHP-FFMPEG\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\Filters\Video\ClipFilter.php on line 61
So I think that it would be better if we can pass file type manually to [open] method and force class that act as audio file:
public function open($pathfile,$type="audio")
{
With the best
The text was updated successfully, but these errors were encountered:
I noticed that for some Mp3 files, PHP-FFMpeg detect them as video format and if you want to cut part of that :
Below error raised :
Fatal error: Uncaught TypeError: FFMpeg\Filters\Video\ClipFilter::apply(): Argument #2 ($format) must be of type FFMpeg\Format\VideoInterface, FFMpeg\Format\Audio\Mp3 given, called in D:\wamp330\www\demo\PHP-FFMPEG\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\Media\AbstractVideo.php on line 168 and defined in D:\wamp330\www\demo\PHP-FFMPEG\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\Filters\Video\ClipFilter.php on line 61
So I think that it would be better if we can pass file type manually to [open] method and force class that act as audio file:
With the best
The text was updated successfully, but these errors were encountered: