sample DeepStream app written in Genie, a Vala dialect
736
Is a simple DeepStream test app to perform live redaction and social distancing an an arbitrary number of sources. NValhalla is written in Genie, a Vala dialect.
Usage is nvalhalla --uri rtsp://uri-goes-here/ --uri file://local/file/here.mp4 ... where each --uri supplied is a valid uri accepted by uridecodebin. Full help, including --gst options are available with --help
Since the v0.1.6 release, social distancing mode can be enabled by adding --kenneth as a flag. Guaranteed to blow the Covid away. Distancing mode uses an int8 quantized model packaged with DeepStream where supported by the hardware, so performance should be much better than the redaction mode.
Example with youtube sources (youtube-dl needs to be installed on the host with pip3 install youtube-dl or similar):
docker run --gpus all -p 8554:8554 --rm mdegans/nvalhalla --uri $(youtube-dl -f best -g https://www.youtube.com/watch?v=awdX61DPWf4) --uri $(youtube-dl -f best -g https://www.youtube.com/watch?v=FPs_lU01KoI) --uri $(youtube-dl -f best -g https://www.youtube.com/watch?v=SnMBYMOTwEs) --uri $(youtube-dl -f best -g https://www.youtube.com/watch?v=jYusNNldesc)
RTSP video will be available on port 8554 at path /nvalhalla (eg: rtsp://hostname:8446/nvalhalla
Notes:
You can redact (or do social distancing) on multiple youtube streams like this, provided you have youtube-dl installed (pip3 install youtube-dl) and enough bandwith:
nvalhalla --uri $(youtube-dl -f best -g https://www.youtube.com/watch?v=awdX61DPWf4) --uri $(youtube-dl -f best -g https://www.youtube.com/watch?v=FPs_lU01KoI) --uri $(youtube-dl -f best -g https://www.youtube.com/watch?v=SnMBYMOTwEs) --uri $(youtube-dl -f best -g https://www.youtube.com/watch?v=jYusNNldesc)

Local video streams can also be used like this:
nvalhalla --uri file:///home/username/Videos/test.mp4
RTSP streams are also supported:
nvalhalla --uri rtsp://hostname:port/path
Basically, any uri supported by uridecodebin will probably work. If you find a combination that doesn't, please report it.
Content type
Image
Digest
Size
2 GB
Last updated
over 6 years ago
docker pull mdegans/nvalhalla:latest-tegra