prabhakar-sivanesan / OpenCV-rtsp-server

RTSP streaming using GStreamer
177 stars 62 forks source link

Stream from a Python PIPE output #5

Open wes1993 opened 2 years ago

wes1993 commented 2 years ago

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

prabhakar-sivanesan commented 2 years ago

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 ?

wes1993 commented 2 years ago

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