Skip to main content

ffmpegp is an enhanced version of FFmpeg, offering additional features and functionalities to extend its powerful media processing capabilities.

Project description

ffmpegp-logo

ffmpegp (short for "FFmpeg Plus") is a Python-based utility designed to simplify working with media files using ffprobe and ffmpeg. This tool lets you easily extract media details, format conversions, and advanced querying via JSON paths, providing a convenient and efficient interface.

Preview

ffmpegp-logo

ffmpegp-logo

ffmpegp-logo

Features

  • Media Metadata Extraction : Get detailed media information via ffprobe.
  • JSONPath Querying : Retrieve specific metadata using JSON path expressions.
  • Gradient Text : Colored gradient output for enhanced readability.
  • Progress Bar : Visual progress bar with customizable colors and time estimation.
  • File Size Conversion : Converts file size to human-readable formats.
  • Time Conversion : Converts media duration to seconds.
  • Enhanced Command Options : Supports various flags for different modes and output styles.

Prerequisites

Ensure ffmpeg and ffprobe are installed and accessible in your system's PATH. If either is missing, the script will display an error.

Installation

Install ffmpegp using pip:

pip install ffmpegp

Usage

Run the program as follows:

ffmpegp -i <file_path> [options]

Arguments

  • file_path: Path to the media file for which you want details.

Options

Option Description
--colored Enable gradient color output.
--log Display logs of the running process.
--stdout Print only plain text without any colored output.
--jq Query specific JSON data (e.g.,format.filename).
--dir Enable multi-file processing mode in a directory.
--format Set specific file format to find. (works with '--dir' tag) (default: all) (e.g., --format=mp4).

Example Commands

Get media details:

ffmpegp "video.mp4"

Get specific JSON data:

ffmpegp "video.mp4" --jq="format.filename"

Enable gradient color progress output:

ffmpegp -i "video.mp4" [options] --colored

Run in directory mode and select only (mp4) extension files and save files to "output" folder with same filename with diffrent file extension (mkv).:

ffmpegp -i "{}" <options> "/output/{}.mkv" --dir="./videos" --format="mp4"

Contributing

Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request on GitHub.

License

This project is licensed under the GNU LESSER GENERAL PUBLIC LICENSE - see the LICENSE file for details.

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

ffmpegp-1.21.tar.gz (21.0 kB view details)

Uploaded Source

Built Distribution

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

ffmpegp-1.21-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

Details for the file ffmpegp-1.21.tar.gz.

File metadata

  • Download URL: ffmpegp-1.21.tar.gz
  • Upload date:
  • Size: 21.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for ffmpegp-1.21.tar.gz
Algorithm Hash digest
SHA256 1acd32e0f83748fcfa9b848ddff5f11984500edae05d6cdfe54f8bcbf7b50078
MD5 238c3ccb7f68febb407ec9301ad8bee8
BLAKE2b-256 2d7d4f091ec0251109fd4b0b8ec3a285b5644a5d1ab0a8ac6c53e535735821d3

See more details on using hashes here.

File details

Details for the file ffmpegp-1.21-py3-none-any.whl.

File metadata

  • Download URL: ffmpegp-1.21-py3-none-any.whl
  • Upload date:
  • Size: 19.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for ffmpegp-1.21-py3-none-any.whl
Algorithm Hash digest
SHA256 4cba5b7703180e25d9a0238e09d0249ee3f4cde653da39d900468e31ca24a358
MD5 57730fb606cf983bcbc2e139f56ddf2a
BLAKE2b-256 00c531774b9a242efabd9b687d0cd5ba1229ecf9b2c260b9079fe246b3f211f4

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