如何通过C#解码网络中的mpeg4文件? [英] how to decode the mpeg4 files in the network by C#?

查看:151
本文介绍了如何通过C#解码网络中的mpeg4文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经购买了一个linux开发板,它可以通过网络传输编码的mpeg4文件。我想用c#编码和播放mpeg4文件。那么,我该怎么办?谢谢。

I have bought a linux development board, which can transfer the coded mpeg4 files over the network. And I want to encode and play the mpeg4 files by c#. So,how can i do? Thanks.

推荐答案

首先,没有mp4文件这样的东西。惊讶吗?媒体文件是一个嵌套实体:有一个文件容器,它可以是几种不同容器类型中的任何一种,每个容器可以根据不同类型的编解码器保存一组或另一组流的;所有上述内容都是组合在一起的,有一些约束(某些容器限制了可能使用的编解码器集)。 MPEG-4压缩本身有许多不同的类型;这是一个大家庭。



请参阅:

http://en.wikipedia.org/wiki/Media_container [ ^ ],

http://en.wikipedia.org/wiki/Codec [ ^ ],

http://en.wikipedia.org/wiki/MPEG-4 [ ^ ]。



基本上,您不需要将文件解码为波形和图像。这真的很难。应用程序很少这样做;更常见的是,它们依赖于系统上安装的代码集。例如,请参阅Linux上的内容: http://en.wikipedia.org/wiki/Category:Linux_media_players [ ^ ]。



至于通过网络转移,这取决于它是什么。客户端可以简单地下载文件(HTTP,HTTPS,FTP,文件服务等),也可以使用其他流媒体协议。

请参阅:http://en.wikipedia.org/wiki/Media_streaming [ ^ ]。



多平台流媒体解决方案之一是VideoLAN(很多人都知道它就像一个媒体播放器,但实际上这是一个多功能工具:播放器,转换器,流媒体服务器等等:

http://en.wikipedia.org/wiki/VideoLAN [ ^ ],

http://www.videolan.org/ [ ^ ]。





-SA
Firs of all, there is no such thing as "mp4" file. Surprised? Media file is a nested entity: there is a file container, which can be any of several different container types, and each container can hold one or another sets of streams based on different types of codecs; all of the above is combined, with some constraints (some containers limit the set of possible codecs to be used). And the MPEG-4 compression itself comes in a number of different types; it is a big family.

Please see:
http://en.wikipedia.org/wiki/Media_container[^],
http://en.wikipedia.org/wiki/Codec[^],
http://en.wikipedia.org/wiki/MPEG-4[^].

Basically, you don't need to decode the file into, say, waveforms and images. It would be really difficult to do. Applications rarely do that; more usually, they rely on the set of codes installed on the system. Please see, for example, what can be on Linux: http://en.wikipedia.org/wiki/Category:Linux_media_players[^].

As to "transfer over network", it depends on what is that. A client can simply download a file (HTTP, HTTPS, FTP, file service, and so on), or it can use one of another streaming protocol.
Please see: http://en.wikipedia.org/wiki/Media_streaming[^].

One of the multiplatform streaming solution is VideoLAN (many knows it just as a media player, but actually this is a multi-functional tool: player, converter, streaming server, and more):
http://en.wikipedia.org/wiki/VideoLAN[^],
http://www.videolan.org/[^].


—SA


这篇关于如何通过C#解码网络中的mpeg4文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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