Skip to content

GhervasaCristian/MLV_Fixes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MLV 00 Removal

A simple toolset to inspect and repair MLV files with trailing 00 bytes at the end of the file, which can cause invalid blockSize == 0 errors in MLV processing applications. This issue may appear if the camera remains out of space while recording.

This issue is described in the original MLV-App repository: MLV-App Issue #305.

Invalid blockSize '0' Error


How the Error Works

Some MLV files may end with extra zero bytes. When MLV processing tools (like MLV-App) read such files, they may encounter a block with blockSize == 0, which causes a corrupted file error:

This happens because the reader interprets the trailing zeros as a malformed block, crashing or refusing to process the file.

BlockSize 0 Example in HeX


Features

Error Finder (MLV_Error_Finder.exe)

  • Scans MLV files for invalid blockSize == 0.
  • Does not modify files.
  • Helps locate corrupted areas visually and in hex.

Example menu screenshot:
Menu Error Finder

MLV Truck (MLV_Truck.exe)

  • Safely truncates trailing zero bytes at the end of MLV files.
  • Fully portable and safe: writes changes to a temporary file before replacing the original.

Example menu screenshot:
Menu MLV Truck


Usage

  1. Start with Menu.bat

MLV_Fix/

└─ MLV 00 Removal/

├─ Menu.bat

├─ MLV_RepairC++/bin/Release/MLV_Error_Finder.exe

└─ MLV_Truck/bin/Release/MLV_Truck.exe

└─ src/

├─ blocksize '0'.png

├─ Menu_00_0.png

└─ Menu_00_1.png

  1. Double-click Menu.bat to open the menu.

  2. Choose an option:

    • 1 → Run Error Finder to check MLV file for blockSize errors.
    • 2 → Run MLV Truck to fix trailing zeros.
    • 3 → Exit.
  3. Follow the on-screen instructions to provide the path of your MLV file.


Notes

  • Many thanks to @masc4ii for providing the checking code for blockSize '0'.
  • The Error Finder only detects errors; it will not modify your files.
  • MLV Truck safely removes trailing zeros at EOF and will never delete more than necessary.
  • Compatible with large MLV files (multi-GB).

To Do

  • Make GUI for the App
  • Sometimes, .M00 is missing. We should implement interpolation between the frames of the only file we have.
  • Interpolation detection shall be notified. Applied only if the user want. Shall be a different menu in the GUI.
  • Add the other graphical corrupted frames. Sometimes a single line is damaged, for only one frame. Other times, half of the image is completly black.

License

GPLv3

About

This repository is only about fixing issues with MLV files created by Magic Lantern software. Those fixes are at file level and should be used along MLVApp.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors