問題描述
我希望為網站上的用戶設置視頻上傳,并希望通過 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.
這篇關于添加動態視頻內容(YouTube 喜歡)(PHP)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!