ffmpeg version 2022-07-04-git-dba7376d59-essentials_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers built with gcc 12.1.0 (Rev2, Built by MSYS2 project)
OS
Windows 11
Actual Behavior
I get an error which says Undefined array key "streams"
Expected Behavior
I expected that thumbnail should have been generated.
Steps to Reproduce
I am using PHP 8.1 and Laravel 9. Below is a code snippet
Actual Behavior
I get an error which says
Undefined array key "streams"
Expected Behavior
I expected that thumbnail should have been generated.
Steps to Reproduce
I am using PHP 8.1 and Laravel 9. Below is a code snippet
$temporaryDirectory->path()
returns an absolute path for the temporary directory$baseFile
is the absolute file path for the video file to generate the thumbnail from$thumbnailPath
is also an absolute file path for the thumbnail image.Possible Solutions
Change the below code snippet in the
mapStreams
method ofFFMpeg\FFProbe\Mapper::42
fromTo
To take care of instances where no streams are available.