How can i create thumbnail and convert video into

2019-06-14 20:58发布

问题:

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?