OpenCV-rtsp-server icon indicating copy to clipboard operation
OpenCV-rtsp-server copied to clipboard

Stream from a Python PIPE output

Open wes1993 opened this issue 2 years ago • 2 comments

Hello, i'm iterested in your project but i'm finding a way to stream the output from one python to your server. For now i can see the video with FFMPEG using this command: python streamcamera.py | ffplay -i pipe:

If i run the script with this command python streamcamera.py i have the video feed output.

Thanks a lot Stefano

wes1993 avatar Mar 09 '22 16:03 wes1993

Hi Stefano, Could you be more specific, like what are you trying to achieve and what is the issues you're facing while using this project ?

prabhakar-sivanesan avatar Mar 11 '22 22:03 prabhakar-sivanesan

Hello @prabhakar-sivanesan Thanks a lot for your reply and sorry for my late reply, very very busy days... :-( I have this Python Script that i must use to connect with my cameras: https://gist.githubusercontent.com/maxious/c8915a436b532ab09e61bf937295a5d2/raw/8de5512824e6198aa7f765e8517a170855cddec3/stream.socket.py

When i execute this script i can see the video output with this command: python streamcamera.py | ffplay -i pipe:

Now my question is, there is a way to stream the script output with your rtsp server?

  1. Run the Python Script: python streamcamera.py
  2. Pass the output of the scritp to your server
  3. connect with VLC to your server to see the video

Thanks a lot Stefano

wes1993 avatar Mar 15 '22 10:03 wes1993