Lifestohack / pupil-video-backend

Streams Video from another computer through the network to your computer where pupil capture software is running. This helps to perform pupil detection and gaze estimation remotely.
11 stars 4 forks source link

Can't stream from Raspberry pi to another PC where pupil capture is running #7

Open mekepe12 opened 2 years ago

mekepe12 commented 2 years ago

Hello, I have pupil core product with world camera and eye0 camera. I am trying to use pupil core with raspberry pi. Raspberry pi is just for the streaming video over WiFi to another PC where pupil capture is runnig. When I run the main.py on raspberry pi, I get nothing from other PC where pupil capture is running. I could not figured it out. Any idea about this problem will be perfect for me. Thanks

pi@raspberrypi:~/Desktop/pupil-video-backend $ python main.py -d world -i 192.168.1.26 -p 50020 -vs 0
2022-03-19 12:09:38,119 INFO Host:192.168.1.26, Port:50020
2022-03-19 12:09:38,150 INFO Waiting for Pupil remote.
2022-03-19 12:09:38,218 INFO Connection Successful.
2022-03-19 12:09:38,558 INFO Will publish to device:world
2022-03-19 12:09:38,561 INFO Using default camera source:0
2022-03-19 12:09:38,564 INFO Setting video capture parameters. Height:192, Width:192, FPS:90
2022-03-19 12:09:38,565 INFO Starting the stream for device:world.
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (961) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (1824) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module v4l2src0 reported: Internal data stream error.
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (536) startPipeline OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (1085) setProperty OpenCV | GStreamer warning: no pipeline
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (1085) setProperty OpenCV | GStreamer warning: no pipeline
2022-03-19 12:09:42,447 CRITICAL Can't receive frame (stream end?). Exiting ...
2022-03-19 12:09:42,450 INFO Exit due to keyboard or SystemExit interrupt
2022-03-19 12:09:42,451 INFO Stopping the stream for device: world.
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (501) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
2022-03-19 12:09:42,452 INFO Total Published frames: 1, FPS:0.
evyevyevy commented 2 years ago

Hi! I also met this problem, have you solved it ?

evyevyevy commented 2 years ago

Hello, I have pupil core product with world camera and eye0 camera. I am trying to use pupil core with raspberry pi. Raspberry pi is just for the streaming video over WiFi to another PC where pupil capture is runnig. When I run the main.py on raspberry pi, I get nothing from other PC where pupil capture is running. I could not figured it out. Any idea about this problem will be perfect for me. Thanks

pi@raspberrypi:~/Desktop/pupil-video-backend $ python main.py -d world -i 192.168.1.26 -p 50020 -vs 0
2022-03-19 12:09:38,119 INFO Host:192.168.1.26, Port:50020
2022-03-19 12:09:38,150 INFO Waiting for Pupil remote.
2022-03-19 12:09:38,218 INFO Connection Successful.
2022-03-19 12:09:38,558 INFO Will publish to device:world
2022-03-19 12:09:38,561 INFO Using default camera source:0
2022-03-19 12:09:38,564 INFO Setting video capture parameters. Height:192, Width:192, FPS:90
2022-03-19 12:09:38,565 INFO Starting the stream for device:world.
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (961) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (1824) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module v4l2src0 reported: Internal data stream error.
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (536) startPipeline OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (1085) setProperty OpenCV | GStreamer warning: no pipeline
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (1085) setProperty OpenCV | GStreamer warning: no pipeline
2022-03-19 12:09:42,447 CRITICAL Can't receive frame (stream end?). Exiting ...
2022-03-19 12:09:42,450 INFO Exit due to keyboard or SystemExit interrupt
2022-03-19 12:09:42,451 INFO Stopping the stream for device: world.
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (501) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
2022-03-19 12:09:42,452 INFO Total Published frames: 1, FPS:0.

Hi! I have resolved it ! Are you using debian 11 bullseye? I found that this version of Raspberry Pi does not support libcamera, you can downgrade the system. After I used buster, everything became normal.