添加动态视频内容(如YouTube)(PHP) [英] Add dynamic video content (YouTube like) (PHP)

查看:158
本文介绍了添加动态视频内容(如YouTube)(PHP)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为网站上的用户设置视频上传,并希望通过Flash播放器查看这些视频。该网站已经部分建立(由别人),我想知道什么样的技术来处理视频文件,特别是在PHP。

I'm looking to setup video uploads for users on a site and want to have them viewed through a Flash player. The site is already partially built (by someone else) and I'm wondering what kind of technologies there are to deal with the video files, specifically in PHP.

我' m认为这些文件需要转换成FLV。之后,我认为它只是加载FLV,就像Flash中的SWF一样。

I'm thinking the files need to be converted to an FLV. After that I think it's just loading the FLV, like an SWF in Flash.

他们也想用Flash流媒体来做mp3,所以它会很酷也支持mp3。

They also want to do mp3's with Flash streaming, so it'd be cool if it could also support mp3's.

推荐答案

ffmpeg 是你的工具。这是一个主要的开源视频编码库,很多其他工具都是基于这个库的。直接使用有点棘手,但我认为有一些包装。

ffmpeg is the tool for you. It's a major opensource video encoding library that a lot of other tools are based on. It's a bit tricky to use directly, but I think there are a few wrappers around.

这篇关于添加动态视频内容(如YouTube)(PHP)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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