服务器端视频转换和压缩 [英] Server-side video conversion and compression

查看:900
本文介绍了服务器端视频转换和压缩的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为我的CMS客户提供自动视频转换器。他们应该能够上传他们的未经修改的视频文件(MP4,VMV,AVI,...)和我的服务器压缩,并将其转换为一个Web友好的MP4文件(就像YouTube做的)。



结果很清楚:




  • 网络友好的MP4格式

  • 压缩到可容忍的文件大小



所以我在寻找PHP-API或Linux-











$ b <

编辑:YouTube嵌入的视频不是我的解决方案。

解决方案

看看 http://www.ffmpeg.org/ 它几乎是这种类型的图书馆



我找到了一个PHP驱动程序这里看起来很有趣,但我没有试过。尽管如此,如果需要,可以直接从PHP运行shell命令。


I want to provide an automatic video-converter for my CMS-customers. They should be able to upload their "untouched" video-files (MP4, VMV, AVI, ...) and my server compresses and converts it to a Web-friendly MP4-file (exactly like YouTube makes it).

The result is clear:

  • Web-friendly MP4-format
  • Compressed to tolerable file size

So I'm looking for a PHP-API or Linux-shell-script to realise this.

Is there a easy way to handle this?


Edit: YouTube-embedded videos are not a solution for me.

解决方案

Have a look at http://www.ffmpeg.org/ it's pretty much the go-to library for this sort of thing.

I found a PHP driver for it here that looks interesting but I've not tried it. Still, it's easy enough to run the shell commands directly from PHP if needed.

这篇关于服务器端视频转换和压缩的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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