This is my code using ffmpeg i want to have video thumbnail but im not familiar in ffmpeg can someone know the error i got.
[swscaler @ 0x7ff8da028c00] depre
I just change the path of the destination of the image:
# path of image on the server
$image = '/users/xx/xxxx/sample/upload/image.jpg';
Then used the following:
# $ffmpeg - path of ffmpeg on the server
# $video_url - path of the video file on the server
shell_exec($tmp = "$ffmpeg -i $video_url -pix_fmt yuvj422p -deinterlace -an -ss $interval -f mjpeg -t 1 -r 1 -y -s $size $image 2>&1");