如何通过c#中的socket发送视频帧? [英] how send video frame via socket in c#?

查看:425
本文介绍了如何通过c#中的socket发送视频帧?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理视频,我想< g class =" gr_ gr_60 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins doubleReplace replaceWithoutSep"数据-GR-ID =" 60" ID = QUOT; 60 QUOT;>程序< / g取代;发送< g class =" gr_
gr_64 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace"数据-GR-ID =" 64" ID = QUOT; 64"> MyVideo网站< / g取代; over< g class =" gr_ gr_132 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins
doubleReplace replaceWithoutSep"数据-GR-ID =" 132" ID = QUOT; 132">插座< / g取代;在同一台计算机上

I am working with video and I want <g class="gr_ gr_60 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins doubleReplace replaceWithoutSep" data-gr-id="60" id="60">program</g> to send <g class="gr_ gr_64 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="64" id="64">myvideo</g> over <g class="gr_ gr_132 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins doubleReplace replaceWithoutSep" data-gr-id="132" id="132">socket</g> in the same computer

推荐答案

嗯,你做了多少? 互联网上有成千上万个简单的C#套接字示例应用。 你是如何处理视频的? 只要您有办法获取单个帧,只需将字节
写入套接字。

Well, how much have you done?  There are many thousands of simple C# socket examples app on the Internet.  How are you processing the video?  As long as you have a way to fetch the individual frames, it's just a matter of writing the bytes to the socket.

聪明的解决方案是编写一个简单的DirectShow渲染器过滤器并将其作为过滤器图表的一部分。 然后,渲染器可以对各个帧执行任何操作。

The clever solution would be to write a simple DirectShow renderer filter and have it be part of your filter graph.  That renderer can then do whatever it wants to with the individual frames.


这篇关于如何通过c#中的socket发送视频帧?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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