13

I got a video who needs some delicate tweaks. In that video I recite several poems. My voice sounds too low, while the background noise is too high. If someone turns its sound at maximum to be able to hear and understand me, his ears will be hurt by the final applauses.

So, I really need to edit this video before I can make it public, but, as you can see, this task is very delicate and complicated. I was not able to find a proper solution for it while i was using Windows. Now, that I am a new Linux user, the task gets even harder. But I hope that with your help and your vast experience, I can find the right app for this.

I know that there is a list of video editing software on the wiki section of askubuntu site, but that list by itself, can't help me. I need an exact answer from someone who went trough the same problem and found the solution.

Please, take into consideration the fact that I am a newbie in Linux and I have a Gnome environment on my PC.

  • Kiloseven I'm afraid that I don't have the original file. Right now I have downloaded it from my youtube account by using a Firefox add-on, and the resulted video is an .mp4. I can't remember the original format. I've tried to compress the sound by using a program If I'm not wrong, its name was WavePad Sound Editor. I have extracted the sound from the video, and then, after editing it, I have tried to put the pieces back together. I mean, I have tried to recreate the video. But the image and the sound were not synchronized perfectly. Besides, the applauses remained a treat for the ears. – Cristiana Nicolae Dec 16 '13 at 22:56
  • 1
    Tube Enhancer is good for downloading videos and audio from YouTube. You could use 'Noise Removal' in Audacity as well - you can select and remove some of the background noise. There is a long wiki on it here, but you may be able to find more if you google it. If you want to edit video, as well, you may want to use Kdenlive. Kiloseven will not get the response unless you use @kiloseven by the way... – Wilf Dec 16 '13 at 23:00
  • @wilf Thank you! I'll check on the links. I'm not sure which one of the two apps should I use in my case. Audacity or Avidemux? For downloading videos from youtube I use NetVideoHunter Downloader https://addons.mozilla.org/en-US/firefox/addon/netvideohunter-video-downloade/ I hope it does not affect the quality of the video. – Cristiana Nicolae Dec 16 '13 at 23:10
  • Besides, the applause remained a treat for the ears. AS WELL THEY SHOULD. Your file format is now MP4. Within that there can be multiple different audio and video streams, as explained at http://en.wikipedia.org/wiki/MPEG-4_Part_14#Data_streams - and Avidemux is better for this purpose than Audacity, for Audacity is audio-only while Avidemux is video + audio.

    – K7AAY Dec 16 '13 at 23:18
  • @kiloseven Yes, I used a humoristic metaphor but it is the truth. And I am not the only one who says that. I have asked several close friends to review it, and all of them told me that I have to solve the sound problem because it breaks their tympanum, while the reciting force them to prick up their ears. – Cristiana Nicolae Dec 16 '13 at 23:26
  • @kiloseven By "as well they should" I understand what you mean and I thank you for that! Well, if Avidemux is far better choice than Audacity, then is no reason to complicate things with sound editors. I'll have to study Avidemux which looks terribly complex for a beginner like me. – Cristiana Nicolae Dec 16 '13 at 23:32
  • And, metaphors be with you. – K7AAY Dec 16 '13 at 23:48
  • Using Avidemux will probabaly be simplest in the long run, as you don't have to remove the audio to edit, like you have to with Audacity. Avidemux will probably be simplest :-) – Wilf Dec 17 '13 at 09:48
  • Audacity/ffmpeg looks compliated but is not really (see below). We will save a lot of time when we do not have to re-code. – Takkat Dec 17 '13 at 19:24

2 Answers2

25

To get a good noise reduction we cannot simply rely on basic denoise filters, as these may not be much more than low or high pass filters which then may lead to a rather muffled result.

A better approach will be using a dedicated audio processor designed to have good noise reduction algorithms on the audio content of our video only.

To do so the following short tutorial uses Audacity for audio processing, and FFmpeg for audio extraction and rebuilding the video.

  1. Extract the audio from our video file
    To keep the original's audio encoding we need to find out what codec the audio of our video file uses. This will e.g. be displayed on the right click file Properties > Video/Audio tab. You e.g will find it is AAC or mp3 encoded. Then we can extract the audio of an mp4 file with the following command:

     ffmpeg -i infile.mp4 -acodec copy outfile.aac
    

The option -acodec copy says we do not resample audio

  1. Use Audacity's noise reduction filters:
  1. Merge audio and video again.

Again, to avoid resampling we need the option copy to just use the data as they are. The source video's audio track will be remapped to the denoised sample with the following command:

    ffmpeg -i infile.mp4 -i denoised-audio.m4a -vcodec copy -acodec copy -map 0:0 -map 1:0 denoised-video.mp4
Takkat
  • 142,284
1

So the audio level needs to be 'compressed', that is, the loudest and the quietest volumes need to be brought closer together. That could be done manually by someone 'riding the gain' (manually adjusting the audio level, or Audacity does that automatically for audio).

However, you need to keep the audio synchronized with the video, and Audacity won't do video, so I suggest you register at the Avidemux forum and post your question there, for Avidemux is the most popular video-audio editor for Linux (based on frequency of http://SourceForge.net downloads).

There's also a list of other video+audio editors here on Video editing software options? and from the screenshot, PITIVI will also do what you need.

K7AAY
  • 17,202
  • Thank you for the information. It seems to me that my reply can't get to you because your nickname doesn't get linked. As i have told before, I can't be sure what should I use Avidemux or Audacity? I will check on the links. I am tempted to choose Avidemux, because it is after all, a video editor. But, just like you've said, I need a video editor who does what Audacity can do for sound files. – Cristiana Nicolae Dec 16 '13 at 23:19
  • It will get automatically linked in Answers anyway... – Wilf Dec 17 '13 at 09:40
  • TY for your detailed reply! – K7AAY Dec 17 '13 at 16:09