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.5.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.5-py3-none-any.whl (35.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stream_web_provider-0.1.5.tar.gz
  • Upload date:
  • Size: 35.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.10.11 Windows/10

File hashes

Hashes for stream_web_provider-0.1.5.tar.gz
Algorithm Hash digest
SHA256 00ebecf2b0150a3a9f78ec08de4995f5a6ae3c46781546af297236a91290864f
MD5 27ed0bc81c8a8aa2eb4824a05962bb5f
BLAKE2b-256 1b6cf5d36f49df64a6b96a9feffc8d241c379bdae51b63866dcd1880bbab09f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stream_web_provider-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f14837545aae63af807962f55a4073c1452611a6e0931e036b3ba56a51022a6f
MD5 8e0929a5f26deac6aca669617e4dd01a
BLAKE2b-256 c19fea16d535516c68ee32c9d900f1558b655aaba8dea1a63fe8f99f2a4e9b7d

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