dusty-nv / jetson-inference

Hello AI World guide to deploying deep-learning inference networks and deep vision primitives with TensorRT and NVIDIA Jetson.
https://developer.nvidia.com/embedded/twodaystoademo
MIT License
7.84k stars 2.98k forks source link

Does video-viewer support multiple cameras? #1735

Open sina-sixwheel opened 1 year ago

sina-sixwheel commented 1 year ago

First of all thank you for the amazing repository, I have a usecase where I need to stream from multiple cameras, and have the consumers pick up which streams they want to view by negotiating with the signaling server. video-viewer [input] webrtc://@:8554/output has worked so far with one camera. How do I add support for multiple cameras with video-viewer, is that possible ?

dusty-nv commented 1 year ago

Hi @sina-sixwheel, the video-viewer sample only works with one videoSource/videoOutput, but yes in theory you could make your own multi-camera version of video viewer that exposes different WebRTC streams like webrtc://@:8554/output1 webrtc://@:8554/output2 ect

At one point, I did show this can work here: https://github.com/dusty-nv/jetson-inference/blob/master/docs/webrtc-dash.md (note how one client is subscribed to two different camera streams)