This script automates the process of recording Discord call popouts using OBS (Open Broadcaster Software) and Selenium with Python.
-
Python: Ensure you have Python installed on your system. If not, download and install it from Python's official website.
-
OBS: Ensure OBS is installed and set up on your system. Download it from OBS's official website.
-
Python Libraries: You'll need some Python libraries. Install them using pip:
pip install obsws-python selenium
-
Webdriver: This script uses Selenium with Chrome. Ensure you have the ChromeDriver downloaded and placed in a location in your system's PATH.
cd dir_to_proj
pip install -r requirements.txt
-
Start OBS: Before running the script, ensure OBS is running and set up with the correct port, which is 4444 by default.
-
Run the script: Navigate to the directory containing the script and run:
python main.py
-
The script will open a Chrome window navigating to Discord's login page.
-
Login to Discord: Manually log in to Discord in the opened Chrome window.
-
Start a Call: Begin a call on Discord and open it in a popout window.
-
The script will detect the popout window and start recording the call in OBS.
-
Once the popout window is closed, the recording will stop, and the video will be saved to your default OBS recording location (usually
Videos
folder in your user directory).
%USERPROFILE%\Videos
- The script can detect multiple popouts, meaning after one call is recorded and closed, you can start another call, and the script will continue recording.
- You can close the main Chrome window (the one showing Discord's main interface) without affecting the recording. Only closing the popout will stop the recording.
- If you want to gracefully exit the script, close the browser window. The script will save the recording and exit.
- Ensure that OBS is correctly set up to record the screen or window where the Discord popout will appear.
- The script runs in the background, allowing you to use your computer while recording.
The application will save recorded files in Videos folder in the current users directory.
Aditya Varma is a computer science graduate from the University of Wollongong. He has a keen interest in AI, cybersecurity, systems analysis, and web development.
Always inform participants in a call if you are recording. Recording without consent may be illegal in some jurisdictions.