用于将一种视频格式转换为另一种视频格式的C#代码 [英] C# code for converting one video format to another
本文介绍了用于将一种视频格式转换为另一种视频格式的C#代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都知道如何将一种视频格式转换为另一种格式,例如:mpg到3gp,mpg到avi,mp4到mov等.
我也想知道用于以视频格式记录屏幕活动的源代码.
感谢和问候.
Does any body know How to convert to convert one video format to another for ex : mpg to 3gp,mpg to avi,mp4 to mov etc..
Also I want to know the source code for recording screen activities in video format.
Thanks and regards.
推荐答案
请参见 ^ ].
您不会转换太多视频.您要做的是对它进行解码/解压缩,然后再次对其进行编码/压缩.特定于格式的算法通常位于CODEC库中.有时此类库包含在集合中或支持格式的集合.
您直接说的过程称为转码.
您最好是先熟悉一下这些概念,然后再使用 FFmpeg [ ^ ].
CP上还有一些很棒的资料,可用于.NET的DirectShow.
干杯.
You don''t convert video, so much. What you do is you decode/decompress it, then encode/compress it again. The format-specific algorithm usually comes in a CODEC library; sometimes such libraries come in a collection or support a collection of formats.
The process you''re speaking of directly is called trans-coding.
You''re probably best off starting by gaining some familiarity with those concepts, and to start off by making use of something like FFmpeg[^] before venturing into your own trans-coding adventures.
There''s also some great material here on CP for working with DirectShow from .NET.
Cheers.
这篇关于用于将一种视频格式转换为另一种视频格式的C#代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文