视频文件流 [英] Video file streaming

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

问题描述

嗨再次,



我现在参与了一个用于开发服务器和客户端应用程序的项目,其中来自服务器端的视频文件将显示在所有客户端应用程序(一次多个客户端)。



所以它应该像服务器和客户端计算机中打开的2个窗口一样工作,视频应该在服务器内运行和客户窗口表格。



任何帮助???

hi again,

im now involved in a project for developing a server and client application in which a video file from server side is to be displayed in all the client side applications (multiple clients at a time).

so it should work like 2 windows open in the server and client computers and the video should run within both the server and client window forms.

any help ???

推荐答案

首先你需要告诉我们什么你做到现在为止。你现在有什么类型的视频和...



但是关于你的问题,你需要将图像或视频源转换为可接受的视频格式。使用FFMPEG或类似的东西。

但是如果你有一个可接受格式的视频文件已经可以忽略上面的行



然后你需要将数据发送给客户端。为此,您需要学习套接字编程,或者需要使用库。两个着名的流媒体协议是:

http://en.wikipedia.org/wiki/Microsoft_Media_Services

http://en.wikipedia.org/wiki/Real_Time_Messaging_Protocol



这些链接可以帮助您在应用中实施RTMP:

http://www.live555.com/liveMedia/

使用Rtsp和Rtp管理媒体聚合

http:// net7mma .codeplex.com /

http://www.streamcoders.com/



或者您可以从地面完全编写自己的协议,实际上我推荐它,因为它更容易学习套接字编程然后使用MMS或RTMP :)



然后在您的客户端应用中,您需要渲染视频。您可以使用用户控件,也可以使用Direct2D向用户显示视频。但这是另一个话题。
First you need to tell us what you did until now. What type of video you have now and ...

But about your question you need to convert images or video source to an acceptable video format. Using FFMPEG or something like that.
But if you have video file in an acceptable format already you can ignore above line
.
Then you need to send data to client(s). For doing so you need to learn socket programming or you need to use a library. Two famous streaming protocols are:
http://en.wikipedia.org/wiki/Microsoft_Media_Services
http://en.wikipedia.org/wiki/Real_Time_Messaging_Protocol

These links may help you for implementing RTMP in your app:
http://www.live555.com/liveMedia/
Managed Media Aggregation using Rtsp and Rtp
http://net7mma.codeplex.com/
http://www.streamcoders.com/

Or you can write your own protocol completely from ground and actually I recommend it because it is easier to learn socket programming then using MMS or RTMP :)

Then in your client app you need to render video. You can use a user control or you can use Direct2D to show video to user. But this is an other topic.


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

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