Capture a video using the virtual screen in Google Colab & broadcast the live stream to youtube/twitch.
Project description
Video Streamer
Live stream the training process of ML-Agents (toolkit for Reinforcement Learning with Unity Engine) using the virtual screen from Google Colab to Twitch.
Installation
!pip install mlagents-video-streamer
-
Configure the video streamer.
import videostreamer videostreamer.config()
-
Activate the twitch streamer.
xorg, ffmpeg = videostreamer.twitchStreamer('<your-twitch-secret-key>')
-
To capture the running process, use the subprocess library.
The below example shows how to capture the training process in the case of ML-Agents:
import subprocess from random import randrange train = subprocess.run(["mlagents-learn", "config.yaml", "--run-id=train-1", "--env=3DBall_example/3DBall.x86_64", "--base-port=" + str(randrange(9000, 9999))], cwd="/content/", stdout=subprocess.PIPE)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for mlagents-video-streamer-1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e751ebb857cddeec74401b4f99f325c9547a8b58e7874cde8487fb902289e21 |
|
MD5 | 5fce570808d4672015e6d9dad7ee9487 |
|
BLAKE2b-256 | e6c39d73dbd58ca4d7093c69078e1bb2eed0def1cc716c094b79e1d0ed4f4be8 |
Close
Hashes for mlagents_video_streamer-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c09fa839b347d507806121e7b75595fd6987df72fa7a229a2f8f8e7b8733c8f5 |
|
MD5 | bc82145c4b514f0292a7aa9869e52a51 |
|
BLAKE2b-256 | b55f23d43b137fe73349a59505f7e8f27c454ee220832d838e429530497d9db7 |