Log in

View Full Version : Joining using script gives ACM/PCM error, help?


iangreg
13th September 2005, 13:03
Hi there,

Well i have been playing xvid for quite a while now but i decided to try and join 2 files together.. from what i am been reading its better to use avisynth so audio doesn't get out of sync.

Anyway my first atttempt failed, i got an error about not being able to decode so i installed the TRUE xvid codec where as before i used a codec pack.

So its now seems to be ok ... i created my avs script.. pretty simple.. here it is

Source1 = AVISource("b-bosua.avi")
Source2 = AVISource("b-bosub.avi")
AlignedSplice(Source1, Source2)

and run this using Windows Media player.. now I got a screen displaying

"ACM failed to suggest a compatible PCM format (c:\movies\join.avs, line 1)

Anyone suggest where i am going wrong?

Thanks

ian

movax
13th September 2005, 15:49
What is/are the audio formats of those two AVIs?

Wilbert
13th September 2005, 16:35
Probably AC3. Get AC3ACM: http://fcchandler.home.comcast.net/AC3ACM/

If it is DTS you have to demux the audio separately and import it with NicAudio. If it is AAC then it is not possible to do it this way.

mg262
13th September 2005, 16:53
Incidentally, please do be aware that what you're trying is fine for playback but is not an appropriate way to merge the two files into one (the output from AVISynth is not compressed).

iangreg
14th September 2005, 12:19
Thanks wilbert and everyone... it was the ac3 decoder thingy..

So now it works, it opens up the .avs file and plays the movie.

But am i missing something, i expected, well guessed :-) that it would create a file called for example JOIN.AVI which would include both files together and merged them

The 2 avi's are XVID format.

My script i have placed here again for easy reading, am i missing something or doing something wrong? Actually i did get the script from the forum but maybe i did something wrong or missing a line or something??

Thanks again

heres the script

Source1 = AVISource("b-bosua.avi")
Source2 = AVISource("b-bosub.avi")
AlignedSplice(Source1, Source2)

iangreg
14th September 2005, 12:22
hi mg62,

thanks for your input. Ahh i didn't realise, any idea what the recommended way of joining 2 files is then?

I did originally consider using virtualdubmod but after reading some forum msgs it appears that avisynth was a better way

Basically it end result i am trying to acheive... is have both files merged into 1 without the audio going out of sync for example.

Most the files i going to be xvid.... some with ac3 and some with mp3

Thanks

Ian

Wilbert
14th September 2005, 13:57
If they have both AC3, you can use VDubMod to join them. For MP3 VDub or VDubMod. If the audioformats of both streams are different, i guess you need to use a different container for that (MKV or OGM). But i never did that, so i'm not really sure.

movax
14th September 2005, 16:12
Just open the first AVI in VDubMod, choose "Append AVI Segment", select the second AVI, make sure everything is set to direct stream copy, and save as a new avi.

mg262
14th September 2005, 16:17
In the case where the two audio codecs (or audio bit rates) are different, I would personally re-encode one.

iangreg
17th September 2005, 12:51
Thanks everyone, for some reason i thought i had to use avisynth for best results but i am now doing the virtualdubmod...

thanks agian

ian