I'm generating an image frame from a video in a particular time using FFMPEG Laravel SDK in Laravel 5.6. If I used the local path for video file it's working fine but When I'm using URL directly it's giving an error. I want to use the video which is stored in the s3 bucket.
File not found at path: https:/xxxxx.cloudfront.net/uploaded_videos/filename.mp4
My code as below.
$videoFile = env('CLOUDFRONT')."/".$resultStatusValue[0]->video_url;
FFMpegFacade::fromDisk('s3')
->open($videoFile)
->getFrameFromSeconds($timeToSecond)
->export()
->toDisk('s3')
->save($s3Path);
Hereafter generated image should be upload to the s3 bucket.
Thanks in advance.