pilapse
Python module to capture time lapse videos on Raspberry Pi
Examples
Installation
It's recommended to create a virtual environment:
python -m venv pilapse
cd pilapse
source bin/activate
You can simply install pilapse from PyPi:
pip install pilapserec
Usage
To capture an image only (can be used to check the camera beforehand):
pilapse capture
To record a long video:
pilapse record
To make a video out of captured images:
pilapse compile
However, you are advised against video compiling directory on Raspberry Pi, as the system resource may run low and you are almost certainly to be kicked out of the SSH session. For the same reason, you are advised against using the --auto-compile switch. After record session, you can plug the microSD card into your main work station and compile them there.
For more options, refer to --help command:
(pilapse) aki@hakune:~/pilapse $ pilapse --help
piLapse - capture time lapse video on Raspberry Pi.
Usage:
pilapse capture [-i <image-name>] [-s <save-dir>] [--no-time] [--verbose]
pilapse record [-d <duration> | -c] [-f <frequency>] [-l <length>] [-w <width>] [-s <save-dir>] [-S <wait-time>] [--auto-compile] [-o <video-name>] [-F <fps>] [--no-time] [--preserve] [--verbose]
pilapse compile [-s <save-dir>] [-o <video-name>] [-F <fps>] [--preserve] [--verbose]
pilapse clean [-s <save-dir>]
pilapse (-h | --help)
pilapse --version
Actions:
capture Take 1 image only.
record Record a timelapse video.
compile Compile labelled images into a video.
Options:
-h --help Show this screen.
-c --continuous Set to continuously run mode.
-d --duration DURATION Set recording duration (by seconds) [default: 600].
-f --frequency FREQUENCY Set time interval between shots (by seconds) [default: 5].
-F --fps FPS Set final video fps [default: 24].
-l --length LENGTH Set image length dimension (by pixel) [default: 3280].
-w --width WIDTH Set image width dimension (by pixel) [default: 2464].
-s --save-dir SAVINGDIR Set working and saving directory [default: ~/Videos/pilapse].
-S --shutter-wait TIME Set timer before start capturing (by seconds) [default: 0].
-i --image-name NAME Set image name in capture mode [default: image.jpg].
-o --output-video NAME Set output video name.
-a --auto-compile Automatically compile images [default: True].
-p --preserve Do not automatically clean up after recording.
-n --no-time Do not add time in capture mode.
--verbose Set to verbose mode.
--version Show version.
To keep the process running after log out of SSH, you can use screen or tmux:
sudo apt install tmux
tmux
pilapse record
If you encounter numpy error while making videos on Raspberry Pi, run this command and try to compile again:
sudo apt install libatlas-base-dev ffmpeg
Development
Any contribution is deeply appreciated.
Metadata
Release files for pilapserec 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pilapserec-0.0.1.tar.gz | 8.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pilapserec-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.1 kB
Release files / pilapserec-0.0.1.tar.gz
| Download URL | pilapserec-0.0.1.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0eff7cad0ab15532ab3709006dd4406b2da67c99a93b28da97c20a83d6b36bb5
|
|
BLAKE2b-256 checksum How to use checksums |
4faa29d0a956a4e00daf3c2e9b9d8750ba2c429a47b79a3625b98c75b42e3b1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / pilapserec-0.0.1-py3-none-any.whl
| Download URL | pilapserec-0.0.1-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ecf4546b015085f52dbf22d4774c1e6a9ba1751ce47a191b35095c697ffe48d1
|
|
BLAKE2b-256 checksum How to use checksums |
d15732375aafeab8a1679ec32f2224db4ce0ecf9c669bbf5334fd2105998dc30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Security for pilapserec 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.