Skip to main content

Capture audio and video from the desktop and stream it to the local network using avconv and vlc.

Python Script

You can just run the python module and - if you install this package - you could also start the provided script from the console or your desktop shell.

Usage

Start the package like this python -m desktopstreamer [options]. Or use the startup script like this:

stream_desktop [-n|--gui] [-a|-A] [capture options] [stream options]
stream_desktop --version
stream_desktop --help

To use it in your desktop shell, a .desktop file is provided.

Install

The easiest way to install this package is trough pip:

pip install --user desktopstreamer

Or download the latest source (or get it trough git clone ...) and install it like this (from the sources root directory):

python setup.py install --user

Dependencies

You don’t need to install any Python dependencies.

Requirements

avconv and vlc are required though. Install them like this:

  • Debian / Ubuntu: sudo apt-get install libav-tools vlc

Setup

You can use the provided .desktop file and icon from the data/ directory to start the script from your desktop shell.

Settings

You can use a file to store the settings in a JSON dictionary.

The default location is ~/.config/DesktopStreamer/settings.json. The supported keys are the capture and stream long-options (with _ instead of -).

To store settings in this file, use the --save option. If you use it, the current settings are stored and previous settings are overwritten. You can create and edit it manually too.

Here’s some example content:

{
  "port": 420,
  "res_out": "1280x720"
}

The settings from this file are applied, if you use the --load option.

Shell Script

You can source the data/stream_desktop.sh in your .bash_aliases or similar to get a quick stream_desktop command. The python script has more options though.

Release files for DesktopStreamer 0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for DesktopStreamer 0.7
File Size Uploaded
DesktopStreamer-0.7.tar.gz 28.2 kB Details

Release files / DesktopStreamer-0.7.tar.gz

Download URL DesktopStreamer-0.7.tar.gz
Size 28.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ea3767543ae9c9671b2cc23d30f26677241cef72664047fec93e518d24766cdc
BLAKE2b-256 checksum
How to use checksums
f947e7335cc9b8bb03313d0fbea72122f3b784c3d275ad70a7cc50d26dbbc4d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.7 This release

1 release file

0.6.1

1 release file

0.6

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page