我如何能够将两个Mp3结合在一起 [英] How I Can Cobine Two Mp3's Together

查看:72
本文介绍了我如何能够将两个Mp3结合在一起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个mp3文件,我想将这些文件组合在一起。请给我一个答案

i have two mp3 files, i want to combine these files together. please give me an answer

推荐答案

我不建议你深入研究相当复杂的音频信号处理和媒体压缩领域,除非你需要深入研究它。相反,您可以使用一些可用的实用程序或库。也许最强大和最普遍的是基于libav的FFMpeg:

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/VpboUJ [ ^ ]。



祝你好运,

-SA
I would not advise you to delve into the rather complicated field of audio signal processing and media compression, unless you need to go deep in for it. Instead, you can use some available utility or library. Perhaps the most powerful and universal one is FFMpeg based on libav:
http://en.wikipedia.org/wiki/Ffmpeg[^],
http://ffmpeg.org/[^],
http://en.wikipedia.org/wiki/Libavcodec[^],
http://libav.org/[^].

Now, how to use it programmatically in a .NET application? First, you can use the available utility by running it using System.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/VpboUJ[^].

Good luck,
—SA


加入MP3并不困难,但正如SA暗示的那样,它需要潜入如果您认真对待,请详细说明。如果您对细节感兴趣,这是非常值得的。



肮脏的方式:

只需加入文件即可。大多数(好的)MP3播放器都会为此道歉,因为他们知道流媒体数据可能已损坏,它会向您显示播放器的质量,重新同步有多好...



更严肃的方式:

乍一看:查找并忽略标题(注意,有不同的,ID3V2,xing等)。在此之后,您只需加入数据即可。如果您不想检测各种(并且没有明确定义的标题),您可以采用实用的方法。这意味着您编写代码以与mp3流数据同步并加入它们。谷歌将帮助您获得比特流格式。这意味着,你必须像好的mp3播放器那样才能找到有效的mp3比特流。
Joining MP3 is not that difficult at all, but as SA implied, it needs, that you need to dive in into the Details in case you do it serious. This is really worth, in case you are interesting into the details.

THE DIRTY WAY:
Simply join the files. Most of the (good) MP3 Players will apologize this, because they are aware that streaming data can be corrupted and it shows you the quality of the player, how good it is to resynchronize…

The more serious way:
On a first glance: Find and ignore the headers (pay attention, there are different, ID3V2, xing etc.). After this you simply can join the data. In case you do not like to detect the various (and not well defined headers) you can go for the pragmatic approach. That means you write code to synch to the mp3 stream data and join them. Google will help you to get the "bit stream" Format. This means, you have to be that good as the good mp3 Players to find the valid mp3-bit-stream.


这篇关于我如何能够将两个Mp3结合在一起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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