在线视频流 [英] Online video streaming

查看:40
本文介绍了在线视频流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想做一个视频网站,我们可以在其中上传任何格式的视频并像 youtube 一样显示它.我怎样才能做到这一点?我的整个网站都使用 PHP 我是视频流的新手 sp 请用您的答案进行描述

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

谢谢

推荐答案

首先你需要一个用 Flash/Actionscript 编写的 VideoPlayer,网上也有很多免费的,例如:FlowPlayer,你也可以自己写.你实际上并没有为此购买Flash.Flash/Flex 编译器 mxmlc 是免费提供的.您也可以在 Haxe(也是免费的)中编写 Flashvideoplayer.

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

您不希望用户在视频中切换,您可以通过 HTTP 传送视频,否则您需要一个流服务器,例如:FlashMediaServer(非免费).还有一些开源替代品,如 Red5haxeVideo.

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.

您没有正确格式的视频,您需要对它们进行编码:执行此任务的最佳工具可能是 ffmpeg

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

这篇关于在线视频流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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