{"id":17227142,"url":"https://github.com/hadware/gstreamer-python-player","last_synced_at":"2025-09-19T06:54:09.467Z","repository":{"id":25124431,"uuid":"28546199","full_name":"hadware/gstreamer-python-player","owner":"hadware","description":"Minimalist examples of audio players in python, using the new Gstreamer 1.0 API","archived":false,"fork":false,"pushed_at":"2016-10-07T10:48:13.000Z","size":8,"stargazers_count":31,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-10T05:22:23.314Z","etag":null,"topics":["audio","example","gst","gstreamer","gtk3","pad","player","python3","slide"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hadware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-27T20:58:14.000Z","updated_at":"2024-08-13T22:53:04.000Z","dependencies_parsed_at":"2022-07-24T04:16:21.109Z","dependency_job_id":null,"html_url":"https://github.com/hadware/gstreamer-python-player","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hadware/gstreamer-python-player","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadware%2Fgstreamer-python-player","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadware%2Fgstreamer-python-player/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadware%2Fgstreamer-python-player/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadware%2Fgstreamer-python-player/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hadware","download_url":"https://codeload.github.com/hadware/gstreamer-python-player/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadware%2Fgstreamer-python-player/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275894468,"owners_count":25547859,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-19T02:00:09.700Z","response_time":108,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio","example","gst","gstreamer","gtk3","pad","player","python3","slide"],"created_at":"2024-10-15T04:18:14.826Z","updated_at":"2025-09-19T06:54:09.448Z","avatar_url":"https://github.com/hadware.png","language":"Python","readme":"gstreamer-python-player\n=======================\n\nVarious examples of minimalist music players in python, using the new Gstreamer 1.0 API. \nThe point is to cover by example the following implementations using Gstreamer 1.0 and the GTK+3 API:\n* Pipeline usage\n* Use a full \"read -\u003e decode -\u003e output to sink\" pipeline\n* Simply play an audio file using gstreamer and python\n* Use a slider to display the stream's current playback position, and change it\n\n## player.py\n\nA simple python conversion of the following bash gstreamer command:\n```bash\n    gst-launch-1.0 filesrc location=\"/path/to/your/file.mp3\" ! decodebin ! alsasink\n```\n\nIt doesn't contain any graphical elements (no Gtk window or else). There is a small catch here: the decodebin doesn't have a source pad before startup, thus, we cannot connect it to the sink before it's been fed with a stream. We have to wait for it to create its output pad, signal it, and then handler the signal event to connect the pad to the sink's pad\n\n## player_minimal.py \n\nInstead of a \"full\" pipeline, here it's just an example of some adapted code from [this page](http://codeboje.de/playing-mp3-stream-python/ ). \n\nIt uses the \"playbin\" element which condenses all the elements from the player.py example into one automagic element.\n\n## seek.py \n\nMainly a gst1.0 port and simplification of [this code](http://codeboje.de/playing-mp3-stream-python/).\n\nThe simplest possible example of a sound player: a \"Play\" button, a \"Pause\" button, and a slider to control the playback position. It makes usage of controls signals to start at stop the element's playback state, and uses a Glib timer to check on the current position of the stream. When the slider is manually moved, it also makes use of the seek_simple() function to seek in the stream.\n\nYou should probably use the [official doc](http://lazka.github.io/pgi-docs/index.html) as well as the [gstreamer1.0 porting tutorial](https://wiki.ubuntu.com/Novacut/GStreamer1.0) to start using the gstreamer1.0 API while feeding on gst0.10-based examples.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhadware%2Fgstreamer-python-player","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhadware%2Fgstreamer-python-player","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhadware%2Fgstreamer-python-player/lists"}