Boombox is a high-level tool for audio & video streaming based on Membrane Framework. It's built for easy transformations between any popular media formats - containers and streaming protocols alike.
You can also use it as a bridge between Python code and external media, allowing for seamless integration with AI pipelines and other projects that interact with raw media streams directly.
To see examples and demos see the
examples
directory.
- Documentation: https://boombox.readthedocs.io
- Source code: https://github.com/membraneframework/boombox/tree/master/python
The package is available on PyPI and can be downloaded with pip:
pip install boomboxlibBecause of some reliance on native libraries for encoding and decoding, the package is available for the following platforms:
- MacOS on ARM architecture
- Linux on x86 architecture
- Linux on ARM architecture
The following example will read the MP4 file from the provided URL, flip the video and save it to
output.mp4
boombox1 = Boombox(
input="https://raw.githubusercontent.com/membraneframework/static/gh-pages/samples/big-buck-bunny/bun33s.mp4",
output=Array(video=True, audio=True),
)
boombox2 = Boombox(input=Array(video=True, audio=True), output="output.mp4")
for b in boombox1.read():
if isinstance(b, VideoPacket):
b.payload = np.flip(b.payload, axis=0)
boombox2.write(b)
boombox2.close(wait=True)Boombox is created by Software Mansion.
Since 2012 Software Mansion is a software agency with experience in building web and mobile apps as well as complex multimedia solutions. We are Core React Native Contributors and experts in live streaming and broadcasting technologies. We can help you build your next dream product – Hire us.
Copyright 2024, Software Mansion
Licensed under the Apache License, Version 2.0
