Animations · Part 4

Exporting an Animation as a Video

The preview is for you. The video is for everybody else: an MP4 file that plays anywhere, drops into a presentation and can be sent to a buyer. This guide covers the export, the choices it offers, and what to do if it doesn't go to plan.

Exporting

  1. Check the Export Path. On the editor's Animation Settings tab, the Export Path must name a folder that exists. The video is written there.
  2. Go to the Animation tab and click Export Animation, the button beside the green arrow in the tab's heading.
  3. Choose the options, described below. The Output line shows the file that will be made.
  4. Click the green tick. Spanner draws the film a frame at a time. The progress bar shows how far it has got.
  5. Wait for the message that says how many frames were exported, and where to.

The video is named after the animation. A draft has Draft or Quick Draft added to its name, so a draft never replaces a final.

Stay on the Animation tab while the export runs. Moving to another tab, or closing the editor, stops it. To stop it yourself, click the red cross at the right of the progress bar. A video that is stopped part-way keeps the frames made so far, and will play.
This guide is for Spanner 2.5.1.1 and later. It assumes you have read Part 1.

The export options

The Export Animation window. Destination is Video, Quality is Final 30 Frames a second, Method is Software Off Screen, the Music File box is empty, Merge Products is ticked, and Output shows the MP4 file that will be made
The options as Spanner first offers them: a final video, drawn by software off screen, with no music.
DestinationVideo makes one MP4 file. Image Files writes a numbered picture for every frame instead: see Image files.
QualityFinal, Draft or Quick Draft. See Quality.
MethodSoftware Off Screen or Hardware: how the frames are drawn. See Software or hardware.
Music FileA sound file to play under the video. See Music.
Merge ProductsDraws the products that no action moves as a few large models, in place of thousands of small ones. The film should look the same and the export is much quicker, so leave it ticked. Untick it if a product ever looks wrong in the film. It changes the preview as well.
OutputThe file, or for image files the folder, that the export will write to.

The green tick, or the Enter key, starts the export. The red cross, or Esc, closes the window without exporting. Spanner remembers your choices for next time.

Quality

A draft draws fewer frames, so it is ready sooner. It plays for exactly the same time as the final: the timing you see in a draft is the timing you will get.

QualityFrames a secondPictureUse it for
Quick Draft5640 by 360Checking the order of events and the timing. It is jerky, and quick to make.
Draft101280 by 720Showing a colleague, and checking how the film looks at full size.
Final301280 by 720The film you present. Movement is smooth and edges are clean.
Work in drafts. Export a Quick Draft after each round of changes and watch it as a viewer would, away from the editor. Make the Final once, when the draft is right.

Software or hardware

The method is how each frame's picture is made.

Software Off ScreenSpanner draws each frame in the computer's memory, not on the screen. Every frame is complete before it is written, on any computer. You can cover the editor with another window and carry on with other work. A Final is drawn at nine times the detail and averaged down, which is what makes its edges clean. This is the method Spanner starts with.
HardwareThe graphics card draws each frame in the editor's window, and Spanner copies the picture from the window. On a computer with a good graphics card it can be quicker. The window has to stay as it is until the export ends.

Use Software Off Screen unless you have a reason not to.

If you use Hardware

  • Leave the editor's window alone. Keep it on the screen, uncovered and not minimised, and don't resize it. A window resized part-way stops the export.
  • Set the picture's size first. The frames are copied at the size the picture has in the window. Right-click the preview, choose Set Render Size and type a width and a height, such as 1280 x 720.
  • Spanner may ask to change how it draws. If Spanner is set to draw 3D in software, it asks to switch to hardware for the export, and offers to save your open documents first. It switches back when the export ends.
  • The marks are part of the check. During a hardware export, a row of small black and white squares appears beside the tab's name and beside the progress bar. They number each frame, so that Spanner can tell that the picture it copied is the frame it asked for.
The Software and Hardware buttons at the top of the Animation Settings tab are a different setting. They choose how Spanner draws 3D on this computer, everywhere in Spanner, and so how the preview is drawn. They don't choose the export's method.

Music

Type the path of a sound file in Music File, or click the button beside the box to choose one. MP3, WAV, AAC, FLAC, WMA and other common kinds can be used. The music starts with the film.

  • Music longer than the film is cut off where the film ends.
  • Music shorter than the film is followed by silence.
  • Leave the box empty for a silent video. The box can't be used when the destination is image files.
  • Check that you may use it. Most recorded music needs a licence before it can be used in a film you show to others.

When it finishes

The message at the end gives the number of frames exported, the time it took, and the file or folder they went to. Below that it shows where the time went:

AnimationWorking out what changes from one frame to the next.
RenderDrawing the pictures.
WaitIn a hardware export, waiting for each frame to reach the screen.
WriteMaking the video, or saving the image files.
Repeat FramesFrames in which nothing moved. They are not drawn again, so a film with pauses in it exports faster than its length suggests.
Frame CheckIn a hardware export. OK means the copied pictures were checked against their frame numbers. A number in brackets counts frames that could not be checked, and Unavailable means the check could not be used at all. In either case, look through the video before you use it.

If anything went wrong, the message ends with the word Error and the reason.

Image files

With Image Files as the destination, the export writes a picture for every frame into the Export Path, named frame0001, frame0002 and so on. Choose it when you want stills for a document, or frames to take into a video editor.

  • Use an empty folder. Frames from an earlier, longer export are not cleared away. Left in the folder, they would be joined on to the end of the next video made from it.
  • One still is easier another way. For a single picture, use Goto Frame Position in the preview and take a screenshot.

Joining image files into a video

Spanner can also turn a folder of frames into a video afterwards.

  1. Choose Tools › Join Image Frames into Video.
  2. Check the Image Frames Folder. Spanner offers the folder of the most recent frames exported from this document's animations. The line beneath says how many frames it found there.
  3. Add a Music File if you want one.
  4. Give the Video Output File: click the button beside the box and name the MP4 file to make.
  5. Click Create Video File. The button appears once there are frames to join and somewhere to write the video. A message beside it shows when the work starts and ends.
Join Final frames only. The joiner plays the frames at 30 a second, and takes every file in the folder whose name starts with frame, in name order. Draft frames would play three times too fast, and Quick Draft frames six times.

If something goes wrong

What you seeWhat to do
There is no Export Animation buttonThe button is on the Animation tab only, and only when the animation has an Export Path. Type one on the Animation Settings tab.
"Export Directory Not Found"The Export Path names a folder that doesn't exist. Create the folder, or correct the path.
"ffmpeg.exe Not Found"Spanner makes videos with a program called FFmpeg, which is installed with it. Install Spanner again to put it back. Image files can still be exported without it.
"Render Size Error"The editor's window changed size during a hardware export. Export again and leave the window alone, or use Software Off Screen.
The export stopped earlyThe tab was changed, or the red cross was clicked. Export again.
Other windows, or the wrong frames, appear in a hardware videoSomething covered the editor while it was exporting. Use Software Off Screen.
The export is slowMake drafts until the film is right. Keep Merge Products ticked. A Final by Software Off Screen is the slowest choice, because it is the most careful: leave it running and work in another window.
The film is longer than you expectedAn action starts later than you meant. See Checks worth making.

Next: Part 5, Adjusting an Animation with Spanner AI.

Want help with an animation?

A good animation can carry a range review. We can show you how to make one, or make one with you from your planograms.

Email us Book a Demo