A small multiplier package
Project description
pwp_packs
The pwp_packs package contains utility tools. Currently, it includes a Screen Recorder tool that can record your system screen in any resolution, along with audio.
Developed by Vivek Kumar - ProgresswithPython (c) 2024 (www.youtube.com/c/progresswithpython)
Examples of How To Use Screen Recorder Tool
from pwp_packs.screenrecorder import ScreenRecorder
recorder = ScreenRecorder("test.mp4")
recorder.start()
input("enter to stop recording...")
recorder.stop()
#You can use the overwrite parameter with True to overwrite the file if it already exists.
recorder = ScreenRecorder("test.mp4",overwrite=True) #it will overwrite test.mp4 if exists.
recorder.start()
input("enter to stop recording...")
recorder.stop()
# By Default, Mouse will be recorded but if you don't want to recorde mouse then make "draw_mouse" parameter False
#recorder = ScreenRecorder("test.mp4", overwrite = True, draw_mouse = False)
from pwp_packs.screenrecorder import ScreenRecorder
#you can define duration also
recorder = ScreenRecorder("test.mp4",duration=30)
recorder.start() #it will record for 30 seconds
with Audio
from pwp_packs.screenrecorder import ScreenRecorder,get_audio_devices
get_audio_devices() # Print the name of audio devices available in your system
# audio_names = get_audio_devices(text=True) # This will return the name of audio devices in text format
# print(audio_names)
# Copy the name of that audio devices you want to record into a list
audio_devices = ["Microphone Array (Realtek(R) Audio)","Stereo Mix (Realtek(R) Audio)"] # Taking two audio devices to record, Note: audio devices name may varies from system to system.
recorder = ScreenRecorder("test.mp4",audio_devices=audio_devices)
recorder.start()
input("enter to stop recording...")
recorder.stop()
#you can define delays in audio input devices if audio is aheading or not sync with video
audio_delays = [0,1000] # 1 second delay in stereo mix input device
recorder = ScreenRecorder("test.mp4",audio_devices=audio_devices,audio_delays = audio_delays)
recorder.start()
input("enter to stop recording...")
recorder.stop()
To see all Screen Recorder Parameters
from pwp_packs.screenrecorder import ScreenRecorder
print(ScreenRecorder.__doc__)
Using ScreenRecorderGUI
from pwp_packs.screenrecorder import ScreenRecorderGUI
recorder = ScreenRecoderGUI(filename_prefix = "PWP.mp4") # filename prefix with video extension
recorder.show() # It will show a small gui with start and stop button with recording timer in the top center of your screen
# Right click on gui to get option to close gui.
# You can provide the width,height for gui and x,y for gui position.(optional)
recorder = ScreenRecorderGUI(filename_prefix = "PWP.mp4", width = 500, height = 50, x=0,y=0,background_color = "blue")
recorder.show()
# Note: ScreenRecorderGUI rest parameter are same as ScreenRecorder parameter.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sneahi_multiplier-0.0.1.tar.gz.
File metadata
- Download URL: sneahi_multiplier-0.0.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e5e43f95e891027ef0fa4b9cc3a868224aebc415d049b43b8b247934022fd79
|
|
| MD5 |
0a0205b55fc5974191cc402ba87e7edf
|
|
| BLAKE2b-256 |
054b234be676133c6bc3ec0cc3b3ade4caf29f97ea69f7c744e04fb9f62224a6
|
File details
Details for the file sneahi_multiplier-0.0.1-py3-none-any.whl.
File metadata
- Download URL: sneahi_multiplier-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73d62319377bebd03c304a8fa8e6c857f400758a00d54c0e9fdb1839bbc778c9
|
|
| MD5 |
aa1b4b567219fed4ebb2b8011a2be8db
|
|
| BLAKE2b-256 |
c6721e9fb56fa218ad0f5f7f727a6d8664f6ee456df801c5ae21addd8ea79e7b
|