Newbie question - how do I invoke DVR_SCAN from within a python module #107
Replies: 1 comment
-
Firstly, while this is certainly possible, note that there is no official API for DVR-Scan, and I do not have any plans for creating one. If you use the Python API directly, it may break in a future version. You can see how to use the API from the unit tests: Note that the API is different than the CLI, and currently uses a bunch of If you want, I can add the ability to pass command-line arguments to E.g. ideally, you could do something like: from dvr_scan.cli import run_dvr_scan
run_dvr_scan(['-i', 'video.mp4', '-so']) # Returns 0 on success, error code otherwise. Lastly, you can also consider just using Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Hi,
how do I invoke DVR_SCAN from within a python module ? I mean not via CLI but directly by importing it as a module, passing config parameters and filename from within another python script?
regards,
Sundeep
Beta Was this translation helpful? Give feedback.
All reactions