如何在c#中将图像集作为视频播放 [英] How to Play set of images as video in c#
本文介绍了如何在c#中将图像集作为视频播放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一组图像。我想使用Windows媒体播放所有这些图像作为视频(如幻灯片)
播放器。
我有一些条件来过滤图像再播放
我用c#
请帮助
< br $>
谢谢和问候
Nirmala Saravanan
Hi,
I have set of images. i want to play all these images as video (like slides) using a windows media
player.
I have some conditions to filter the images and then play
Iam using c#
Pls Help
Thanks and Regards
Nirmala Saravanan
推荐答案
如果你真的需要使用视频播放器(任何视频播放器,不仅仅是Windows Media Player),您应该根据某些流媒体标准和标准编解码器提供视频流,而不是一系列单独的图像。一种方法是使用这种流媒体解决方案作为开源视频LAN:
http:// en .wikipedia.org / wiki / VideoLAN [ ^ ] ,
http://www.videolan.org/ [ ^ ],
http://www.vlmc.org/ [ ^ ] 。
VideoLAN的.NET包装器存在: https:// wiki。 videolan.org/C_Sharp/ [ ^ ]。
另请参阅: http://sourceforge.net/projects/libvlcnet/ [ ^ ]。
此外,您可以从单独的图像序列中预先创建视频片段使用另一个开源产品FFMpeg或libavcodec执行不同类型的过滤。
请参阅:
http://en.wikipedia.org/wiki/Ffmpeg [ ^ ],
http://ffmpeg.org/ [ ^ ],
http://en.wikipedia.org/wiki/Libavcodec [ ^ ],
http://libav.org/ [ ^ ]。
你可以通过System.Diagnostics.Process.Start <运行可用的实用程序/ code>,但您也可以使用.NET包装器之一。请参阅我过去的答案以获取更多详细信息:
如何在C#中将图像转换为视频 [ ^ ],
HTML5和Mime,直播视频? [ ^ ],
如何使用Directshow修剪视频!? [ ^ ]。
许多FFMpeg / libavcodec功能也适用于VideoLAN本身。另请参阅我过去的答案:
在没有WMP的情况下在vb.net中流式播放音乐文件 [ ^ ],
需要帮助从C#中的其他计算机获取流式视频 [ ^ ]。
-SA
If you really need to use a video player (any video player, not only Windows Media Player), you should provide a video stream according to some streaming standard and standard codecs, not a sequence of separate images. One way of doing so would be using such streaming solution as open-source VideoLAN:
http://en.wikipedia.org/wiki/VideoLAN[^],
http://www.videolan.org/[^],
http://www.vlmc.org/[^].
The .NET wrapper for VideoLAN exist: https://wiki.videolan.org/C_Sharp/[^].
See also: http://sourceforge.net/projects/libvlcnet/[^].
Also, you can pre-create the video clip out of the sequence of separate images and perform different kinds of filtering using another open-source product, FFMpeg or libavcodec.
Please see:
http://en.wikipedia.org/wiki/Ffmpeg[^],
http://ffmpeg.org/[^],
http://en.wikipedia.org/wiki/Libavcodec[^],
http://libav.org/[^].
You can run available utility bySystem.Diagnostics.Process.Start
, but you can also use one of .NET wrappers. Please see my past answers for further detail:
how to convert image to video in C#[^],
HTML5 and Mime, Streaming a video?[^],
How to trim the video using Directshow!?[^].
Many of those FFMpeg/libavcodec capabilities are also possible with VideoLAN itself. See also my past answers:
Streaming music files in vb.net without WMP[^],
need help in getting the streaming video from an other computer in C#[^].
—SA
这篇关于如何在c#中将图像集作为视频播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文