Skip to main content

Flask based web video stream provider

Project description

stream-web-provider

Links

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 to 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 placeholder username with your username.

After these steps, you have to enable the service:

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.2.tar.gz (33.9 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.2-py3-none-any.whl (33.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stream_web_provider-0.1.2.tar.gz
  • Upload date:
  • Size: 33.9 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.2.tar.gz
Algorithm Hash digest
SHA256 5aa3dad1725837f9e07e74a96eb1d84e0f9850d7750b78864b9902d80435e5f2
MD5 5ec0f3197c2d1166a2adac1c99037ded
BLAKE2b-256 07d0f3f350a874f6d7508ac08347fa1f496ea11b72cde2d49d033f0f1defe997

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stream_web_provider-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 de46b858761dd7f91d9675cac0e17c7b5913e9cadf5b2bc2a926bd085931a736
MD5 61285c5bb1373c8304dffd3599efa85c
BLAKE2b-256 0121c0e22dc320b0d43d38310df16dc123b524bbc2b2f25ba45fbd8bc22c6aef

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