GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - CT83/SmoothStream: Webcam, PiCamera streaming over the network with Python made easy.

BranchesTags
Open more actions menu

Latest commit

 

History

35 Commits
35 Commits

Folders and files

NameName
Last commit message
Last commit date
camera
camera
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
StreamViewer.py
StreamViewer.py
 
 
Streamer.py
Streamer.py
 
 
constants.py
constants.py
 
 
requirements.txt
requirements.txt
 
 
test_local_streaming.py
test_local_streaming.py
 
 
utils.py
utils.py
 
 

Repository files navigation

SmoothStream Build Status

Webcam and PiCamera Streaming over the Network with Python

Getting Started

SmoothStream is a Python Application which makes streaming video from webcams over the network a breeze.

Streaming images from your Webcam over the network should be easy, right?

Nope. After pulling my hair out, searching on the internet for weeks, scavenging through old forum posts and digging through old StackOverflow questions, I came up empty-handed. (Most of the code examples were outdated and worked only in Python 2) Until I stumbled upon this StackOverflow Question.

I decided it was 'bout time someone did something about it.

The StreamViewer needs to start listening for incoming stream from the Streamer, once an incoming stream is detected it is displayed on the screen.

SmoothStream currently has a dependency on ZeroMQ and I don't see a way around it.

So, PRs are always welcome.

Prerequisites

  1. Webcam (duh!)

Installing

A step by step series of examples that tell you how to get a development env running

  1. Install all the requirements
pip install -r requirements.txt
  1. Start the viewer, on the server.
python StreamViewer.py
  1. On another machine connected to the same network, start the streamer, and enter the IP of the machine running the StreamViewer.
python Streamer.py -s 192.168.1.X

You will see the video being streamed across the network to your Viewer.

Running the tests (WebCam Needed)

python -m unittest discover .
  1. test_camera.py - Tests if camera can be detected with OpenCV

    python -m unittest camera.test_camera

  2. test_local_streaming.py - Tests Streaming and Viewing silently locally

    python -m unittest test_local_streaming

Alternatives from around the internet which failed to work.

http://answers.opencv.org/question/19055/video-over-the-network/ https://github.com/yushuhuang/webcam https://stackoverflow.com/questions/30988033/sending-live-video-frame-over-network-in-python-opencv https://stackoverflow.com/questions/49084143/opencv-live-stream-video-over-socket-in-python-3 https://stackoverflow.com/questions/43299440/how-to-send-live-video-over-network-in-python https://stackoverflow.com/questions/36265183/how-to-get-video-frame-by-frame-from-stream-using-opencv-and-python https://stackoverflow.com/questions/29099839/opencv-stream-from-a-camera-connected-to-a-remote-machine https://raspberrypi.stackexchange.com/questions/72308/how-to-stream-video-via-socket-using-opencv-and-picamera

Built With

  • OpenCV - a library of programming functions mainly aimed at real-time computer vision.
  • ZeroMQ - a high-performance asynchronous messaging library, aimed at use in distributed or concurrent applications.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

  • Rohan Sawant CT83

License

This project is licensed under the GPL-3.0 License - see the LICENSE.md file for details

About

Webcam, PiCamera streaming over the network with Python made easy.

Topics

opencvopencv-pythonopencv2opencv3opencv3-pythonpicamera-streamingpythonpython-3python-3-6python-projectpython3python36streamstreamingwebcam-capturewebcam-feedwebcam-streamingwebcam-viewerzeromq

Resources

Readme
GPL-3.0 license
Activity

Stars

205 stars

Watchers

4 watching

Forks

68 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.