4
$\begingroup$

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:

Animation Pieces

But when I try to stitch it together like so:

Stitch

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

$\endgroup$
  • $\begingroup$ If you post links for the first two video clips and also the first two audio clips then people will have something to test with. You might also want to update your answer with: Step1, Step2, Step3, etc... without skipping anything that you are doing. $\endgroup$ – MarcClintDion Dec 14 '14 at 16:20
  • $\begingroup$ @MarcClintDion I added a link to a video. $\endgroup$ – JoshuaS3 Dec 14 '14 at 17:30
  • $\begingroup$ your explanation was fine without the video. The problem is that without some of the assets that are causing the problem, a person who wants to look at this issue has to recreate all the assets by guessing at your setup. This could take all day(or more) and the results will likely not help you because the person was only guessing at where your problem may be. $\endgroup$ – MarcClintDion Dec 14 '14 at 21:39
  • $\begingroup$ I added the file. $\endgroup$ – JoshuaS3 Dec 14 '14 at 21:56
  • $\begingroup$ Don't render out movie strips. Render out images in PNG and add the images as an image strip. Then add the original audio clip afterwards, in the final edit. $\endgroup$ – Einar Dec 14 '14 at 22:30
3
$\begingroup$

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:

enter image description here

Set range to 100 frames(to test with):

enter image description here

Then press the normal animation-render button:

enter image description here

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

enter image description here

Blender will then treat this as a movie strip.

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

$\endgroup$
  • $\begingroup$ It worked. Instead of editing the sound manually, I just did a mixdown for the audio (flac file with all the audio). $\endgroup$ – JoshuaS3 Dec 14 '14 at 22:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.