text 如何使用linux减少视频噪音。

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 如何使用linux减少视频噪音。相关的知识,希望对你有一定的参考价值。

Need a quick, easy and free way of cleaning up a video’s audio from background noise ? Follow the steps below to remove background audio from videos.

First get and install the tools:

FFMPEG.
SoX – Sound eXchange.
Then clean your noise!

Split the audio and video streams into 2 seperate files:
The VIDEO stream: ffmpeg -i input.mp4 -vcodec copy -an tmpvid.mp4
The AUDIO stream: ffmpeg -i input.mp4 -acodec pcm_s16le -ar 128k -vn tmpaud.wav 
Generate a sample of noise from the audio of the file:
ffmpeg -i input.mp4 -acodec pcm_s16le -ar 128k -vn -ss 00:00:00.0 -t 00:00:00.5 noiseaud.wav
-ss: the time offset from beginning. (h:m:s.ms).
-t duration: the duration (h:m:s.ms) of audio segment to cut that represents the noise.
Choose a segment of the audio where there’s no speech, only noise (e.g. speaker was silent for a sec).
 Generate a noise profile in sox:
sox noiseaud.wav -n noiseprof noise.prof
Clean the noise samples from the audio stream:
sox tmpaud.wav tmpaud-clean.wav noisered noise.prof 0.21
Change 0.21 to adjust the level of sensitivity in the sampling rates (I found 0.2-0.3 often provides best result).
Merge the audio and video streams back together:
ffmpeg -i tmpvid.mp4 -i tmpaud-clean.wav -map 0:v -map 1:a -c:v copy -c:a aac -b:a 128k out.mp4
I’m thinking of automating this via a web interface that allows uploading a video file, selection of the noise sample and playing with the noisered levels producing a cleaned version… think it’s a useful tool?
Thanks for all the contributors in the comments!

以上是关于text 如何使用linux减少视频噪音。的主要内容,如果未能解决你的问题,请参考以下文章

如何使用 sentry v5 全局忽略错误以减少噪音

减少数据噪音

资讯|Microsoft如何使用AI过滤掉视频通话中的打字,吠叫和其他噪音

如何在iOS 15中使用背景声音来最大程度地减少干扰?

视频中噪音清除 - 噪音样本去除稳定噪音

在 stl 类型的调试视图中减少噪音