简体   繁体   English

C#中的媒体播放器,带有文本和图像覆盖

[英]Media player in C# with text and images overlay

I have just read some discussions about this topic but I didn't find the definitive answer. 我刚刚阅读了有关此主题的一些讨论,但没有找到明确的答案。

Is possibile in C# do this: 是否可以在C#中执行此操作:

  1. Media player that read playlist and could run common video format (MP4) 读取播放列表并可以运行通用视频格式(MP4)的媒体播放器

  2. Text and images overlay (I'd like to write and put images over a running video) 文字和图像重叠(我想在正在播放的视频上书写和放置图像)

For example media player is running a playlist with more videos: 例如,媒体播放器正在运行包含更多视频的播放列表:

  • Video 1 that last 9 seconds (I'd like to write text1 in a certain position for 9 seconds) 持续9秒的视频1(我想在某个位置写入text1 9秒)
  • Video 2 that last 6 seconds (I'd like to write text2 and punt image2 in a centain position for 6 seconds) etc. 持续6秒的视频2(我想在一个中心位置写text2和punt image2 6秒)等。

Can I do this in C# & .NET? 我可以在C#和.NET中这样做吗? Which technology/classes/components do I need for do this? 我需要哪些技术/类/组件?

  1. DirectShow.NET DirectShow.NET
  2. Video tutorial on WPF Video Player WPF Video Player上的视频教程
  3. XNA Video Player SO Answer XNA Video Player SO解答
  4. Play Video on WinForms Control 在WinForms控件上播放视频

Not all options cover your requirements completely, and you will have to add functionality yourself too, but at least you have some leads. 并非所有选项都可以完全满足您的要求,您也必须自己添加功能,但至少有一些潜在客户。

I think in your case the WPF MediaElement might be most interesting to look at. 我认为在您的情况下,WPF MediaElement可能最有趣。

Good luck! 祝好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM