I am using ffmpeg and Pawlox/video-thumbnail package to generate thumbnail. I have already installed both ffmpeg and pawlox/video-thumbnail.
Here is my code.
VideoThumbnail::createThumbnail(url('/storage/app/accident_report_videos/ynvO5D9GzUJsLPj8vPlyiOEND0ag9MeFGr4NFu5k.mp4'), asset('thumbnAils'), '111.jpg', 2, 600, 600);
Error:
error:getimagesize(http://54.255.240.102/storage/app/accident_report_videos/thumbs/ynvO5D9GzUJsLPj8vPlyiOEND0ag9MeFGr4NFu5k.jpg): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
Video path and thumbnail path are both right. But it is using thumbnail method in videothumbnail.php to create thumbnail. This function is generating thumbnail. So after that it calls resizeCropImage()
function in which they uses getimagesize()
funtion. And getiamgesize()
function does not get image from because it is never generated.