-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow globs as input to enable full-folder scanning #5
Comments
EDIT: This feature is now available in the latest release of DVR-Scan. Hi @sveken; Currently there is no way to accomplish this purely via DVR-Scan. However, you could write a Python or Bash script to accomplish this by running the I'll look into adding this as a possible enhancement for a future release, thanks for your submission. |
As a possible way of implementation, perhaps allowing globs for the input file would be helpful. |
From #10, it would also be useful for this to output a list of motion events in a CSV file for each video scanned, to allow automated removal of videos without any motion events. |
Just wanted to share - for any Windows users who want to scan a folder or subset of folders, here's a quick and dirty command you can use:
This runs a directory listing for all .mp4 files, and spits out a list of filenames. For each filename, the command "dvr-scan -i [filename]" is run. Amend the command above as necessary to get the results you need (e.g. pass in additional options to dvr-scan, sort the directory listing by date descending, etc...) |
Similarly for anyone on MacOS:
|
This is definitely on my radar (see #10), but I won't be able too address some of these improvements as the project requires a major refactor before looking into adding new features (it grew rather rapidly from a prototype script into a feature rich application, and to be honest, I still have a lot to learn about high level software design and scalability). Will get back to this as soon as that's done. Thank you all for the above batch scripts, they'll likely be very useful for users in the meantime. Will pin this issue for more visibility. |
Also - on Mac os X - if you have multiple subfolders (the example above only handles video files at 1 level) you can use
|
I like your suggestion in #48 to also process files in parallel, @aardvark82 - that should definitely be possible. I'm working on refactoring the codebase to be more modular/reusable, which definitely supports this goal (and should be a lot cleaner to implement once I'm finished reworking the internal API). |
One work around for windows users is to do the following
dvr-scan -i 2012-05-24_12-29-38.AVI -t 0.3 -tb 00:00:05.0000 -tp 00:00:5.0000 -l 60 -i 2012-05-24_12-48-17.AVI -t 0.3 -tb 00:00:05.0000 -tp 00:00:5.0000 -l 60 -i 2012-05-24_13-18-48.AVI -t 0.3 -tb 00:00:05.0000 -tp 00:00:5.0000 -l 60 -i 2012-05-24_13-49-15.AVI -t 0.3 -tb 00:00:05.0000 -tp 00:00:5.0000 -l 60 -i 2012-05-24_14-19-41.AVI -t 0.3 -tb 00:00:05.0000 -tp 00:00:5.0000 -l 60 -i 2012-05-24_14-50-26.AVI -t 0.3 -tb 00:00:05.0000 -tp 00:00:5.0000 -l 60 |
THANK YOU! |
Link to workaround for scanning all files in a folder to the FAQ.
Finally managed to get around to fixing this, and will be included in the next release (v1.5). Summary of upcoming changes:
This means all of the following forms will work in DVR-Scan v1.5:
I've also added a Sorry for the delay in getting to this, hoping to release v1.5 sometime within the next month or so (lots of cool new features are being worked on 😄). Also planning on getting an early beta/release candidate before the final version is out, so stay tuned! For anyone eager to provide feedback, you can grab .whl's from the AppVeyor builds: |
The latest release of DVR-Scan (v1.5.1 at time of writing) now includes correct support for this.
Feedback is most welcome. :) |
I am trying the multiple file option using this command but getting an error! dvr-scan -i e:\video\2013-10-27*.avi -d d:\temp -l 60 First file works fine but does not seem to transition to the next. [DVR-Scan] Scanning 45 input videos for motion events... |
@jaybeegee66 sorry there was a bug with that beta, this should work correctly in the latest official release (v1.5.1). Let me know if the latest version works out for you, thanks! |
Sounds good thank you! Edit - my bad picked up an old build! |
Hi, am using this command dvr-scan -i "folder/*.mp4" for folder scanning. But I noticed the filenames of the motion videos use only the first video name as initial naming. Is it possible that the motion video's use the name of their original video? |
@Arielblues there's no option for this, but it's certainly possible. Feel free to file a new feature request for it. The reason things are the way they are is DVR-Scan treats all inputs as a sequence (e.g. motion events can span multiple videos). Could you describe a bit more about your use case? In the meantime, you may want to consider calling DVR-Scan on each file individually using a for loop in your shell, rather than using wildcards. Thanks! |
Hello,
Wanting to use this for my dashcam when it is in parking mode, only problem is even in parking mode it only does 3 minute clips over the 8 hours,
Is there a way to scan a whole folder?
The text was updated successfully, but these errors were encountered: