I completely forgot Monday is a holiday. This is what WFH does to you; you forget holidays.

MediaInfo - Everything You Didn't Know About Your Movies and Videos

So I think I mentioned it before, but anyone with a media collection they want to analyze or vidders who want an easy way to document all their source super thoroughly might like to try Mediainfo, which does a full analysis of your media to get literally all the information about it--audio streams, video streams, all the encoders, bitrate, a billion more things than that, etc. It works on any platform. If you have a large media collection, this is for you.

Here is a mediainfo file on The Martian. This doesn't show all the possible options, btw, just like a lot of them.

About Templates

However, that's pretty slow to do one movie/video at a time; instead, use command line to do in batches. Better, to get specific information you want instead of All Of It My God, you can create a template for mediainfo to read.

I have written several templates; my latest is one that will get everything in a movie that I want and place it in a csv file in a single line, so when it's done, I can see all my movies and info in a single spreadsheet. All you'd need is a script or program to loop through your movies to add them to the file if you use Windows; if you use Linux, I have a bash script you can use as a template or I can tell you how to adapt it to your file locations. The limitations are how wide you want your spreadsheet as each movie has about five billion or so characteristics and a lot lot lot of redundancy.

How The Template Works
If you look at the xml or text of a mediainfo file for a movie (see above), it's split into groups: General, Video, Audio, Text, and Menu. In the template, each group gets its own line; you cannot mix them up. You don't have to use all the groups, but no matter what order you have them in on the template, it will still write them into the file in the order above (General, Video, Audio, Text, Menu).

To Create a Template
Open notepad or something plain text.

You start with the group you want, semicolon, then a list of all the properties you want from that group, each one surrounded by '%'. You can use any delimiter.

This is the command:
mediainfo --Inform=$template $movie 1>>$file

Here's my template that is stored in a plain text file:
General;%FileName%,%FileSize%,%Duration%,%AudioCount%,%TextCount%,
Video;%Format%,%InternetMediaType%,%OriginalSourceMedium%,
Audio;%Format/String%,%Format_Commercial%,%Title%,

Note: I put a comma at the end of the line for the future csv file to import into a spreadsheet. If you plan to import into a spreadsheet, make sure you put your delimeter at the end of the line.

This give me:
General--> movie name, size, duration, how many audio streams, how many text streams (subtitles)
Video-->The format (HEVC, AVC, MPEG), internet media type (encoder sometimes) and the original source (bluray, DVD, or if blank, that means I did the encoding myself)
Audio--the string name (MLP FBA 16-ch, DTS, AC-3), the commercial name (Dolby TrueHD with Dolby Atmos, Dolby Digital, DTS), and title which is specific type (7.1 surround sound, 5.1, etc).

Here's what my spreadsheet looks like using this template: Media Spreadsheet

That Spreadsheet Is Kinda Big
Yeah, all this on one line--especially with nine to seventeen audio streams--gets big (see sheet above). You can also do multiple templates, one for general, one for video, one for audio, etc, and run them one after the other.

mediainfo --Inform=$genTemplate $movie 1>>$generalFile
mediainfo --Inform=$vidTemplate $movie 1>>$videoFile
mediainfo --Inform=$audTemplate $movie 1>>$audioFile

The only problem with that is with the video only and audio only template, you'll also need to have General as well so you can get the movie name, since General is the only place the name property appears. so for a Video only, you'd do something like this.

General;%FileName%,
Video;%Format%,%InternetMediaType%,%OriginalSourceMedium%,

Mediainfo - All Properties List

For reference, here is a complete list of all properties available, separated by group (General, Video, Audio, Text, Menu).

Generally, to work out what is what, run mediainfo on a few movies (a bluray rip, a DVD rip, one you encoded yourself, one with DTS and one with Dolby, a vid you downloaded, etc), get the XML document for each, and contrast/compare what information is given. It's not always clear what does what--or if it does anything--until you check it in multiple formats. Some properties are very specific to the video type, audio type, or subtitle type.

I highly recommend this program. I'm currently adapting a script and template to use on my vid collection to find old formats/bad formats/redundancy/etc.

If you have any problem accessing the linked files, tell me; I set it to everyone but well, google is gonna google.
(will be screened)
(will be screened if not validated)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

