添加动态视频内容(YouTube 喜欢)(PHP)

2021-12-20 00:00:00 mp3 php flash flv

我希望为网站上的用户设置视频上传,并希望通过 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.

我认为需要将文件转换为 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.

相关文章