在VB.NET中将.mp3转换为OGG Vorbis? [英] Converting .mp3 to OGG Vorbis in VB.NET?
本文介绍了在VB.NET中将.mp3转换为OGG Vorbis?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有已知的方法将文件系统(.mp3文件)上的本地文件转换为OGG vorbis文件?如果有一种已知的方法,请告诉我。感谢您的帮助。
-3dsboy08。
Is there any known way to convert local files on the filesystem (.mp3 files) to OGG vorbis files? If there is a known way, please tell me. Thanks for the help.
-3dsboy08.
推荐答案
我建议使用开源FFmpeg或libavcodec: http://en.wikipedia.org/wiki/Ffmpeg [ ^ ],
http://ffmpeg.org/ [ ^ ],>
http://en.wikipedia.org/wiki/Libavcodec [ ^ ],
http://libav.org/ [ ^ ]。
在这两种情况下,您都可以获得免费的开源实用程序,几乎可以制作所有内容,包括从帧图片中组装视频。
现在,怎么样在.NET应用程序中以编程方式使用它?首先,您可以使用System.Diagnostics.Process.Start
运行它来使用可用的实用程序:
http://msdn.microsoft.com/en-us/library/system.diagnostics.process.start.aspx [ ^ ]。
如果这还不够好,你可以自己将库包装在.NET程序集中,或找到合适的包装器。请参阅:
http://www.ffmpeg-csharp.com/ [ ^ ],
http://sourceforge.net/projects/sharpffmpeg/ [ ^ ],
http://vbffmpegwrapper.codeplex.com/ [ ^ ]。
毕竟,尝试找一些: http://bit.ly/1uJfv0S [ ^ ]。
如果你想工作在你自己的包装但不知道如何,问一个问题,我会给你基本的想法(使用P / Invoke或C ++ / CLI混合模式项目)。
祝你好运,
-SA
I would recommend using open-source FFmpeg or libavcodec: http://en.wikipedia.org/wiki/Ffmpeg[^],
http://ffmpeg.org/[^],
http://en.wikipedia.org/wiki/Libavcodec[^],
http://libav.org/[^].
In both cases, you can get free open-source utilities which can make nearly everything, including assembling your video from frame pictures.
Now, how to use it programmatically in a .NET application? First, you can use the available utility by running it usingSystem.Diagnostics.Process.Start
:
http://msdn.microsoft.com/en-us/library/system.diagnostics.process.start.aspx[^].
If this is not good enough, you can wrap the library in a .NET assembly by yourself or find appropriate wrapper. Please see:
http://www.ffmpeg-csharp.com/[^],
http://sourceforge.net/projects/sharpffmpeg/[^],
http://vbffmpegwrapper.codeplex.com/[^].
After all, try to find some more: http://bit.ly/1uJfv0S[^].
If you wish to work at such wrapper by yourself but don't know how, ask a question, I'll give you the basic ideas (using P/Invoke or C++/CLI "mixed-mode" project).
Good luck,
—SA
这篇关于在VB.NET中将.mp3转换为OGG Vorbis?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文