Skip to content

Make video memory time-lapse from camera stream, add some info to it and upload to video platform

License

Notifications You must be signed in to change notification settings

promanski/video-memory

Repository files navigation

video memory

Create timelaps from IP camera's snapshots, get some weather info and post it on Vimeo.

Requirements

python 3.x
pip3
ffmpeg

Installation

pip3 install -r requirements.txt

Add .env file to root of your project with values:

OPEN_WEATHER_API_KEY  =  "your_api_key"
CAMERA_SNAPSHOT_URL  =  "your_camera_url"
# Vimeo token (read/write)
VIMEO_TOKEN  =  "vimeo_token"
# LOCATION OF CAMERA
LOCATION_LATITUDE  =  "10.00"
LOCATION_LONGITUDE  =  "10.00"

Make sure, that script.py is executable

$ chmod +x /path/to/project/video-memory/script.py

Usage example

Argument Description Required Default
-h, --help Show help message and exit No N/A
--output Define snapshots output No ./data

Add script to crontab to execute every one minute with $ crontab -e. Add following code (execute python code every 60 seconds)

 * * * * * /usr/bin/python3 /path/to/project/video-memory/script.py

At the end of a day, it will merge all snapshots into single video and post it on Vimeo.

About

Make video memory time-lapse from camera stream, add some info to it and upload to video platform

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages