Git Product home page Git Product logo

Comments (2)

Breakthrough avatar Breakthrough commented on September 9, 2024 1

I'm not sure if using stdin works with OpenCV, but this should be possible using PyAV, so is theoretically possible. However, I do think OpenCV supports gstreamer inputs.

That being said, modern versions of OpenCV should work with RSTP streams. I think the only thing preventing this right now might be how the CLI opens videos:
https://github.com/Breakthrough/DVR-Scan/blob/master/dvr_scan/video_joiner.py#L131

It should definitely be possible to do something like:

dvr-scan -i rstp://localhost:8554/my-camera

However, using -m ffmpeg will not work, as ffmpeg is invoked a subprocess. This would only be supported using the opencv video output method. Ideally PyAV could solve that as well however, but that's something the project might need a few extra hands on to tackle.

Thanks for posting this, I'll see if this can be pulled into the next release.

from dvr-scan.

dkbarn avatar dkbarn commented on September 9, 2024

This is great, thanks @Breakthrough ! If dvr-scan had the ability to take a network stream such as rtsp:// as direct input, I think that would be sufficient, and reading from stdin would be less important.

from dvr-scan.

Related Issues (20)

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.