使用PHP或Flash从视频中提取帧 [英] Use PHP or Flash to extract a frame from a video

查看:291
本文介绍了使用PHP或Flash从视频中提取帧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

简单的问题是:是否有一个纯粹的PHP库,可以从视频中提取一帧用作缩略图?我想答案是不,但让我知道,如果我错了:-) ffmpeg 包装将不会去,因为我想这个功能在大多数主机没有特殊PHP模块或二进制文件可以启动。



也可能有一些工具可以在客户端使用flash来做到这一点...这也是可以接受的。我只需将Flash生成的内容上传到服务器即可。

脚本声称可以通过使用GD来完成。


The quick question: is there a pure PHP library that can extract a frame from the video to use as the thumbnail? I guess the answer is "no" but let me know if I am wrong :-) ffmpeg wrappers will not go, since I want this feature to work on most hostings without special PHP modules or binaries to launch.

There might also be some tool to do this on the client side with flash for example... This also acceptable. I'll just have to upload the flash-generated content to the server.

解决方案

This script claims to be able to do it just by using GD

这篇关于使用PHP或Flash从视频中提取帧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