php – 视频托管 – 压缩视频?

我打算在我的网站上添加视频(1分钟或更短的剪辑用于简短的问候).由于这是一个初创公司,视频大小非常重要.

>最好用什么格式存储上传的视频(例如:mp4,avi,mpeg,flv)?要求:质量应该足够好,同时保持尽可能低的文件大小.
>我的平台是PHP.如果用户以不同的格式上传视频,是否有用于视频压缩/转换的内置或开源框架?对于照片,我们使用imaggemagik;视频有什么类似的吗?
>理想情况下,我想避免使用Flash视频播放器.有更好的选择吗?

解决方法:

1) What format is the best to use for storing the uploaded video – mp4, avi, mpeg, flash, etc? (req is quality should be decent enough while keeping fiel size as low as possible).

mp4包含h.264.然后WebM作为备份.

2) My platform is in PHP, are there built -in or open source frameworks for video compression/conversion if a user uploads a different format video? (Like for photos we use imaggemagik, similarly anything for video?)

ffmpeg似乎很受欢迎

3) Ideally i want to avoid using flash for video if there is a better option?

至少您需要Flash才能实现向后兼容,但在h.264和WebM之间,您将获得HTML 5视频的广泛支持.

上一篇:C# 展开和折叠代码的快捷键


下一篇:php – 使用cURL获取压缩内容