Forum Discussion
How can I record a video that I am watching on my computer?
For a how to record a video that I am watching on my computer, the silent output from pyscreenrecorder makes it suitable. The project is built around a high-performance C++ recording engine that interfaces with Python . This technical design makes it a robust, code-driven recording tool, ideal if you prefer a complex, free method over third-party software.
To use it, you can launch the application directly as a module from the command line after installation:
bash
python -m screen_recorder
When the application launches, it presents a main window with controls and includes keyboard shortcuts for easy operation:
- F9: Start or stop recording.
- Ctrl+P: Pause or resume recording.
- Ctrl+Q: Quit the application.
- Esc: Cancel region selection.
Its ability to capture system audio and use GPU hardware encoding makes it a powerful alternative for this task compared to other Python libraries.
How to record a video that I am watching on my computer:
- Launch the application to see the main window with controls.
- Select a capture source—choose a display or draw a custom region using the overlay selector .
- Configure audio—in the settings panel, enable your microphone and/or system audio capture (the WASAPI loopback on Windows) .
- Start recording—press F9 or click the Record button .
- Stop recording—press F9 again; the MP4 file is saved to your output directory .