I need to uploaded video convert into mp4 and also create thumbnail image. I am try with ffmpeg but many hosting provide not intalled ffmpeg. So now i need to that features without using ffmpeg i want do it. Any know ? How can i do without ffmpeg ?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You don't need to "install" ffmpeg
in the traditional sense.
Just download an already compiled static build of ffmpeg
then point to it in your script using the full path.
A basic, unscripted thumbnail command:
ffmpeg -ss 30 -i input -vf scale=120:-1 -frames:v 1 -q:v 4 output.jpg
Also see:
- FFmpeg Wiki: PHP
- How can I extract a good quality JPEG image from an H264 video file with ffmpeg?