Add dynamic video content (YouTube like) (PHP)

前端 未结 8 2284
暖寄归人
暖寄归人 2020-12-18 12:31

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 w

相关标签:
8条回答
  • 2020-12-18 12:56

    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.

    0 讨论(0)
  • 2020-12-18 13:01

    There is this highly underrated post with 3 great links for open source solutions that are like youtube and fits perfectly your question (and at least another one).

    0 讨论(0)
  • 2020-12-18 13:04

    I actually found that using other services to encode the file is the easiest option and also the fastest to setup. I ended up using Hey!Watch for this project. I haven't worried about a streaming server/service yet because for the most part the videos are short and people won't be skipping around within the video.

    0 讨论(0)
  • 2020-12-18 13:05

    Just FYI: If you have HQ videos you need not to encode them into FLV. Flash Player 10 has builtin H264 support, this is what HQ does in popular video sites.

    0 讨论(0)
  • 2020-12-18 13:10
    • For converting movies to flv I suggest (as the most people before) ffmpeg
    • You could stream these flv over http, but then the users could not skip forward in the movies. There for you need a streaming server like FlashMediaServer or Red5. (These server are also more effcient than pure HTTP)
    • Finally you need FlashMovie that plays the stream. It's quite easy to write one by yourself, or you chose one the open sourced/free players. (e.g.: JW Player)
    0 讨论(0)
  • 2020-12-18 13:18

    Use the YouTube API and let them do the heavy lifting for you.

    0 讨论(0)
提交回复
热议问题