我试玩的 DirectShowLib 下有这样一个目录不知符合你的要求 DirectShowLibV2-0\Samples\Editing\DESCombineThe DESCombine can be used to combine multiple audio and video files, or specific sections of those files into a single output. For example, you can take seconds 5-9 of videofile1.avi combine them with seconds 2-7 of videofile2.mpg, and output them to foo.avi. Similarly with audio files. Note that this is only a small subset of what can be done with DES.A sample showing how the library can be used from VB is included in the DesCombineVB directory.When using the sample program, if you want to use both the video and audio from a file, you should add the same file as both the video and audio file (when using the lib, just call AddAVFile). If you add audio from different files, note that the library doesn't make any effort to make sure that a given audio clip and a video clip are the same length. If you have a 5 second audio and a 14 second audio clip playing under two 8 second video clips, the second audio clip will start playing as soon as the first audio clip is comlete. Also, since the audio in this example is longer than the video (19 > 16), you would have 3 seconds of audio with black video.Here are some step-by-step instructions of how the library might be used. You should also check out DESCombine.chm.
DirectShowLibV2-0\Samples\Editing\DESCombineThe DESCombine can be used to combine multiple audio and video files, or specific sections
of those files into a single output. For example, you can take seconds 5-9 of videofile1.avi
combine them with seconds 2-7 of videofile2.mpg, and output them to foo.avi. Similarly with
audio files. Note that this is only a small subset of what can be done with DES.A sample showing how the library can be used from VB is included in the DesCombineVB directory.When using the sample program, if you want to use both the video and audio from a file, you
should add the same file as both the video and audio file (when using the lib, just call
AddAVFile). If you add audio from different files, note that the library doesn't make
any effort to make sure that a given audio clip and a video clip are the same length.
If you have a 5 second audio and a 14 second audio clip playing under two 8 second video
clips, the second audio clip will start playing as soon as the first audio clip is comlete.
Also, since the audio in this example is longer than the video (19 > 16), you would have 3
seconds of audio with black video.Here are some step-by-step instructions of how the library might be used. You should
also check out DESCombine.chm.
我做录音功能,mp3音频编辑,其他音频格式转换为mp3格式。
DirectShow通过不同的Filter, 将输入输出处理通过Filter连接起来,成为一个完整的输入输出流。
具体你可以上网找找啊,DirectShow如果不要自己写Filter是很简单的。录音, 其实就是使用声卡,将声音这种模拟信号,按照一定的采样率进行采样,变成离散的数字信号,也就是PCM数据。 然后你就可以用某一种文件格式进行编码保存了,比如MP3 OGG WMA等。录音就是这个采集的过程,一般来说,对于常见格式,可以非常方便地完成上述操作。直接Capture就可以,你自己完全不必担心中间的过程。音频转换一般是格式转换,最直接的方式,就是先将音频解码到PCM数据,然后根据需要输出的音频格式,对PCM数据再次编码输出。音频编辑要看你具体要实现什么功能,这个可以说是最复杂的了。
我编写的时候是要引用directshow的一些动态库吗,但是我下载了之后没找到相关的.dll文件啊。
请
下载链接AudioStudio3
Download Link AudioStudio3