h.264即时串流 [英] h.264 live stream

查看:134
本文介绍了h.264即时串流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

经过几天的搜索,我仍然迷失了这个问题:

After reasearching for a few days, i m still lost with this issue:

我有一个通过WiFi连接到我的Android设备的网络摄像头. 我编写了一个Android应用程序以连接到网络摄像头的指定套接字(IP和端口).从这个套接字,我得到一个已经在H.264中编码的InputStream.然后,我将此InputStream从android设备重定向到我的服务器,在这里我设法通过使用Xuggler将其解码为图像/帧.

I have a webcam connected over WiFi to my Android device. I wrote an Android app to connect to a specified Socket of the webcam (IP and port). From this Socket i get an InputStream which is already encoded in H.264. Then i redirect this InputStream from the android device to my server, where i managed to decode it to images/frame by using Xuggler.

我想将网络摄像头实时流传输到Internet上的Flash播放器或其他内容. 我知道我必须为此使用Wowza,FMS或RED5.

I would like to stream my webcam live to the internet to a flash player or something. I know i have to use Wowza, FMS or RED5 for this.

我的问题是,我不了解如何继续使用我拥有的InputStream.我读过的所有示例都需要mp4/flv或其他容器文件来进行流式传输...但是我有一个连续的实时InputStream. 其他一些示例考虑使用Flash Encoder.但是我的InputStream已经用H.264编码了.

My problem is, that i dont understand how to proceed with the InputStream i have. All examples i ve read need a mp4/flv or other container file to stream from... but i have a continuous live InputStream. Some other examples consider using Flash Encoder. But my InputStream is already encoded in H.264.

这是一个普遍的理解问题.请为我提供解决方法的建议.

This is a general understanding question. Please advise me on how to solve this.

谢谢

推荐答案

如果我可能会问为什么要闪光,希望您知道HTML5视频标签现在可以直接接受h264编码的视频.

why flash if I may ask, hope you know that HTML5 video tag now directly accepts h264 encoded videos.

这篇关于h.264即时串流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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