seperis: (Default)
seperis

Tags

Quotes

  • If you don't send me feedback, I will sob uncontrollably for hours on end, until finally, in a fit of depression, I slash my wrists and bleed out on the bathroom floor. My death will be on your heads. Murderers
    . -- Unknown, on feedback
    BTS List
  • That's why he goes bad, you know -- all the good people hit him on the head or try to shoot him and constantly mistrust him, while there's this vast cohort of minions saying, We wouldn't hurt you, Lex, and we'll give you power and greatness and oh so much sex...
    Wow. That was scary. Lex is like Jesus in the desert.
    -- pricklyelf, on why Lex goes bad
    LJ
  • Obi-Wan has a sort of desperate, pathetic patience in this movie. You can just see it in his eyes: "My padawan is a psychopath, and no one will believe me; I'm barely keeping him under control and expect to wake up any night now to find him standing over my bed with a knife!"
    -- Teague, reviewing "Star Wars: Attack of the Clones"
    LJ
  • Beth: god, why do i have so many beads?
    Jenn: Because you are an addict.
    Jenn: There are twelve step programs for this.
    Beth: i dunno they'd work, might have to go straight for the electroshock.
    Jenn: I'm not sure that helps with bead addiction.
    Beth: i was thinking more to demagnitize my credit card.
    -- hwmitzy and seperis, on bead addiction
    AIM, 12/24/2003
  • I could rape a goat and it will DIE PRETTIER than they write.
    -- anonymous, on terrible writing
    AIM, 2/17/2004
  • In medical billing there is a diagnosis code for someone who commits suicide by sea anenemoe.
    -- silverkyst, on wtf
    AIM, 3/25/2004
  • Anonymous: sorry. i just wanted to tell you how much i liked you. i'd like to take this to a higher level if you're willing
    Eleveninches: By higher level I hope you mean email.
    -- eleveninches and anonymous, on things that are disturbing
    LJ, 4/2/2004
  • silverkyst: I need to not be taking molecular genetics.
    silverkyst: though, as a sidenote, I did learn how to eviscerate a fruit fly larvae by pulling it's mouth out by it's mouthparts today.
    silverkyst: I'm just nowhere near competent in the subject material to be taking it.
    Jenn: I'd like to thank you for that image.
    -- silverkyst and seperis, on more wtf
    AIM, 1/25/2005
  • You know, if obi-wan had just disciplined the boy *properly* we wouldn't be having these problems. Can't you just see yoda? "Take him in hand, you must. The true Force, you must show him."
    -- Issaro, on spanking Anakin in his formative years
    LJ, 3/15/2005
  • Aside from the fact that one person should never go near another with a penis, a bottle of body wash, and a hopeful expression...
    -- Summerfling, on shower sex
    LJ, 7/22/2005
  • It's weird, after you get used to the affection you get from a rabbit, it's like any other BDSM relationship. Only without the sex and hot chicks in leather corsets wielding floggers. You'll grow to like it.
    -- revelininsanity, on my relationship with my rabbit
    LJ, 2/7/2006
  • Smudged upon the near horizon, lapine shadows in the mist. Like a doomsday vision from Watership Down, the bunny intervention approaches.
    -- cpt_untouchable, on my addition of The Fourth Bunny
    LJ, 4/13/2006
  • Rule 3. Chemistry is kind of like bondage. Some people like it, some people like reading about or watching other people doing it, and a large number of people's reaction to actually doing the serious stuff is to recoil in horror.
    -- deadlychameleon, on class
    LJ, 9/1/2007
  • If imitation is the sincerest form of flattery, then Fan Fiction is John Cusack standing outside your house with a boombox.
    -- JRDSkinner, on fanfiction
    Twitter
  • I will unashamedly and unapologetically celebrate the joy and the warmth and the creativity of a community of people sharing something positive and beautiful and connective and if you don’t like it you are most welcome to very fuck off.
    -- Michael Sheen, on Good Omens fanfic
    Twitter
    , 6/19/2019
  • Adding for Mastodon.
    -- Jenn, traceback
    Fosstodon
    , 11/6/2022

Credit

November 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 2022
Page generated Apr. 23rd, 2025 07:07 am
Powered by Dreamwidth Studios