Skip to main content

Flask based web video stream provider

Project description

stream-web-provider

General

This is a little useful tool to provide access to the camera of a PC to remote users via a web application.

The tool runs a Flask webserver on the PC. When a user connects to the web application and requests the camera stream, a connection the connected USB camera is established and the live video is streamed to the browser of the remote user. As soon as the user stops the stream or the selected/default stream duration is expired, the stream is stopped and the USB camera released. After the stream other applications can access the camera.

To run the tool, please install the Python package and run the following command:

stream-web-provider

For information about available configuration arguments please run:

stream-web-provider --help.

Firewall Rules

Please be aware that you have to add the port of the web application to your system firewall exceptions. Otherwise, it's not possible to access the application from other PCs.

Open the firewall port:

sudo ufw allow <port>

System Service

For permanent execution of the application (in the background), please install the provided system service (stream_web_provider.service). Please add this file inside the /etc/systemd/system/ directory of your system. Inside this file you have to update the dummy username with your username.

After this steps you have to enable the servie:

sudo systemctl enable stream_web_provider.service

Now the service can be started:

sudo systemctl restart stream_web_provider.service

Please check if the service runs properly:

sudo systemctl status stream_web_provider.service

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stream_web_provider-0.1.1.tar.gz (33.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stream_web_provider-0.1.1-py3-none-any.whl (33.8 kB view details)

Uploaded Python 3

File details

Details for the file stream_web_provider-0.1.1.tar.gz.

File metadata

  • Download URL: stream_web_provider-0.1.1.tar.gz
  • Upload date:
  • Size: 33.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for stream_web_provider-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7d28b9efce681974746fee7e26a6ad858ea6df72bbf37b0031d7a07dc6c26e85
MD5 d406abf453a8b9767e036cd6cf5c4b3f
BLAKE2b-256 4e17ac44c4770a439404b6892a94e4653ca43c31defeca457e7c2c1b1af6716d

See more details on using hashes here.

File details

Details for the file stream_web_provider-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for stream_web_provider-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 307995138ebf821b99878424fb993b3c1ae4b46935df93544e5f71ea680ce171
MD5 620353333ccf4c5c5fc68988f66389e4
BLAKE2b-256 1efe8e83927e1186336985d09e580c249ff12826fd8eb0e00b0409d91f749d3c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page