September 8, 201213 yr I have many movies in mkv files, they are 720p, 1080p, and 810p. Is there a program to scan these files and tell me what quality they are without playing them?
September 8, 201213 yr http://mediainfo.sourceforge.net/en D:\>MediaInfo --Output=Video;%Height% "\\nas\tv\Breaking Bad\Breaking.Bad.S01e01.720p.mkv" 720 You could put it in a batch file to read all your MKVs, or use Excel to throw together something.
September 8, 201213 yr I found this on the SimpleFeatures page: http://code.google.com/p/unraid-simplefeatures/downloads/detail?name=mediainfo-0.7.44_unraid.tgz&can=4&q= I've installed it on my unraid machine, and it works. But now i need a way to call it from a script, like a sabnzbd post processing python script, and fetch the output. Anyone has an idea how to do this?
September 8, 201213 yr I use MediaInfo CLI and call it directly from my php code that serves up media in the browser.
September 8, 201213 yr Ive searched for mediainfo cli on sourceforge but i cant find a version for "slackware"... ? do you have a link? And a link to some programming examples on linux? On windows its no problem, there i use the mediainfo api directly from c#
September 8, 201213 yr Found via a google search -- http://pkgs.org/slackware-13.37/slacky-i486/libmediainfo-0.7.46-i486-1sl.txz.html
September 8, 201213 yr Ok, cool... will look into that one. Goal is to integrate mediainfo in a sabnzbd post processing (python) script, so it renames tv episodes using the correct resolution- and sound formats. Some mkv's i downloaded are incorrectly named, e.g. 'some_series.s03e05.720p.x264.mkv' while the file is in fact a 1920x1080 MPG2 transport stream... doesnt happen a lot but still would be nice to correct that.
September 8, 201213 yr Personally I tag every movie folder with the following. Transformers(720) Avatar(1080) 10000BC(480) So with a glance I know what everything is without even thinking about it. Doesn't solve your current problem, but for others it might be a decent suggestion.
September 8, 201213 yr Ok, cool... will look into that one. Goal is to integrate mediainfo in a sabnzbd post processing (python) script, so it renames tv episodes using the correct resolution- and sound formats. Some mkv's i downloaded are incorrectly named, e.g. 'some_series.s03e05.720p.x264.mkv' while the file is in fact a 1920x1080 MPG2 transport stream... doesnt happen a lot but still would be nice to correct that. The one issues is it will be hard to tell whether said 720p TV show is a TV rip or a bluray rip. I like to redownload shows from the bluray rip when available for my archive because they're usually higher bitrate (better quality) and remove things like the channel logo in the corner or any other on screen graphics. I guess the one way you could possibly tell is by the audio format. If its AC3 it's typically going to be a TV rip but if its DTS it's always going to be bluray. The issue there is some shows that aren't available in bluray but are available in 720p Web-DL (aka from the iTunes Store withe the DRM removed) will also have AC3. I guess for cases like this you will still have to process some stuff manually.
September 8, 201213 yr I use MediaInfo CLI with my php to put the data in the bottom RH corner, and select the icons HD and CC (captions). The text is pulled from IMDB. The second image is the media info screen, that shows the details I wanted, parsed from MediaInfo.
September 9, 201213 yr Author right now I have the following setup //unraid/Movies/Movie (year)/Movie (year) - quality.mkv I know there are problems cause one of my movies for sure is 720p and is says 1080p I have to figure out if I can easily get mediainfo to scan and rename things to //unraid/Movies/Movie (year) quality/Movie (year) - quality.mkv
September 9, 201213 yr I've thought about doing the same so I can have the same quality across the board(for the most part) but honestly I'm afraid. By far I know I don't have the largest library here, but I know my ocd would kick in and I couldn't rest until they were all the same. ...and I have a feeling the quality would be all over the place if I looked right now
September 9, 201213 yr ok, got the libmediainfo working native from python, nice have to study the interface a bit, with all the different options and inform calls and its parameters, but the basics are working.
Archived
This topic is now archived and is closed to further replies.