Giter Site home page Giter Site logo

rtsp-timelapse-scripts's People

Contributors

chipturner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

rtsp-timelapse-scripts's Issues

Python versions?

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

filter-timelapse-frames.py path to pile parameter

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.

Help w/ sample argument

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...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.