View Full Version : How to append 2 AVIs with different audio encoding ?
mike23
5th October 2007, 09:05
It occurs sometimes that I have two parts/files of one movie which I want to append and to create one single AVI file.
When I use the "Append" function of VirtualDub then sometimes I got the error message similar to "Cannot append because the audio encoding is different"
How can I append such 2 AVI chunks with AviSynth ?
Let's say I have the following two movies:
myvideo1.avi with VBR 118 kbit/s audio.
and
myvideo2.avi with CBR 160 kbit/s audio
video resolution and codec (Xvid) are the same.
How would an AViSynth script look like
which appends and creates a target movie:
myvideofull.avi
with the audio encoding same as the first part ?
Mike
Dark Shikari
5th October 2007, 09:24
Avisynth doesn't create files--you can open the script and then save the result as a file with, say, VirtualDub.
However, note that Avisynth also doesn't do appending without re-encoding--it can append the videos, yes, but you'll have to re-encode afterwards. If you don't want to re-encode the videos, which it seems you're trying to avoid, you have a few options:
1. Re-encode the audio on one so its the same as the other.
2. Append the audio separately, encode it separately, import it in place of the old audio.
3. Re-encode the entire thing.
foxyshadis
6th October 2007, 00:36
If both audio tracks are mp3, you can just concatenate them with avidemux. You might have to pad or cut a bit off of one side, which can get a bit messy. Let's see.... yes, it does appear to compensate. Do that then, one-step appends.
setarip_old
6th October 2007, 02:16
@mike23It occurs sometimes that I have two parts/files of one movie which I want to append and to create one single AVI file.
When I use the "Append" function of VirtualDub then sometimes I got the error message similar to "Cannot append because the audio encoding is different"You've really piqued my curiosity:
Why did you, or better yet, HOW did you initially create two parts of the movie you were ripping with two different audio formats?
mike23
6th October 2007, 07:28
@mike23You've really piqued my curiosity:
Why did you, or better yet, HOW did you initially create two parts of the movie you were ripping with two different audio formats?
As you can imagine I got the two clips from someone else. I would have encoded them by - of cause - the same codec settings.
Adub
6th October 2007, 09:26
Who exactly is "someone else"?
Leak
6th October 2007, 10:47
As you can imagine I got the two clips from someone else.
Whoops, there goes the thread...
np: Future Sound Of London - Space Squids (From The Archives Vol. 3)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.