从网络摄像头获取视频流并使用rtp发送 [英] get video stream from webcam and sending it using rtp

查看:409
本文介绍了从网络摄像头获取视频流并使用rtp发送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我现在正在开发一个使用网络摄像头作为视频设备的会议应用程序.我可以按照以下文章中的DirectShow预览网络摄像头并使用它来捕获图像: DirectX.Capture类库 [ ^ ]

directshow lib将视频直接保存到磁盘上,我找不到直接从中获取视频流的方法.我尝试通过使用RTP以JPEG格式逐帧发送视频来发送视频.这些帧是我从网络摄像头捕获的图像.我知道我应该将其压缩为MJPEG或MPEG,但是找不到能够这样做的编解码器.不幸的是,我什至无法在接收器端成功观看视频.当我尝试将接收到的RTP数据包保存回JPEG格式进行查看时,出现错误消息无效参数".

那么,您能告诉我完成该步骤我必须做什么吗?我在Google搜索了几天,却找不到答案.请帮帮我.
在此先感谢您.

Hi everyone,

I am now developing an conferencing application which use webcam as a video device. I am able to preview the webcam and capture image from it using directshow following the article here: DirectX.Capture Class Library[^]

The directshow lib saves the video directly to my disk and I cannot find a way to get the video stream directly from it. I try to send the video by sending it frame by frame in JPEG format using RTP. These frames are images I captured from the webcam. I know that I should compress it as MJPEG or MPEG but I cannot find any codec capable of doing so. And unfortunately, I even cannot successfully viewing the video on the receiver side. There is error said "Invalid parameters" when I try to save received RTP packets back to JPEG format for viewing.

So could you tell me which step I have to do to get this done? I searched google for a days and cannot find an answer. Please help me out.
Thanks in advance.

推荐答案

尝试x624编解码器,对于这样的事情非常有用

VLC在rtp上非常漂亮
try x624 codec, it''s very usefull for things like that

VLC streams quite nice on rtp


这篇关于从网络摄像头获取视频流并使用rtp发送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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