Skip to main content

mediacurator

mediacurator is a Python command line tool to manage a media database.

  • List all the videos and their information with or without filters
  • Batch find and repair/convert videos with encoding errors
  • Batch recode videos to more modern codecs (x265 / AV1) based on filters: extensions, codecs, resolutions …

Documentation

The documentation is available on the following link

Releases

mediacurator can be installed via the following methods:

  • APT repository for Debian/Ubuntu systems
  • PyPi using pip

For detailed installation instructions, please visit the following links:

Usage

    mediacurator <command> [options]

    # Command options
    mediacurator [list convert] [-del/--delete/-delr/--delete-on-reduce]
        [
            -i/--inputs any 3g2 3gp amv asf avi dav divx dv f4v flv gif m1v m2p m2t m2ts m2v m4p m4v mkv mov mp4 mpe
                        mpeg mpg mpv mts mxf ogm ogv qt rm rmvb swf tod ts vid vob webm wm wmv wtv
        ]
        [-fl/--filters fferror old lowres hd 720p 1080p 2160p uhd 4k mpeg mpeg4 x264 wmv3 wmv]
        [-o/--outputs mkv/mp4 x265/av1/av2]
        [-p/--printop list formatted verbose]
        [-d/--dirs "/mnt/media/" "/mnt/media2/"]
        [-f/--files "file1.ext" "file2.ext"]

Available commands:

  • list: List all videos with specified filters.
  • convert: Convert videos to specified formats.

Options:

  • -del or --delete: Delete found results after successful operations. Use with caution.
  • -delr or --delete-on-reduce: Delete the original post conversion only if the new file is smaller. Use with caution.
  • -i <input> or --inputs <input>: Specify input file formats (default: any).
  • -fl <filter> or --filters <filter>: Apply filters to the selection of videos.
  • -o <output> or --outputs <output>: Specify output formats (default: mkv, x265).
  • -p <print_option> or --printop <print_option>: Set print options (default: list).
  • -f <file> or --files <file>: Specify files to process.
  • -d <directory> or --dirs <directory>: Specify directories to process.

For multiple files or filenames, use space-separated values ( ).

Default options (if not specified):

  • -i/--inputs: any
  • -fl/--filters: (none)
  • -o/--outputs: mkv, x265
  • -p/--printop: list

Examples

# List all videos with old codecs in formatted output
mediacurator list --filters old --printop formatted --dirs "/mnt/media/" "/mnt/media2/" >> ../medlist.txt

# Convert all MPEG4 videos to AV1 in MP4 format, and delete originals after conversion
mediacurator convert --delete --filters mpeg4 --outputs av1 mp4 --dirs "/mnt/media/" "/mnt/media2/"

# Convert videos with AVI or MPG extensions, print formatted and verbose output, and delete originals if size was reduced
mediacurator convert --delete-on-reduce --inputs avi mpg --printop formatted verbose --dirs "/mnt/media/" "/mnt/media2/"

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

GNU GPLv3

Metadata

Release files for mediacurator 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mediacurator 1.0.2
File Size Uploaded Provenance Actions
mediacurator-1.0.2.tar.gz 27.7 kB Without provenance Details for mediacurator-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mediacurator 1.0.2
File Interpreter ABI Platform Actions
mediacurator-1.0.2-py3-none-any.whl Python 3 none any Details for mediacurator-1.0.2-py3-none-any.whl

Total release size: 56.5 kB

Release files / mediacurator-1.0.2.tar.gz

Download URL mediacurator-1.0.2.tar.gz
Size 27.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a60c1e18fa5558bcf43967a065acbeed9d00a848fcafdbf4df838f9ce91cdfc3
BLAKE2b-256 checksum
How to use checksums
545735f435fc0154fab77d4547d440095ceb318950e9fa42a746917288267ee1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / mediacurator-1.0.2-py3-none-any.whl

Download URL mediacurator-1.0.2-py3-none-any.whl
Size 28.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
980404e65b36f080d07bb71af3d69c89972d92669d3d096e93b7225c654594a7
BLAKE2b-256 checksum
How to use checksums
cbd8eed4eb1d8743364b46ee706631e2d9c4e1c2129408650d8993638db85bc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Security for mediacurator 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page