简体   繁体   English

从视频中提取声音

[英]Extract sound from video

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. OpenCV允许我这样做:从视频的每一帧中提取图像,对其进行处理,然后将结果重新转换为视频格式。 However, OpenCV is only a computer vision library. 但是,OpenCV只是计算机视觉库。 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. 我想从正在使用的视频中提取声音(实际上是音乐),并将其放入最终视频中。

您可以使用FFmpeg中使用的libavcodec库。

Try Tuna Audio Extracter ( http://github.com/tuna74/TunaAudioExtracter ). 尝试金枪鱼音频提取器( http://github.com/tuna74/TunaAudioExtracter )。 You can use the extracter part from that program. 您可以使用该程序中的提取器部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM