简体   繁体   English

来自php和/ flash的直播视频?

[英]live video streaming from php and or flash?

I need to make a live streaming webcam application from my php server to a php page. 我需要从我的php服务器到php页面制作一个实时流媒体网络摄像头应用程序。 I could either take frame by frame pictures using flash and somehow convert them to video files and stream it through or bundle the images together, compress them, and outputting it on a web page. 我可以使用flash逐帧拍摄并以某种方式将它们转换为视频文件并将其流式传输或将图像捆绑在一起,压缩它们并将其输出到网页上。 any help with php methods to convert images to videos and outputting them on a web page? 任何帮助PHP方法将图像转换为视频并在网页上输出?

I could either take frame by frame pictures using flash 我可以使用闪光灯逐帧拍摄

I did this once. 我这样做了一次。 Result? 结果? An awful, CPU hogging mess. 一个可怕的,CPU捣乱的混乱。 It worked, no doubt about that. 毫无疑问,它确实奏效了。 But it was terrible. 但它太可怕了。 Because the images had to be encoded every 500ms (half a second), my CPU (Intel i7 4 cores) went up to 70% in usage. 由于图像必须每500毫秒(半秒)进行编码,因此我的CPU(英特尔i7 4核心)的使用率上升了70% So I suggest you stay away from that method unless of course, you want your users to kill you? 所以我建议你远离那种方法,除非你想让你的用户杀了你?

I would suggest taking a look at the Flash Media Server. 我建议看一下Flash Media Server。 It's not free but there is a free trial for you to try. 它不是免费的,但有免费试用版供您试用。 Here, take a look at this . 在这里,看看这个

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM