Wirelessly streaming a video from a Raspberry to a remote laptop
Why Stack Overflow recommends it
Stack Overflow users link it as the reference setup for piping raspivid output over netcat to a PC and then processing the stream with OpenCV and Python.
Recommended by 2 people across 2 different months, 2016 to 2020.
What it is
A short 2014 demo comparing three ways to stream live camera video from a Raspberry Pi to a laptop over a wireless ad hoc network, with latency as the main measure. The presenter tests GStreamer, VLC and a netcat-based pipeline, and notes the results depend heavily on software versions and test conditions.
What people said
Recommends Richard Ludvigh · 2016-02 · Stack Overflow · on “OpenCV Python, reading video from named pipe”
I am trying to achieve results as shown on the video (Method 3 using netcat) [this video] The point is to stream video from raspberry pi to ubuntu PC and process it using openCV and python. I use command raspivid -vf -n -w 640 -h 480 -o - -t 0 -b 2000000 | nc 192.168.0.20 5777 to stream the video to my PC and then on the PC I created name pipe 'fifo' and redirected the output nc -l -p 5777 -v > fifo then i am trying to read the pipe and display the result in the python script import cv2 import sys video_capture = cv2.VideoCapture(r'fifo') video_capture.set(cv2.CAP_PROP_FRAME_WIDTH, 640); video_capture.set(cv2.CAP_PROP_FRAME_HEIGHT, 480); while True: # Capture frame-by-frame ret, frame = video_cap
Recommends Mohinish Chatterjee · 2017-04 · Stack Overflow · on “OpenCV Python, reading video from named pipe”
Well we were trying to achieve the results as shown in the video (Method 3) [this video] as mentioned by @Richard . Every thing remains same as explained in the video. I just wanted to help with the python script for reading from named pipe, which was not shown in the video.
Cites user2355051 · 2018-02 · Stack Overflow · on “Raspberry Pi 3 Python and OpenCV Face Recognition from Network Camera Stream”
I'm attempting to stream video over a WiFi network using a raspberry pi model 3 and the camera module but have come across some inconsistencies from other examples I have found online. I'm attempting to achieve the results of the 3rd test performed in this video: [this video] I can see the data being streamed over the network and into the fifo264 file that is created, I also have a functioning python script that operates for a few minutes before the video feed can no longer be processed. The video that is displayed on the OS X machine eventually crashes. I'm not sure if my problem exists within how I'm generating and sending the video (From the Raspberry Pi side), or with how I'm consuming the vi
Cites BlueNut · 2020-02 · Stack Overflow · on “OpenCV Python, reading video from named-pipe”
I am trying to achieve results as shown on the video (Method 3 using netcat) [this video] It is to stream video from raspberry pi to PC and process it using openCV and python. I use command raspivid -vf -n -w 640 -h 480 -o - -t 0 -b 2000000 | nc 192.168.1.137 8000 to stream the video to my PC and then on the PC I created name pipe 'fifo' and redirected the output nc -l -p 8000 -v > fifo then i am trying to read the pipe and display the result in the python script import cv2 import subprocess as sp import numpy FFMPEG_BIN = "ffmpeg.exe" command = [ FFMPEG_BIN, '-i', 'fifo', # fifo is the named pipe '-pix_fmt', 'bgr24', # opencv requires bgr24 pixel format. '-vcodec', 'rawvideo', '-an','-sn', # we