donkeystudio / depthai-rtsp-http

DepthAI camera's video and still image outputs to a RTSP H264 video stream and JPEG HTTP server.
4 stars 3 forks source link

pipe:: Invalid data found when processing input #1

Open nikulnayi opened 8 months ago

nikulnayi commented 8 months ago

Having issue while running script. image

image

donkeystudio commented 8 months ago

Hi, Thanks for reaching out. There are 2 issues you encountered:

  1. TCP connection error: Can you verify if your RSTP server is setup and running? The program will capture video stream and publish it to a RSTP server (which is not part of the program). I recommend rstp-simple-server which is easy to setup.
  2. Can you confirm the udev rule is set properly? Refer to https://docs.luxonis.com/en/latest/pages/troubleshooting/ for more information. Also, make sure you are using USB-3 cable instead of USB-2, and the port is USB-3 as well.
nikulnayi commented 8 months ago

Thank you for getting back @donkeystudio really appreciate.

It did run successfully after installing. https://github.com/bluenviron/mediamtx

Now, it has different problem though.

sometimes it causes the following error.

image

and I was wandering. How can I stream two or more devices together on single host.

Thank you.

donkeystudio commented 8 months ago

Hi, sorry I was busy last week. To stream 2 or more devices together, I think you can run multiple main.py concurrently? There are --rtsp_host and --rtsp_port arguments you can use to publish to different streams.

Regarding X_LINK_DEVICE_NOT_FOUND, it happened to me previously but it was because I used a low quality USB-3 cable.. You can try to use a different USB-3 cable and check if it helps.

nikulnayi commented 8 months ago

@donkeystudio Thank you. I will try running multiple main.py will let you know how it goes.

Regarding X_LINK_DEVICE_NOT_FOUND, I have PoE devices, so they are connected through LAN. And I have observe that it stream when I select OAK D Pro and when select OAK-1 given error pops up.

Further, Streaming has artifacts, It flickers sometime. however its way better then luxonis gen2Rtsp experiment.