Skip to main content

A powerful and intuitive command-line video editor, built on FFmpeg.

Project description

🎬 ffmPEG-this

PyPI Version PyPI Python Versions License Downloads

Your Video editor within CLI 🚀

A powerful and user-friendly batch script for converting, manipulating, and inspecting media files using the power of FFmpeg. This script provides a simple command-line menu to perform common audio and video tasks without needing to memorize complex FFmpeg commands.

✨ Features

  • Inspect Media Properties: View detailed information about video and audio streams, including codecs, resolution, frame rate, bitrates, and more.
  • Convert & Transcode: Convert videos and audio to a wide range of popular formats (MP4, MKV, WebM, MP3, FLAC, WAV, GIF) with simple quality presets.
  • Join Videos (Concatenate): Combine two or more videos into a single file. The tool automatically handles differences in resolution and audio sample rates for a seamless join.
  • Trim (Cut) Videos: Easily cut a video to a specific start and end time without re-encoding for fast, lossless clips.
  • Visually Crop Videos: An interactive tool that shows you a frame of the video, allowing you to click and drag to select the exact area you want to crop.
  • Extract Audio: Rip the audio track from any video file into MP3, FLAC, or WAV.
  • Remove Audio: Create a silent version of your video by stripping out all audio streams.
  • Batch Conversion: Convert all media files in the current directory to a specified format in one go.
  • CLI Interface: A user-friendly command-line interface that makes it easy to perform common tasks and navigate the tool's features.

🚀 Usage

Prerequisite: Install FFmpeg

[NOTE] peg_this uses a library called ffmpeg-python which acts as a controller for the main FFmpeg program. It does not include FFmpeg itself. Therefore, you must have FFmpeg installed on your system and available in your terminal's PATH.

For macOS users, the easiest way to install it is with Homebrew:

brew install ffmpeg

For Windows users, you can use a package manager like Chocolatey or Scoop:

# Using Chocolatey
choco install ffmpeg

# Using Scoop
scoop install ffmpeg

For other systems, please see the official download page: ffmpeg.org/download.html

There are three ways to use peg_this:

1. Pip Install (Recommended)

This is the easiest way to get started. This will install the tool and all its dependencies.

pip install peg_this

Once installed, you can run the tool from your terminal:

peg_this

2. Download from Release

If you prefer not to install the package, you can download a pre-built executable from the Releases page.

  1. Download the executable for your operating system (Windows, macOS, or Linux).
  2. Place it in a directory with your media files.
  3. Run the executable directly from your terminal.

3. Run from Source

If you want to run the script directly from the source code:

  1. Clone the repository:
    git clone https://github.com/hariharen9/ffmpeg-this.git
    cd ffmpeg-this
    
  2. Install dependencies:
    pip install -r requirements.txt
    
  3. Run the script:
    python -m src.peg_this.peg_this
    

📈 Star History

Star History Chart

✨ Sponsor

GitHub Sponsors Buy Me a Coffee

👥 Contributors

🤝 Contributing

Contributions are welcome! Please see the Contributing Guidelines for more information.

📄 License

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

Made with ❤️ by Hariharen

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

peg_this-4.0.0.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

peg_this-4.0.0-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

Details for the file peg_this-4.0.0.tar.gz.

File metadata

  • Download URL: peg_this-4.0.0.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for peg_this-4.0.0.tar.gz
Algorithm Hash digest
SHA256 c7c61c9e0f51734d84ab300cf992d51d6260f40bc8aaf8178fd6257a4af3653e
MD5 49171c01defcdf6dd211c2511ed6315c
BLAKE2b-256 2d7e4ca23aa11f0a76ce248353a33c7c9224d01c4842ce62d2177f403a8f550f

See more details on using hashes here.

File details

Details for the file peg_this-4.0.0-py3-none-any.whl.

File metadata

  • Download URL: peg_this-4.0.0-py3-none-any.whl
  • Upload date:
  • Size: 19.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for peg_this-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4392b0a7d5a00933d4cd1f4b141832f62d6a5fb6a51ba96dc1e519b3cd168d64
MD5 04b2a67fd760482e444a0b2c7e2ced58
BLAKE2b-256 bec1579db0ca9b3bebea8f5bdb8b16dd16652418de8d0cce9ea094ecc03beace

See more details on using hashes here.

Supported by

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