Skip to content

A simple Server-Client model that uses TCP Connection for streaming Live Grayscale Video from one device's camera to another device's screen on the same LAN (Local Area Network)

Notifications You must be signed in to change notification settings

Gill-Singh-A/LAN-Camera-Streaming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LAN Camera Streaming

A simple Server-Client model that uses TCP Connection for streaming Live Video from one device's camera to another device's screen on the same LAN (Local Area Network).

Requirements

Language Used = Python3
Modules/Packages used:

  • socket
  • cv2
  • pickle
  • sys
  • datetime
  • time
  • colorama

Install the dependencies:

pip install -r requirements.txt

Input

server.py

  • '-H', "--host": IPv4 Address on which to start the Server (Default=0.0.0.0)
  • '-p', "--port": Port on which to start the Server (Default=2626)
  • '-b', "--buffer-size": Buffer Size for Receiving Data from the Clients (Default=1024)
  • '-t', "--timeout": Timeout for accepting connection from Clients (Default=1)

client.py

  • '-H', "--host": IPv4 Address of the Server
  • '-p', "--port": Port of the Server
  • '-b', "--buffer_size": Buffer Size for Receiving Data from the Server (Default=1024)

For example:

python server.py --host 0.0.0.0 --port 2626

Here 0.0.0.0 is the address on which to start the server and this specific address means that we can accept connections from any device on the LAN (Local Area Network). And 2626 is the port.
For client to connect to this server, the client should type the LAN IP Address of the Device that runs "server.py".

Output

After successful connection, the Device that runs "server.py" can see the Live Grayscale Video captured by the camera of the device that runs "client.py".

About

A simple Server-Client model that uses TCP Connection for streaming Live Grayscale Video from one device's camera to another device's screen on the same LAN (Local Area Network)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages