<p>To force to 44100 Hz, command template is</p>

<pre><code>ffmpeg -i old.mp4 -map 0 -c:v copy -c:a aac -ar 44100 new.mp4
</code></pre>

CC BY-SA 4.0
2018-07-11T12:57:03.950Z
Is there a way to force the merge?
masterq
CC BY-SA 4.0
2018-07-11T13:17:56.707Z
Using mkvmerge, don't see a way. Playback speed would be wrong for 2nd file even if you could.
Gyan
CC BY-SA 4.0
2018-07-11T12:52:27.167Z
2018-07-11T12:52:27.167Z
Gyan
<p>I'm trying to merge a few video files through <code>mkvmerge</code> but I get the following error after running</p>

<pre><code>mkvmerge -o '/home/videos/marged/new.mp4' '/home/videos/intro.mp4' \+ 'old.mp4' \+ '/home/videos/intro.mp4'
</code></pre>

<p>Error:</p>

<pre><code>Error: The track number 1 from the file 'old.mp4' cannot be appended to the track number 1 from the file '/home/videos/intro.mp4'. The sample rate of the two audio tracks is different: 44100 and 22050
</code></pre>

<p>Is there a way to force this? If not how can I change the audio to the same rate as <code>old.mp4</code> in ffmpeg for <code>/home/videos/intro.mp4</code></p>

<ffmpeg><bitrate>
"The sample rate of the two audio tracks is different"
masterq
# "The sample rate of the two audio tracks is different"

(Asked by: username_0 on 2018-07-11)

I'm trying to merge a few video files through mkvmerge but I get the following error after running
mkvmerge -o '/home/videos/marged/new.mp4' '/home/videos/intro.mp4' \+ 'old.mp4' \+ '/home/videos/intro.mp4'

Error:
Error: The track number 1 from the file 'old.mp4' cannot be appended to the track number 1 from the file '/home/videos/intro.mp4'. The sample rate of the two audio tracks is different: 44100 and 22050

Is there a way to force this? If not how can I change the audio to the same rate as old.mp4 in ffmpeg for /home/videos/intro.mp4

**Tags:** ffmpeg, bitrate


---

## 1 answers

### Answer by username_1 on 2018-07-11. Score: 2

To force to 44100 Hz, command template is
ffmpeg -i old.mp4 -map 0 -c:v copy -c:a aac -ar 44100 new.mp4

> **Comments:**
> **username_0**: Is there a way to force the merge?  
> **username_1**: Using mkvmerge, don't see a way. Playback speed would be wrong for 2nd file even if you could.  

---

