从视频中提取声音
我目前正在做多媒体作业,必须使用一个视频作为前景,另一个视频作为背景来创建一个新视频。 OpenCV 使我能够做到这一点:从视频中的每一帧中提取图像,对其进行处理并将结果重新转换为视频格式。然而,OpenCV只是一个计算机视觉库。有没有一个库可以让我对声音做同样的事情?我想从我正在使用的视频中提取声音(实际上是音乐)并将其放入最终的视频中。
I'm currently doing my Multimedia assignment where I have to create a new video using one video as a foreground and another as a background. OpenCV allows me to do just that: extracting images from each frame in video, processing them and putting the results back into a video format. However, OpenCV is only a computer vision library. Is there a library that allows me to do the same for sound? I'd like to extract sound (music, actually) from a video I'm using and put it into the final video.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用 FFmpeg 中使用的 libavcodec 库。
You can use libavcodec library used in FFmpeg.
尝试 Tuna 音频提取器 (http://github.com/tuna74/TunaAudioExtracter)。您可以使用该程序中的提取器部分。
Try Tuna Audio Extracter (http://github.com/tuna74/TunaAudioExtracter). You can use the extracter part from that program.