将视频从Raspberry Pi 3流式传输到C#PC应用程序 [英] Streaming video from a Raspberry Pi 3 to a C# PC app

查看:89
本文介绍了将视频从Raspberry Pi 3流式传输到C#PC应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个运行Raspbian的PiCamera的RPi3(Win10物联网核心还不支持PiCamera,否则会运行它)。我可以使用Python和TCP流式传输视频并将其显示在PC上。但ATM的Python应用程序只是打开VLC播放器到
显示的视频是次优的,因为我希望能够在视频上显示信息。我已经能够将C#应用程序连接到RPi并以两种方式传输文本。

I've got a RPi3 with a PiCamera running Raspbian (Win10 IoT Core doesn't yet support PiCamera otherwise it would be running that instead). I can stream video using Python and TCP and display it on the PC. But ATM the Python app just opens up VLC player to show the video which is sub-optimal as I want to be able to display info over the video. I've been able to connect a C# app to the RPi and transmit text both ways.

我已将Win Media Player放入表单并安装了编解码器,以便WMP可以播放h264(原生于RPi)。

I've emplaced a Win Media Player into a form and installed codecs so that the WMP can play h264 (native to the RPi).

我现在需要知道的是:

Hhow我是否将视频流转到WMP?

Hhow do I get the video stream going to the WMP?

如何确保WMP不缓冲?我需要它来显示框架,因为它得到它们。缓冲时暂停是次优的。

How do I ensure that the WMP doesn't buffer? I need it to show the frame as it gets them. Having it pause while it buffers is sub-optimal.

推荐答案

我想你要去必须回到DirectShow或Media Foundation才能获得足够的控制权。  当您将控制权交给WMP时,您将失去在窗口上绘图的机会。
I think you're going to have to fall back to DirectShow or Media Foundation in order to have enough control.  When you cede control to WMP, you lose the opportunity to draw on the window, among other things.


这篇关于将视频从Raspberry Pi 3流式传输到C#PC应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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