Git Product home page Git Product logo

mkv-validator's Introduction

mkv-validator

mkv-validator.py a MKV validator wrapper written in Python for mkvalidator.exe

recursively validate the integrity of your mkv file library and store the results in a log file.

Dependencies

  • mkvalidator.exe from matroska.org download
  • python 3.5.2 from python.org download

Setup

  • Install Python 3.5.2
  • Download or clone mkv-validator.py from this repo
git clone [email protected]:1010dvpt/mkv-validator.git
  • Place matroska's mkvalidator.exe file in the mkv-validator directory
C:\Users\Media\Downloads\mkv-validator\>ls
LICENSE.md README.md mkv-validator.py mkvalidator.exe

Usage

Works in these Windows 10 command line environments

help

C:\Users\Media\Downloads\mkv-validator\>python mkv-validator.py -h
usage: mkv-validator.py [-h] [-o OPTIONS] -s SOURCE

example: python mkv-validator.py -o details -s E:\\mkvs\\movies

optional arguments:
-h, --help            show this help message and exit
-o OPTIONS, --options OPTIONS
                      no-warn   only output errors, no warnings
                      live      only output errors/warnings relevant to live streams
                      details   show details for valid files
                      divx      assume the file is using DivX specific extensions
                      quiet     don't output progress and file info
-s SOURCE, --source SOURCE
                      E:\\mkvs\\movies
                      E:/mkvs/movies
                      E:/mkvs/"Best Movies"

Output

C:\Users\Media\Downloads\mkv-validator\>python mkv-validator.py -o details -s E:\\mkvs

Checking: E:\\mkvs\A\a-great-movie.mkv
mkvalidator 0.5.0: the file appears to be valid

Checking: E:\\mkvs\B\b-bad-movie.mkv
ERR042: The segment's size 8211979374 doesn't match the position where it ends 398673472
ERR066: The SeekPoint at 87 references an unknown Cues at 8211952374
WRN800: The segment has Clusters but no Cues section (bad for seeking)
WRN0D0: There are 5244 bytes of void data

Checking: E:\\mkvs\T\tv-great-show.mkv
mkvalidator 0.5.0: the file appears to be valid

Logging

a log file is written as mkv_results.log. Here you will find the complete output of what was found for each mkv file.

[2016/09/23 11:04:08] - Title E:\\mkvs\A\a-great-movie.mkv [...
...
[2016/09/23 11:06:17] - Title E:\\mkvs\B\b-bad-movie.mkv [....
...

Pro Tip (requires Git bash)

Capture the screen output as a log file too

C:\Users\Media\Downloads\mkv-validator\>python mkv-validator.py -o details -s E:\\mkvs | tee -a mkv_screen.log
C:\Users\Media\Downloads\mkv-validator\>ls
LICENSE.md README.md mkv-validator.py mkv_results.log mkv_screen.log mkvalidator.exe

License

Apache License

mkv-validator's People

Contributors

1010dvpt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

gleepwurp

mkv-validator's Issues

Log File Has Tons of Useless Characters and Doesn't Insert new Lines

Thanks for making this script, it's just what I was looking for to scan all my video files with mkvalidator instead of doing them one at a time.
Unfortunately, the log file it outputs (for me at least) is gigantic and filled with useless strings of characters. I've uploaded a sample here. And notice that all those lines filled with things like \r............................................................\r aren't actually new lines, it's just the added blank space and word wrapping that makes them look that way.
That makes it even harder to fix/read the log. For example I scanned 100 movies and got an output with 100 lines and 2,935,662 characters. And there are many different garbage strings, so I can't just find all occurrences of a single string and delete it to make the output readable. The garbage strings vary in length and characters, for example: \r\r\n', b'\r\r\n', b'\ \r\r\n'] ''\r\r\n", b'..............................................................\r etc., and they all include different amounts of white space before and/or after. And I don't know enough about Python to figure out what's causing this strange output.
I'm running Windows 7 SP1 x64 and have Python 3.6.1 x64 installed. I ran mkv-validator v0.5.1 using your script in PowerShell, and the output there looked perfectly normal and didn't have any garbage strings.

Linux

Hi,

how would one be able to use this in a Linux environment ?

i already have mkvalidate for Linux

Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.