-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/happyleavesaoc/gstreamer-…
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,37 @@ | ||
# gstreamer-player | ||
|
||
Audio player based on [gstreamer](https://github.com/GStreamer/gst-python). | ||
|
||
## Install | ||
|
||
### Prerequisites | ||
|
||
Debian/Ubuntu/Rasbian: | ||
```bash | ||
sudo apt-get install python-gst-1.0 \ | ||
gir1.2-gstreamer-1.0 gir1.2-gst-plugins-base-1.0 \ | ||
gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly \ | ||
gstreamer1.0-tools | ||
``` | ||
|
||
Redhat/Centos/Fedora: | ||
```bash | ||
sudo yum install -y python-gstreamer1 gstreamer1-plugins-good \ | ||
gstreamer1-plugins-ugly | ||
``` | ||
|
||
If you're using a Python virtual environment, symlink the system Python's `gst` into your env's `site_packages`. | ||
|
||
### Python module | ||
|
||
`pip install gstreamer-player` | ||
|
||
## Usage | ||
|
||
```python | ||
from gsp import GstreamerPlayer | ||
|
||
player = GstreamerPlayer(None) | ||
|
||
player.queue("/path/to/audio.mp3") | ||
``` |