Movie Making
In this blog post methods to create "movies" (mpegs) from our signal processing plots will be presented.
Movie Making
To create an movie from plots is relatively straight forward. First a collection of images is created and then the mplayer software is used to create an MPEG from the collection of images. This example, simple magnitude and phase plots were created from a sweeping sine. The Python numerical, scientific and plotting packages were used to create the plots. The steps should be the same with Matlab software as well (and clones).
The Python software used:
- numpy : numerical package for Python
- scipy : scientific pakcage for Python has a familar signal processing package
- matplotlib : very powerful plotting package with Matlab compatiable "wrapper" functions
Steps to create an MPEG:
The following Python code shows the loop that was used to generate the collection of images. This does take some computing time and storage. The matplotlib provides access to all attributes of a plot enabling professional looking plots.
The full code is available here.
The generated mpeg was uploaded to YouTube and can be viewed here.
- Comments
- Write a Comment Select to add a comment
To post reply to a comment, click on the 'reply' button attached to each comment. To post a new comment (not a reply to a comment) check out the 'Write a Comment' tab at the top of the comments.
Please login (on the right) if you already have an account on this platform.
Otherwise, please use this form to register (free) an join one of the largest online community for Electrical/Embedded/DSP/FPGA/ML engineers:







