If you are just going to convert anyway then you could just join with AVISynth, could also save to pcm wav.
AVISynth would be something like
part1 = avisource("part1.avi")
part2 = avisource("part2.avi")
return part1+part2
Then just encode that instead of the AVI. Assuming that whatever you are using accepts avisynth scripts as input, fake AVIS avi's or pipe from avs2yuv.