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

Uploaded Python 3

File details

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

File metadata

  • Download URL: stream_web_provider-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 08d8662a61624c9c1ae482a689f214e5ccbaa2e27e240e4cabd485dca0ee9ef7
MD5 e49bfd0aa666b7ebce802cb85565e98a
BLAKE2b-256 f7744a2208a75f1d82b526f1a75fcae71b87ee67c22a2cb6699dfce1c589da99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stream_web_provider-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 904b1504d5471e6e3c04cea79e8ee458bafecbb0f2e25f712b3fffa44e3523ab
MD5 2d84a312e947547916180661f53faa8e
BLAKE2b-256 4452ba6fdeb32859497e1963634097c474cb6995a90b3192945359fffcb62893

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