Easily build beautiful video experiences into your Python app.
# Via pip pip install git+https://github.com/muxinc/mux-python.git # Via source git checkout https://github.com/muxinc/mux-python.git cd mux-python python setup.py install --user
To start, you'll need a Mux access token. Once you've got that locally, you're off to the races!
import os import mux_python from mux_python.rest import ApiException # Authentication Setup configuration = mux_python.Configuration() configuration.username = os.environ['MUX_TOKEN_ID'] configuration.password = os.environ['MUX_TOKEN_SECRET'] # API Client Initialization assets_api = mux_python.AssetsApi(mux_python.ApiClient(configuration)) # List Assets print("Listing Assets: \n") try: list_assets_response = assets_api.list_assets() for asset in list_assets_response.data: print('Asset ID: ' + asset.id) print('Status: ' + asset.status) print('Duration: ' + str(asset.duration) + "\n") except ApiException as e: print("Exception when calling AssetsApi->list_assets: %s\n" % e)
Ingest using almost any codec, including H.264, H.265, VP9, and Apple ProRes. Get multi-bitrate adaptive streaming with HLS delivery.
Adapt to new devices and codecs with no extra work. We’ll automatically update codecs and renditions over the life of a video.
Use signed playback policies by easily creating signed URL tokens for your Mux assets when you want to control access to a piece of content.
Mux is made up of an advanced transcoding engine, streaming origin, and expertly configured CDNs which all work together to provide the best video experience for your users with the least amount of headache for you.
Get the fastest video publishing possible. Videos are encoded while the first viewers watch them so your users can publish instantly.
The right resolutions and bitrates are dynamically created for each video based on data, giving your users the best possible experience based on all their unique viewing criteria.
Handle thousands of concurrent live streamers and millions of viewers without worrying about spinning up additional servers.
RTMP for ingest and HLS for delivery so your application can stream from a mobile app, broadcast software, or hardware encoder and broadcast to any device.
Transition seamlessly from live to VoD with recordings available immediately after the event with no waiting for additional processing.Learn more