Difference between revisions of "Movie"

From Wiki
Jump to navigation Jump to search
Line 10: Line 10:
 
An animation is simply a series of images shown in order, one at a time. The number of images per unit of time determines the speed of the movie, a factor usually referred to as the ''framerate''. For instance, if we generate 300 images, we can create a 10-second movie at 30 frames per second, or a 20-second movie at 15 frames per second.
 
An animation is simply a series of images shown in order, one at a time. The number of images per unit of time determines the speed of the movie, a factor usually referred to as the ''framerate''. For instance, if we generate 300 images, we can create a 10-second movie at 30 frames per second, or a 20-second movie at 15 frames per second.
  
This tutorial will be to design and animate a movie showing particles moving along circles. .
+
This tutorial will be to design and animate a movie showing particles moving along circles. The different images needed for the animation will be pages from the same PDF. The general structure of the code is as follows:
  
 +
<texcode>
 +
\starttext
 +
  \dorecurse{300}{ % Each of the 300 images
 +
    \startMPpage
 +
      % Insert here code to draw an image
 +
    \stopMPpage
 +
  }
 +
\stoptext
 +
</texcode>
  
 
Project1-A :  [[File:Project1-A.mp4]]
 
Project1-A :  [[File:Project1-A.mp4]]

Revision as of 14:59, 7 April 2024

Introduction

If you wish to make an animation in your document, see the Animation page. This page will explain how to MetaFun_-_MetaPost_in_ConTeXt to create a mp4 movie. Such movie can be embedded in a presentation, put on YouTube, etc, this will be a real movie !

The steps involved to realize such a movie are to (1) make a pdf such as each page is a frame of the movie, (2) convert the pdf pages to jpeg images, (3) assemble these images into a mp4 movie.

Tutorial

An animation is simply a series of images shown in order, one at a time. The number of images per unit of time determines the speed of the movie, a factor usually referred to as the framerate. For instance, if we generate 300 images, we can create a 10-second movie at 30 frames per second, or a 20-second movie at 15 frames per second.

This tutorial will be to design and animate a movie showing particles moving along circles. The different images needed for the animation will be pages from the same PDF. The general structure of the code is as follows:

\starttext
  \dorecurse{300}{ % Each of the 300 images
    \startMPpage
      % Insert here code to draw an image
    \stopMPpage
  } 
\stoptext

Project1-A : Project1-C2-2160: Project3-C: Project3-B: Project2-B2 : Project2-A: Project1-C2-1080: Project1-B: Project1-B-Slow : Project1-A :