How can i create thumbnail and convert video into mp4 in php without ffmpeg? [closed]

独自空忆成欢 提交于 2019-12-10 12:27:44

问题


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?


来源:https://stackoverflow.com/questions/48806958/how-can-i-create-thumbnail-and-convert-video-into-mp4-in-php-without-ffmpeg

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!