Metadata-Version: 2.1
Name: mlagents-video-streamer
Version: 1.0
Summary: Capture a video using the virtual screen in Google Colab & broadcast the live stream to youtube/twitch.
Home-page: https://github.com/Dhyeythumar/video-streamer
Author: Dhyey Thumar
Author-email: dhyeythumar@gmail.com
License: UNKNOWN
Description: # Video Streamer
        
        <h4 align="center">
            Live stream the training process of ML-Agents (toolkit for Reinforcement Learning with Unity Engine) using the virtual screen from Google Colab to Twitch.
        </h4>
        
        ---
        
        <div align="center">
            <p>Try Google Colab Notebook</p>
            <p>
                <a href="https://colab.research.google.com/github/dhyeythumar/mlagents-video-streamer/blob/v1.0/Streaming ML-Agents from Colab -v1.0.ipynb">
                  <img alt="colab link" src="https://colab.research.google.com/assets/colab-badge.svg" />
                </a>
            </p>
        </div>
        
        ---
        
        ## Installation
        
        ```bash
        !pip install mlagents-video-streamer
        ```
        
        -   Configure the video streamer.
        
            ```python
            import videostreamer
            videostreamer.config()
            ```
        
        -   Activate the twitch streamer.
        
            ```python
            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:
        
            ```python
            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)
            ```
        
Platform: UNKNOWN
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries
Description-Content-Type: text/markdown
