将图像转换为视频c#windows窗体 [英] convert image to video c# windows form

查看:173
本文介绍了将图像转换为视频c#windows窗体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一款应用。记录桌面和它的关键。不,我想创建从屏幕到视频的图像。我怎样才能做到这一点。它是在windows形式的c#中。在此先感谢。

I am working on an app. to record desktop and it's key. No i want to create the image that i get from the screen to video. How can i achieve this . It's in windows form c#. Thanks in advance.

推荐答案

我知道的最好的代码可以做到这一切,而且更多的是FFMpeg或libavcodec。请参阅:

http://en.wikipedia.org/wiki/Ffmpeg [< a href =http://en.wikipedia.org/wiki/Ffmpegtarget =_ blanktitle =New Window> ^ ],

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

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

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



但是如何以编程方式使用它?请查看我过去的答案:

如何在C#中将图像转换为视频 [ ^ ],

HTML5和Mime,直播视频? [ ^ ],

如何使用Directshow修剪视频!? [ ^ ]。



而且没有视频这样的东西。如果你想制作视频,你可能需要了解它是如何工作的,至少要了解视频容器 /格式和编解码器,并学习很多关于它的基础知识,以及兼容性问题,许可和其他相关问题:

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

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

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

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

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



您将在容器上找到大量信息和上面的编解码器,但请注意:FFMpeg和libavcodec支持其中大部分。



-SA
The best code I know which can do it all and a lot more is FFMpeg or libavcodec. Please see:
http://en.wikipedia.org/wiki/Ffmpeg[^],
http://ffmpeg.org/[^],
http://en.wikipedia.org/wiki/Libavcodec[^],
http://libav.org/[^].

But how to use it programmatically? Please see my past answers:
how to convert image to video in C#[^],
HTML5 and Mime, Streaming a video?[^],
How to trim the video using Directshow!?[^].

And there is no such thing as just "video". If you want to make video, you will probably need to learn how it works, at least get an idea on video containers/formats and codecs and learn basics about many of then, as well as compatibility problems, licensing and other related issues:
http://en.wikipedia.org/wiki/Media_container[^],
http://en.wikipedia.org/wiki/Codec[^],
http://en.wikipedia.org/wiki/Comparison_of_container_formats[^],
http://en.wikipedia.org/wiki/Open_source_codecs_and_containers[^],
http://en.wikipedia.org/wiki/List_of_codecs[^],
http://en.wikipedia.org/wiki/Comparison_of_video_codecs[^].

You will find a good number of information on the containers and codecs above, but note: FFMpeg and libavcodec support most of them.

—SA


这篇关于将图像转换为视频c#windows窗体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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