Skip to main content

Record and save time-lapse videos while you work.

Project description

TimeLapser

TimeLapser is a Python CLI tool for recording screen activity and saving it as a video file. It uses OpenCV and FFMPEG for video encoding and supports multiple monitor setups. You can customize the recording settings such as frame rate, video format, and monitor selection. The tool also provides functionality to list available monitors and display a recording timer.

Features

  • Record screen activity from a selected monitor.
  • Save recordings in MP4 or AVI format.
  • Specify the output directory.
  • Option to set the frames per second (FPS) for recording.
  • Display a timer showing elapsed recording time.
  • List available monitors with their resolutions.

Requirements

Installation

  1. Install using pip:

    pip install timelapser
    

    Or install from GitHub:

    pip install git+https://github.com/asibhossen897/timelapser.git
    
  2. Ensure FFMPEG is installed:

    To check if FFMPEG is installed, run the following command:

    ffmpeg -version
    

    If FFMPEG is not installed, you can install it using the following commands:

    • Linux:

      • Ubuntu/Debian

        sudo apt-get update
        sudo apt-get install ffmpeg
        
      • RHEL/CentOS/Fedora

        sudo yum install ffmpeg
        
      • Arch Linux

        sudo pacman -S ffmpeg
        
    • macOS:

      brew install ffmpeg
      
    • Windows: Download and install from the FFMPEG official site and add it to your PATH.

Important: The program will not work if FFMPEG is not installed.

Usage

Start Recording

To start recording, use the record command:

timelapser record --fps 30 --mp4 --monitor_index 0 --output_dir Recordings

or Download and use timelapser.py file from the GitHub repository:

python timelapser.py record --fps 30 --mp4 --monitor_index 0 --output_dir Recordings

Options:

  • --fps: Frames per second (e.g., 30, Default is 100).
  • --mp4: Save the video in MP4 format. Use --avi for AVI format.
  • --monitor_index: Index of the monitor to record from (default is 0).
  • --output_dir: Directory where the video will be saved (default is "Outputs").

Stop Recording

To stop recording, press Q on your keyboard.

List Monitors

To list all available monitors and their resolutions, use:

timelapser list-monitors

Code Organization

  • timelapser/main.py: Contains the CLI commands and main logic for recording and listing monitors.
  • timelapser/recorder.py: Contains functions for creating videos, recording frames, and handling output directories.
  • timelapser/utils.py: Contains utility functions for generating timestamps and video formats.
  • requirements.txt: Lists the Python dependencies.

Bugs and Feature Requests

  • When you have any bug or feature request, please open an issue on GitHub.

Contributing

Feel free to contribute to this project by submitting issues, feature requests, or pull requests. Ensure you follow the coding style and include tests for new features.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any questions or feedback, please contact dev.asib@proton.me.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

timelapser-0.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

timelapser-0.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file timelapser-0.1.tar.gz.

File metadata

  • Download URL: timelapser-0.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for timelapser-0.1.tar.gz
Algorithm Hash digest
SHA256 3e8faa9248822171c2ce84058822df0d2971d63704b067e45e9e4508707a3b56
MD5 e8d72ea9bf7d13e4378f86a9d38d3f2a
BLAKE2b-256 87b7b99e0a45b0ad33d69b4bc859dc21ee54d4274354a0fb2dd04693af8e77b3

See more details on using hashes here.

File details

Details for the file timelapser-0.1-py3-none-any.whl.

File metadata

  • Download URL: timelapser-0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for timelapser-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f41d4cf3d9ad2a118821281de0c687f9c71933d6262b2dc2a7f26b594e45e328
MD5 0f4b1a6ec6cbab59d5860f12c07c442e
BLAKE2b-256 e3f5cb9bcd5b6ba1ff0253440e3425e2affaf736704a144def0b24e97e1c60c1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page