pwp-packs


Namepwp-packs JSON
Version 0.0.4 PyPI version JSON
download
home_pageNone
Summaryutility tool - Screen Recorder
upload_time2024-08-19 10:14:39
maintainerNone
docs_urlNone
authorNone
requires_python>=3.5
licenseNone
keywords python screen recorder video audio ffmpeg screen_recorder pwp_packs screenrecorder screenrecordergui
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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

```python
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)

```
```python
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

```python
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

```python
from pwp_packs.screenrecorder import ScreenRecorder

print(ScreenRecorder.__doc__)
```

Using ScreenRecorderGUI

```python
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.

```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pwp-packs",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.5",
    "maintainer_email": null,
    "keywords": "python, screen recorder, video, audio, ffmpeg, screen_recorder, pwp_packs, screenrecorder, screenrecordergui",
    "author": null,
    "author_email": "\"ProgresswithPython (Vivek Kumar)\" <kumarvivek9088@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/49/9d/2eeb4e61913c2db063f5a4d2173362063d6cf96f7343966414d86620452e/pwp_packs-0.0.4.tar.gz",
    "platform": null,
    "description": "# pwp_packs\r\n\r\nThe 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.\r\n\r\nDeveloped by Vivek Kumar - ProgresswithPython (c) 2024  (www.youtube.com/c/progresswithpython)\r\n\r\n\r\n## Examples of How To Use Screen Recorder Tool\r\n\r\n```python\r\nfrom pwp_packs.screenrecorder import ScreenRecorder\r\n\r\nrecorder = ScreenRecorder(\"test.mp4\")\r\nrecorder.start()\r\ninput(\"enter to stop recording...\")\r\nrecorder.stop()\r\n\r\n#You can use the overwrite parameter with True to overwrite the file if it already exists.\r\nrecorder = ScreenRecorder(\"test.mp4\",overwrite=True) #it will overwrite test.mp4 if exists.\r\nrecorder.start()\r\ninput(\"enter to stop recording...\")\r\nrecorder.stop()\r\n\r\n# By Default, Mouse will be recorded but if you don't want to recorde mouse then make \"draw_mouse\" parameter False\r\n#recorder = ScreenRecorder(\"test.mp4\", overwrite = True, draw_mouse = False)\r\n\r\n```\r\n```python\r\nfrom pwp_packs.screenrecorder import ScreenRecorder\r\n\r\n#you can define duration also\r\nrecorder = ScreenRecorder(\"test.mp4\",duration=30)\r\nrecorder.start() #it will record for 30 seconds\r\n\r\n```\r\nwith Audio\r\n\r\n```python\r\nfrom pwp_packs.screenrecorder import ScreenRecorder,get_audio_devices\r\n\r\nget_audio_devices() # Print the name of audio devices available in your system\r\n# audio_names = get_audio_devices(text=True) # This will return the name of audio devices in text format\r\n# print(audio_names)\r\n\r\n# Copy the name of that audio devices you want to record into a list\r\naudio_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.\r\n\r\nrecorder = ScreenRecorder(\"test.mp4\",audio_devices=audio_devices)\r\nrecorder.start()\r\ninput(\"enter to stop recording...\")\r\nrecorder.stop()\r\n\r\n#you can define delays in audio input devices if audio is aheading or not sync with video\r\n\r\naudio_delays = [0,1000] # 1 second delay in stereo mix input device\r\nrecorder = ScreenRecorder(\"test.mp4\",audio_devices=audio_devices,audio_delays = audio_delays)\r\nrecorder.start()\r\ninput(\"enter to stop recording...\")\r\nrecorder.stop()\r\n\r\n```\r\nTo see all Screen Recorder Parameters\r\n\r\n```python\r\nfrom pwp_packs.screenrecorder import ScreenRecorder\r\n\r\nprint(ScreenRecorder.__doc__)\r\n```\r\n\r\nUsing ScreenRecorderGUI\r\n\r\n```python\r\nfrom pwp_packs.screenrecorder import ScreenRecorderGUI\r\n\r\nrecorder = ScreenRecoderGUI(filename_prefix = \"PWP.mp4\")  # filename prefix with video extension\r\nrecorder.show() # It will show a small gui with start and stop button with recording timer in the top center of your screen\r\n\r\n# Right click on gui to get option to close gui.\r\n\r\n# You can provide the width,height for gui and x,y for gui position.(optional)\r\nrecorder = ScreenRecorderGUI(filename_prefix = \"PWP.mp4\", width = 500, height = 50, x=0,y=0,background_color = \"blue\")\r\nrecorder.show()\r\n\r\n# Note: ScreenRecorderGUI rest parameter are same as ScreenRecorder parameter.\r\n\r\n```\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "utility tool - Screen Recorder",
    "version": "0.0.4",
    "project_urls": null,
    "split_keywords": [
        "python",
        " screen recorder",
        " video",
        " audio",
        " ffmpeg",
        " screen_recorder",
        " pwp_packs",
        " screenrecorder",
        " screenrecordergui"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "99cfc867e54704c639cc99496ea0aa249b49d28379d5b8ca0bb6826a6596e5ae",
                "md5": "0af4def0634f48353c8f32b78da697b0",
                "sha256": "f399ff37106587f66c6e90e2360084ceec682a1bddb56c40e9795b1f2fedec77"
            },
            "downloads": -1,
            "filename": "pwp_packs-0.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0af4def0634f48353c8f32b78da697b0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.5",
            "size": 8137,
            "upload_time": "2024-08-19T10:14:37",
            "upload_time_iso_8601": "2024-08-19T10:14:37.593447Z",
            "url": "https://files.pythonhosted.org/packages/99/cf/c867e54704c639cc99496ea0aa249b49d28379d5b8ca0bb6826a6596e5ae/pwp_packs-0.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "499d2eeb4e61913c2db063f5a4d2173362063d6cf96f7343966414d86620452e",
                "md5": "6354ec18339ddf0bb28747982a27123c",
                "sha256": "d76248a614da496eb398b11e1b6938da893d388235645832b83fa9b170fa5c8d"
            },
            "downloads": -1,
            "filename": "pwp_packs-0.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "6354ec18339ddf0bb28747982a27123c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.5",
            "size": 8931,
            "upload_time": "2024-08-19T10:14:39",
            "upload_time_iso_8601": "2024-08-19T10:14:39.752347Z",
            "url": "https://files.pythonhosted.org/packages/49/9d/2eeb4e61913c2db063f5a4d2173362063d6cf96f7343966414d86620452e/pwp_packs-0.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-19 10:14:39",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "pwp-packs"
}
        
Elapsed time: 0.32844s