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.3.tar.gz (35.0 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.3-py3-none-any.whl (35.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stream_web_provider-0.1.3.tar.gz
  • Upload date:
  • Size: 35.0 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.3.tar.gz
Algorithm Hash digest
SHA256 98daea58987aa395599eae30150f7fc3ce1688257a42859b24369ec2a69c4e8e
MD5 bc5f293534cb97f24301613330844bc7
BLAKE2b-256 8baa0220120233da3da343e46d872374c4c9136dbf596956a35f8d668de624d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stream_web_provider-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f04792b367fea2460795e735d82b9f1492ddaaf6603e20a2a744edeaff7f3ba4
MD5 b4af7935a514e87f33ba21a8d2b1909f
BLAKE2b-256 ea832d60077d295666384ba6288a105d3c53acd6d5c3fba97788d869b2c98b1d

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