tp is a command line tool to generate (afterimage) time-lapse video from a sequence of jpg images.
It generates uncompressed AVI files. Compression is usually required as a post-processing step by selecting an appropriate codec.
Any Video Converter is available as a free software.
sudo apt install libopencv-dev cmake
mkdir build
cd build
cmake ..
make
./tp /path/to/config/fileIf necessary, please use the following command to install tp.
sudo make installsample.mp4
All you need to prepare is a jpg images and a configuration file!
- Brightness adjustment and deflicker of jpg files must have been carried out beforehand. LRTimelapse can be used for this.
- Comment out (#) is valid in the configuration file.
- In normal mode (mode: 0), alpha and threshold need not be specified. If specified, it is ignored.
input_folder=/path/to/input/
output_file=/path/to/output/movie.avi
fps=24.0 # frame per second
mode=0 # 0: normal, 1: afterimage
threshold=20 # Specifies the brightness threshold of the pixel to be synthesized in comparison brightness synthesis
alpha=1.0 # Specifies the afterimage levelMIT License
Kawada Yuta
There are several examples of this work. Not all use tp.
see HOWTO.md