Several questions regarding the Python bindings for GStreamer (Asyncio compat, mixing of streams, reading directly from BytesIO)

Mathieu Duponchelle mathieu at centricular.com
Mon Aug 27 19:01:39 UTC 2018


On 8/24/18 7:37 PM, Hadrien Titeux wrote:
> - The websocket receives sounds asynchronously with the asyncio module. I've seen that Gbulb permits the use of the Gtk event loop with asyncio. I'll be thus receiving sound bites that i'll have to play right at the moment I receive them through my websocket client, sometimes overlapping each other when they're being played. This requires asynchronously mixing several audio files. Do you think this is feasible with the gst bindings?

You can run a gstreamer pipeline without involving GMainLoop, by monitoring the bus
with GstBus.getpollfd().

Here [1] is an example pull request in a webrtcbin example, the
caveat being that this will only work with master currently, the PR will probably be merged
once the next release is out

[1]: https://github.com/centricular/gstwebrtc-demos/pull/34/files

-- 
Mathieu Duponchelle ยท https://www.centricular.com


More information about the gstreamer-devel mailing list