Skip to content

Commit

Permalink
[docs] Specify where output files are created. Breakthrough#87
Browse files Browse the repository at this point in the history
  • Loading branch information
Breakthrough committed Jul 24, 2022
1 parent 24b6225 commit 84b37a5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
12 changes: 12 additions & 0 deletions docs/guide/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,24 @@ Hit Ctrl + C on your keyboard to exit DVR-Scan.
----------------------------------------------------------


### Where are motion events (and other output files) saved?

By default, DVR-Scan saves all files in the current working directory (the location you are invoking the `dvr-scan` command from). You can set the output directory with `-d`/`--output-dir`:

dvr-scan -i video.mp4 -d events_folder/


----------------------------------------------------------


### How can I scan all files in a folder?

You can use a wildcard in the input path to select multiple videos:

dvr-scan -i folder/*.mp4

You can also specify multiple input video paths, which will be processed in the order they are specified.

Note that multiple input videos are not supported when `-m`/`--output-mode` is set to `ffmpeg` or `copy`. As a workaround, you can [use ffmpeg to concatenate all input videos](https://trac.ffmpeg.org/wiki/Concatenate) before using DVR-Scan to process them.


Expand Down
2 changes: 1 addition & 1 deletion docs/guide/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ To perform motion detection on `video.mp4`, creating a new video for each motion

dvr-scan -i video.mp4

The output will be placed in the current working directory (the location you are running DVR-Scan from). To save all output files in to a particular location, use `-d`/`--output-dir`:
The output files will be placed in the current working directory (the location you are running DVR-Scan from). To save all output files in to a particular location, use `-d`/`--output-dir`:

dvr-scan -i video.mp4 -d extracted_events/

Expand Down
1 change: 1 addition & 0 deletions dvr_scan/video_joiner.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
FRAMERATE_DELTA_TOLERANCE: float = 0.1


# TODO: Replace this with the equivalent from PySceneDetect when available.
class VideoJoiner:
"""Handles concatenating multiple videos together.
Expand Down

0 comments on commit 84b37a5

Please sign in to comment.