需要使用h264或h263编码网络摄像头视频 [英] Need To Encode a webcam video using h264 or h263

查看:230
本文介绍了需要使用h264或h263编码网络摄像头视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用c#和wpf进行对等通信项目,该应用程序需要从网络摄像机获取视频,使用h264或h263对其进行编码并实时发送,我可以从摄像机获取帧并我可以发送它,但是我在编码/压缩帧时遇到困难,我尝试使用vlc和ffmpeg库进行编码和流传输,但是它们引入了不可接受的时滞,并且所有h263和h264源我所见过的代码全部是用C/c ++编写的,请人们在我必须购买的Microsoft表达式编码器旁边,有什么选择可以在C#中使用.

解决方案

<然后将C/C ++源转换为C#.您已经排除了其他解决问题的方法.

哦,对了您使用的每种方法都会引入某种时滞,这会增加网络会引入的时滞以及客户端编解码器所引入的时滞,从而对流进行解压缩和解复用.


I am working on a peer to peer communication project using c# and wpf and the app needs to get video from a webcamera, encode it using h264 or h263 and send it in real time, I can get the frames from the camera and I can send it, but I am having difficulty encoding/compressing the frames, I have tried to use vlc and ffmpeg library to do the encoding and streaming, but they are introducing time lag which is not acceptable, and all the h263 and h264 source code that I have seen are all in C/c++, pls people is there any option available for me to use in C# beside the microsoft expression encoder that I have to buy

解决方案

Convert the C/C++ source to C# then. You''ve ruled out every other method of solving the problem.

Oh, by the way. EVERY method you use is going to introduce some kind of time lag, adding to the time lag that the network will introduce and the lag introduced by the codec on the client end decompressing and demuxing the stream.


这篇关于需要使用h264或h263编码网络摄像头视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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