chipturner / rtsp-timelapse-scripts Goto Github PK
View Code? Open in Web Editor NEWSome scripts I made for creating a timelapse from an RTSP stream
License: Apache License 2.0
Some scripts I made for creating a timelapse from an RTSP stream
License: Apache License 2.0
Having used this successfully and now setting up on another device, having some issues
I'm running:
/home/user/Downloads/rtsp-timelapse-scripts-main/grab-timelapse-frame.py --city Manchester --output-directory /media/timelapse --output-filenames opsbuilding --url 'rtsp://admin:[email protected]:554/Streaming/Channels/101'
But getting:
Traceback (most recent call last):
File "/home/user/Downloads/rtsp-timelapse-scripts-main/grab-timelapse-frame.py", line 116, in <module>
main()
File "/home/user/Downloads/rtsp-timelapse-scripts-main/grab-timelapse-frame.py", line 69, in main
action=argparse.BooleanOptionalAction,
AttributeError: module 'argparse' has no attribute 'BooleanOptionalAction'
Google suggests python 3.9 is required, but trying to get that running on Ubuntu 2.04 has been a nightmare so far.
Just looking for some clarification on versions, before I pursue - many thanks
Thank you for posting this, it's almost exactly what I've been looking for: capture a UniFi Protect time lapse on a Synology NAS. I've made a few slight tweaks, and have successfully set up a Docker container on the NAS and I've been able to collect a day's worth of image grabs using grab-timelapse-frames.py. I'm now trying to create a movie, and I'm not getting past the filter frames stage.
pi@camera:~/rtsp-timelapse-scripts $ ./filter-timelapse-frames.py /volume1/timelapse --sample 6 > /tmp/filelist
usage: filter-timelapse-frames.py [-h] [--skip-weekends SKIP_WEEKENDS]
[--sample SAMPLE]
[--supersample_ranges SUPERSAMPLE_RANGES]
filter-timelapse-frames.py: error: unrecognized arguments: /volume1/timelapse
How do we specify where the input files are located? I took a SWAG, and tried running the script from the /volume1/timelapse directory which is where the grab script puts them, and leaving off the directory parameter, but that just caused fileinput.input() to try reading from stdin, which accomplished nothing.
I tried adding a positional argument to the parser list, and passing that value to fileinput.input() so the posted syntax works, but now it simply trows an "IsADirectoryError" exception.
Either something is broken, or I'm too stoooopid to figure it out. The latter is entirely possible: I have almost four decades of professional programming experience, but I only lightly dabble in Python, and I have no experience with the fileinput library.
Can you please provide some clarification on sample parameter in filter-timelapse-frames.py?
$ ./filter-timelapse-frames.py /path/to/pile --sample 10 > /tmp/filelist
I am running the capture command every minute, and have about 50GB of images saved so far...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.