How come when I render my animation, the audio is clipped when I stitch together the pieces? I have a slow computer, and I have an animation of 4400 frames. If I render all at once, it would crash. So I made this Python script to try to help me:

#START OF SCRIPT

import bpy
import time

wait = time.sleep
start = 0
end = 4400
increment = 10

current = start

for i in range(start,end + increment,increment):

    wait(2)

    current = i

    bpy.data.scenes["Scene"].frame_start = current + 1
    bpy.data.scenes["Scene"].frame_end = current + increment
    bpy.ops.render.render(animation=True)
#END OF SCRIPT


And I get all of the pieces of the animation:



But when I try to stitch it together like so:



It just doesn't line up. The audio and video are clipped in-between, and the amount of audio frames just doesn't line up with the video.

Did I do something wrong with the script? The stitching? The animation? Please help soon, as I am trying to make this as a Christmas present.

These are the steps I took: https://www.youtube.com/embed/VVY6C2K_1wM
Here is the file: http://www.pasteall.org/blend/33331
It is good practice to not render out movie strips to a single move file. Instead you should render images as .PNG files and add the images together in the video sequence editor. Then add the original audio clip afterwards, in the final edit. I wouldn't recommend using a script at all.

Change output to PNG:



Set range to 100 frames(to test with):



Then press the normal animation-render button:



When that's done, you go to video editing and press "Add" -> "Image" and select all 100 images.



Blender will then treat this as a movie strip.

Then you add the audio clip, and adjust so the timing matches