Online video streaming

左心房为你撑大大i 提交于 2019-12-21 20:22:37

问题


I want to make a video site in which we can upload the video in any format and display it like youtube. How can I do this? My whole site is in PHP I'm a newbie in the video streaming sp plz be descriptive with your answer

Thanks


回答1:


First you need a VideoPlayer written in Flash / Actionscript, there are also a lot of free ones arround in the internet, e.g.: FlowPlayer, You also could write you own. You acctually do not net to buy Flash for this. The Flash/Flex compiler mxmlc is available for free. You could also write you Flashvideoplayer in Haxe (also free).

You you do not want the users to switch within the video you could deliver the videos via HTTP, other wise you need an streaming server like: FlashMediaServer (not free). There are also open source alternatives like Red5 or haxeVideo.

You you do not have the video available in the right format you need to encode them: the best tool for this task could be ffmpeg




回答2:


I suggest looking at the html5 <video> tag, this is probably the simplest way. For an example look at the the one from surfin' safari.

Be aware that some browsers support ogg and others h264, but not both.

Encoding of the video can be made using ffmpeg on the server.




回答3:


One of my websites does this, and it's a MASSIVE pain. However, there are websites out there that'll take a video and convert it to an FLV for you (for a price), for example we use a service called Hey!Watch which is reasonably reliable.

If you really want to encode it to flash yourself, you're going to need a full copy of Flash and a LOT of time =]




回答4:


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):

  • http://www.vidiscript.co.uk/

  • http://www.phpmotion.com/

  • http://osshare.sourceforge.net/

I'm posting this here just to point out the links. I think 2 of those 3 questions should be marked as duped anyway.



来源:https://stackoverflow.com/questions/1182002/online-video-streaming

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!