将avi转换为mp4的代码 [英] code for converting avi to mp4

查看:360
本文介绍了将avi转换为mp4的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个完整的代码,用于从一个扩展转换为另一个扩展,例如从avi到mp4

i从这里安装了一些编码,但它不是我需要的确切

我需要帮助

i need a complete code for converting from one extension to another for example from avi to mp4
i installed from here some of coded but it is not what i need exactly
please i need help

推荐答案

http://sourceforge.net/projects / sharpffmpeg / [ ^ ]

http://www.codeproject.com/消息/ 1587544 / convert-avi-to-mp4-in-Csharp-or-Cplusplus.aspx [ ^ ]

http://it.toolbox.com/blogs/rymoore/using-c-ffmpeg-11334 [ ^ ]



Google [ ^ 更多。
http://sourceforge.net/projects/sharpffmpeg/[^]
http://www.codeproject.com/Messages/1587544/convert-avi-to-mp4-in-Csharp-or-Cplusplus.aspx[^]
http://it.toolbox.com/blogs/rymoore/using-c-ffmpeg-11334[^]

Google[^] for more.


只是为了给Simon的一个好答案添加一个澄清:AVI和MPEG-4是不同层次结构的实体。 AVI是媒体容器的文件扩展名和格式;但是MPEG-4更重要的是:这是一种压缩的音频和视频方法。原则上,AVI容器可以包含不同种类的视频+音频流,包括MPEG4。



查看更多细节:

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

http://en.wikipedia.org/wiki/MPEG-4 [ ^ ]。



此外,请查看第一篇文章底部的链接,了解有多少不同的MPEG-4标准在那儿。你需要哪一个? :-)



-SA
Just to add a clarification to a good answer by Simon: AVI and MPEG-4 are the entities of different orders of hierarchy. AVI is a file extension and a format for the media container; but MPEG-4 is more essential thing: this is a method of compression of audio and video. In principle, AVI container can contain different kinds of video+audio streams including MPEG4.

See for more detail:
http://en.wikipedia.org/wiki/Audio_Video_Interleave[^],
http://en.wikipedia.org/wiki/MPEG-4[^].

Also, look at the links at the bottom of the first article to see how many different MPEG-4 standards are there. Which one do you need? :-)

—SA


将扩展名从avi转换为mp4:

Converting extension from avi to mp4:
File.Move(filePath, string.Format(@"{0}\{1}.mp4",
                                  Path.GetDirectoryPath(filePath),
                                  Path.GetFileName(filePath));





除了所有的笑话,我认为你没有意识到问题的大小。但如果你真的想要可以转换的代码在两者之间我会看一下 FFmpeg [ ^ ]


这篇关于将avi转换为mp4的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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