πŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more β†’
Socket
Sign inDemoInstall
Socket

pyscreenrecorder

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pyscreenrecorder

A python package for screen recording with customizable resolution, FPS, and mouse tracking.

0.0.3
PyPI
Maintainers
1

PyPI version Python Versions Downloads Downloads

Python Screen Recorder

Python screen recorder also pyscreenrecorder is a powerful Python package for screen recording with an optional mouse cursor overlay.
It allows high-performance screen capturing, custom resolution, and real-time mouse tracking.

✨ Features

  • πŸŽ₯ Record screen with smooth frame rates (30 FPS default).
  • πŸ–± Mouse overlay customization (color, size, thickness).
  • πŸ“Ί Multi-monitor support – Choose which monitor to record.
  • πŸ”„ Set custom resolution (e.g., 1280x720, 1920x1080).
  • ⚑ Optimized performance with mss for fast screen capture.
  • 🎨 Flexible output formats – Supports .mp4, .avi, and .mkv.
  • πŸ” Monitor detection – List available monitors and their specs.

πŸ“¦ Installation

Install pyscreenrecorder using pip:

pip install pyscreenrecorder

Upgrade pyscreenrecorder using pip:

pip install pyscreenrecorder -U

πŸš€ Usage

Basic Screen Recording

from pyscreenrecorder import ScreenRecorder

ScreenRecorder(
    filename="screen_record.mp4",
    duration=10,
    fps=30,
    monitor_number=1,
    mouse=True,
)

πŸ“Ί Listing Available Monitors

from pyscreenrecorder import pyScreenRecorder

monitors = pyScreenRecorder.list_monitors()
print("Available Monitors:", monitors)

Example Output:

[
  { "monitor": 0, "width": 1920, "height": 1080 },
  { "monitor": 1, "width": 2560, "height": 1440 }
]

πŸŽ₯ Recording with Custom Settings

from pyscreenrecorder import ScreenRecorder

ScreenRecorder(
    filename="custom_record.mp4",
    duration=15,
    fps=60,
    monitor_number=2,
    resolution=(1280, 720),  # Set custom resolution
    mouse=True,
    mouse_color=(255, 0, 0),  # Red cursor
    mouse_size=10,
    mouse_thickness=3,
)

πŸ”Ή 60 FPS Recording
πŸ”Ή Custom 1280x720 resolution
πŸ”Ή Red-colored mouse cursor with increased size

πŸ›  Advanced Example

from pyscreenrecorder import pyScreenRecorder

if __name__ == "__main__":
    # Display available monitors
    monitors = pyScreenRecorder.list_monitors()
    print("Available Monitors:", monitors)

    # Start recording with advanced settings
    pyRec = pyScreenRecorder(
        filename="high_quality_record.mp4",
        duration=30,
        fps=60,
        monitor_number=1,
        resolution=(1920, 1080),  # Full HD recording
        mouse=True,
        mouse_color=(0, 255, 0),  # Green cursor
        mouse_size=6,
        mouse_thickness=2,
    )
    pyRec.screenRecorder()

βš™ Supported File Formats

pyscreenrecorder supports the following video formats:

FormatDescription
MP4High compatibility
AVIUncompressed quality
MKVModern, flexible

Set the format by using the appropriate file extension in filename.
Example:

ScreenRecorder(filename="recording.mkv")

🎯 Dependencies

pyscreenrecorder relies on:

  • opencv-python
  • numpy
  • mss
  • pyautogui
  • MouseInfo
  • PyGetWindow
  • PyMsgBox
  • pyperclip
  • PyRect
  • PyScreeze
  • pytweening

No additional configuration is required.

πŸ“ License

This project is licensed under the MIT License.

πŸ“š More Information

πŸ“Œ GitHub Repository:
πŸ”— https://github.com/SSujitX/pyscreenrecorder

πŸ“Œ Issue Tracker:
πŸ› Report a Bug

🏁 Conclusion

pyscreenrecorder is an efficient, easy-to-use, and customizable screen recording tool in Python. Whether you need basic screen capturing or advanced mouse-tracked recordings, this package provides all the features.

πŸš€ Try it today! πŸš€

Visitors

Keywords

screen recorder

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts