如何在媒体播放器中运行.mkv媒体文件 [英] How to run .mkv media file in the media player

查看:187
本文介绍了如何在媒体播放器中运行.mkv媒体文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用VB.net 2010创建了一个媒体播放器。但媒体播放器无法运行.mkv文件格式。有人可以帮我纠正这个问题吗?

I've created a media player using VB.net 2010. But the media player is unable to run .mkv file format. Can someone help me in rectifying this problem?

推荐答案

当然。



最有可能的是,你正在使用基于Windows Media Player的控件。此播放器取决于系统中安装的编解码器的集合。 (请参阅: http://en.wikipedia.org/wiki/Codec [ ^ ]。)



不幸的是,Windows与可笑的小编解码器捆绑在一起。你几乎肯定需要安装一个真实的东西。我强烈推荐这个(免费软件):

http://en.wikipedia.org/ wiki / K-Lite_Codec_Pack [ ^ ],

http://codecguide.com/ [ ^ ]。



现在,即使我个人使用Matroska(.mkv是Matroska格式,请参阅 http://en.wikipedia.org/wiki/Matroska [ ^ ])稍等一下,我几乎停止使用Windows Media Player。它的功能只是荒谬可怜。因此,我不确定它是否可以使用该格式,无论编解码器如何。



所以,你需要一些合理的选择。我通常建议使用开源和多平台VLC:

http://en.wikipedia.org/wiki/ VLC_media_player [ ^ ]。



对于VLC API或VLC控件的.NET包装,请参阅这些CodeProject文章:

nVLC [ ^ ],

LiquidVideo,使用VLC C#.NET VideoLan随处播放视频 [ ^ ]。



您还应该知道VLC不使用安装的代码系统;它依赖于自己的嵌入式或插入式编解码器集,基于非常强大和轻量级的FFmpeg:

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

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

< a href =http://libav.org/> http://libav.org/ [ ^ ],

http://ffmpeg.org/ [ ^ ]。



首先,尝试使用VLC你的文件(它应该工作),而不是考虑将它用作组件。







或者,我会尝试使用此CodeProject工作: C#中的DirectShow MediaPlayer [ ^ ]。



如果它不能与您的文件一起使用,可以向提交人提问。 ;-)



祝你好运,

-SA
Sure.

Most likely, you are using a control based on Windows Media Player. This player depends on the set of codecs installed in the system. (Please see: http://en.wikipedia.org/wiki/Codec[^].)

Unfortunately, Windows is bundled with ridiculously small set of codecs. You almost certainly need to install a real thing. I would strongly recommend this one (freeware):
http://en.wikipedia.org/wiki/K-Lite_Codec_Pack[^],
http://codecguide.com/[^].

Now, even though I personally use Matroska (.mkv is Matroska format, please see http://en.wikipedia.org/wiki/Matroska[^]) just a bit, I almost stopped using Windows Media Player. Its features are just ridiculously poor. So, I'm not sure it could use the format at all, regardless of the codecs.

So, you need some reasonable alternative. I usually advise open-source and multiplatform VLC:
http://en.wikipedia.org/wiki/VLC_media_player[^].

For a .NET wrapper of VLC API or VLC control, please see these CodeProject articles:
nVLC[^],
LiquidVideo, Play Video Anywhere with VLC C# .NET VideoLan[^].

You should also know that VLC does not use codes installed in the system; it relies on its own embedded or plugged in codec set, based on the very powerful and light-weight FFmpeg:
http://en.wikipedia.org/wiki/Ffmpeg[^],
http://en.wikipedia.org/wiki/Libavcodec[^],
http://libav.org/[^],
http://ffmpeg.org/[^].

First, try VLC with your files (it should work) and than think about using it as a component.



Alternatively, I would try using this CodeProject work: DirectShow MediaPlayer in C#[^].

If it does not work with your files, you could ask its author a question. ;-)

Good luck,
—SA


这是关于.NET的VLC组件绑定的更新有用信息:

http://sourceforge.net/ projects / libvlcnet / [ ^ ],

https://wiki.videolan.org/C_Sharp/ [ ^ ],

https://wiki.videolan.org/.Net_Interface_to_VLC/ [ ^ ]。



值得注意的是,您可以找到为WPF和使用该组件的材料.Windows.Windows .Forms



-SA
This is the updated useful information on the VLC component binding for.NET:
http://sourceforge.net/projects/libvlcnet/[^],
https://wiki.videolan.org/C_Sharp/[^],
https://wiki.videolan.org/.Net_Interface_to_VLC/[^].

Notably, you can find material for using the component for both WPF and System.Windows.Forms.

—SA


这篇关于如何在媒体播放器中运行.mkv媒体文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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