gradio icon indicating copy to clipboard operation
gradio copied to clipboard

Video with IP Camera URL source

Open mistycheney opened this issue 2 years ago • 1 comments

  • [x] I have searched to see if a similar issue already exists.

Is your feature request related to a problem? Please describe.

I have an IP camera whose stream can be accessed from http://xxx.xx.xx.xxx/mjpg/video.mjpg. I try to use Gradio to take this stream rather than feed from webcam. From the doc it seems "value" argument is where I specify the URL. I tried gr.inputs.Video, but it does not have the "value" argument. I then tried gr.components.Video, but if I set value='http://xxx.xx.xx.xxx/mjpg/video.mjpg', it complains FileNotFoundError: [Errno 2] No such file or directory: 'http://xxx.xx.xxx.xx/mjpg/video.mjpg'

Describe the solution you'd like

How can I make gradio use the IP camera stream?

mistycheney avatar Aug 03 '22 15:08 mistycheney

Hi @mistycheney, this is a good question. I haven't worked with IP cameras before. Can you provide a valid URL that we can use for testing?

abidlabs avatar Aug 04 '22 20:08 abidlabs

Going to close as we cannot investigate this without more details. Feel free to reopen with more info @mistycheney!

abidlabs avatar Oct 04 '22 15:10 abidlabs