ffmpeg-php

make: *** [ffmpeg_movie.lo] Error 1 when compiling ffmpeg-php

天涯浪子 提交于 2019-12-06 15:02:18
问题 I've basically exhausted myself searching Google and trying to address an error I get when compiling ffmpeg-php on a CentOS / 6.4-64 with PHP 5.4.20 and Apache v2.2.25 (cgi-fcgi). I end up getting the following when trying to compile. Does anyone have any ideas on how to fix/address this? /usr/local/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:311: error: âlist_entryâ undeclared (first use in this function) /usr/local/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:311: error: (Each undeclared identifier is

Create Video Thumbnail of All Files in a Directory via FFmpeg and PHP

自古美人都是妖i 提交于 2019-12-05 08:06:09
问题 I have searched all over the Google and StackOverFlow, but still did not find a solution for this. I want to generate video thumbnail of all mp4 video files in a directory and name the thumbnails as "filename.mp4".jpg I have ffmpeg and ffmpeg-php installed on my server. I also succeeded in creating thumbnails of one file at a time. So this is the situation, I have a directory named uploads which has lots of mp4 videos. Now, when I run the script, thumbnail of size 100x100 shoud be created

Create Video Thumbnail of All Files in a Directory via FFmpeg and PHP

谁说我不能喝 提交于 2019-12-03 21:50:39
I have searched all over the Google and StackOverFlow, but still did not find a solution for this. I want to generate video thumbnail of all mp4 video files in a directory and name the thumbnails as "filename.mp4".jpg I have ffmpeg and ffmpeg-php installed on my server. I also succeeded in creating thumbnails of one file at a time. So this is the situation, I have a directory named uploads which has lots of mp4 videos. Now, when I run the script, thumbnail of size 100x100 shoud be created automatically and placed in another folder "skrin". Eg: xxx.mp4 should have xxx.mp4.jpg has the thumb name

FFMpeg - Creating Thumbnail for Video file

末鹿安然 提交于 2019-11-28 23:31:01
问题 I am new to php. I have installed ffmpeg in my local iis.. Is it possible to generate a thumbnail image for a flv file.? Please help.. 回答1: Try this $ffmpeg = 'ffmpeg.exe'; //video dir $video = 'video.flv'; //where to save the image $image = 'image.jpg'; //time to take screenshot at $interval = 5; //screenshot size $size = '320x240'; //ffmpeg command $cmd = "$ffmpeg -i $video -deinterlace -an -ss $interval -f mjpeg -t 1 -r 1 -y -s $size $image 2>&1"; $return = `$cmd`; An explanation of the