Skip to main content

A powerful mp4 files fixer that fix 70% to 90% of mp4 files

Project description

MP4Fixer


MP4Fixer is a simple and powerful tool that repairs broken / corrupted MP4 videos by re-encoding them using FFmpeg. It can successfully fix 70% – 90% of damaged MP4 files, depending on corruption level. It uses: libx264 for video aac for audio and applies -movflags +faststart so even partially processed files are more playable.


✨ Features Fix broken & unplayable MP4 files Simple CLI usage Python API available Safe graceful stop using Ctrl + C Supports all FFmpeg speed presets Works on Linux, Termux, Windows, and macOS ⚙️ Requirements Python 3.7+ FFmpeg binary Either provide a binary named mf inside the package folder OR modify to use system ffmpeg


📦 Installation

This is not require to install ffmpeg because that was inbuilt inside it.

pip install mp4fixer


🚀 CLI Usage

Basic usage

mp4fixer

With output path

mp4fixer --output_path

With preset Copy code

mp4fixer --output

if you not provide output path so that automatically make fixed file in same folder where input file. if you not provide preset so that automatically set preset to ultrafast.


🎛️ Supported Presets

ultrafast superfast veryfast faster fast medium slow slower veryslow placebo ultrafast = fastest, larger file veryslow = slow but best compression Default = ultrafast


Python Usage

from mp4fixer import fix

print( fix( input_file="video.mp4", output_file="fixed_video.mp4", preset="fast" ) )

Returns: "OK" if success "ERR: message" if something failed "Re-Encoding stopped cleanly" if cancelled 🛑 Stopping Encoding (Ctrl + C) If you press Ctrl + C, MP4Fixer: Sends q to FFmpeg FFmpeg closes cleanly Output file remains playable No broken partial files 🎉


📌 Notes If no output path is given, output is created in same folder:

fixed_.mp4 Input must exist Output folder must exist Preset must be valid


👑 Author

                  Abdul Moeez

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

mp4fixer-0.1.0.tar.gz (145.7 kB view details)

Uploaded Source

Built Distribution

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

mp4fixer-0.1.0-py3-none-any.whl (145.3 kB view details)

Uploaded Python 3

File details

Details for the file mp4fixer-0.1.0.tar.gz.

File metadata

  • Download URL: mp4fixer-0.1.0.tar.gz
  • Upload date:
  • Size: 145.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for mp4fixer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 df99a559ef16fd05da40dc6073153836cb22c3ebee5620812de9801c63b8ea02
MD5 adad7a376dba86437e70f42009a05a61
BLAKE2b-256 94c4a9fcb397da23789b01dde6908035a0ab44339dd07ec7ce977b2478af45e8

See more details on using hashes here.

File details

Details for the file mp4fixer-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mp4fixer-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 145.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for mp4fixer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a70b126922a1bd26e2e7a8f5f94f94e8863722ee811833575e9b759063764346
MD5 1e1f03d9bf9cb6d66243933e07623ae5
BLAKE2b-256 5146c5c87581705bc4f2dcffb8b269608b77658de36ea8d9a16f59aa8792e5a3

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