user6160: I need just increase sound of my MTS video. But I'm very afraid to lose the quality of video because it is classical music and intonation is very important.

user4943: The setup that i use for something similar is:
Step 1 - demux
avconv -i in.mts -an -c:a copy video.mkv -c:a copy audio.ac3

Step 2 - audio editing
For this i just open my audio.ac3 in Audacity and normalise the sound. At this time it may be a good idea to try to remove the noise. I reencode into Vorbis, but it is up to you what you wish to do. Let's say you save into audio.oga
Step 3 - mux
avconv -i video.mkv -i audio.oga -c:v copy -c:a copy out.mkv

Notes

Video was getting copied all the time. So no quality loss is possible from that.
You can drop the video demuxing, and just grab it directly from the original in the third step. But i find it just makes the process much cleaner when you know where everything is.


6160: <p>I need just increase sound of my MTS video. But I'm very afraid to lose the quality of video because it is classical music and intonation is very important.</p>
 4943: <p>The setup that i use for something similar is:</p>

<p><strong>Step 1</strong> - demux</p>

<pre><code>avconv -i in.mts -an -c:a copy video.mkv -c:a copy audio.ac3
</code></pre>

<p><strong>Step 2</strong> - audio editing</p>

<p>For this i just open my audio.ac3 in Audacity and normalise the sound. At this time it may be a good idea to try to remove the noise. I reencode into Vorbis, but it is up to you what you wish to do. Let's say you save into audio.oga</p>

<p><strong>Step 3</strong> - mux</p>

<pre><code>avconv -i video.mkv -i audio.oga -c:v copy -c:a copy out.mkv
</code></pre>

<p><strong>Notes</strong></p>

<ol>
<li>Video was getting copied all the time. So no quality loss is possible from that.</li>
<li>You can drop the video demuxing, and just grab it directly from the original in the third step. But i find it just makes the process much cleaner when you know where everything is.</li>
</ol>
