Remove audio noise from captured videos

I have a JVC HD camcorder to video tape some presentations. The webcam is not bad but the AC in our room is just too noisy. As I mentioned in a previous post, one can easily remove noise using Audacity. However, the video from the my camcorder has the annoying MTS format. It took me some time to find a way to replace the audio track. To denoise the audio, we have three steps:

  1. Extract the audio track using ffmpeg, the command is
ffmpeg -i original.mts -acodec copy -vn noisy.ac3
  1. Denoise the extracted audio track. You can check out my previous post for detail. Let say denoised.wav is the denoised audio track.
  2. Replace the audio track with the denoised one. Use the command
ffmpeg -i original.mts -i denoised.wav -scodec copy -acodec copy -vcodec copy -f matroska output.mkv

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s