I know of no alternatives to mediainfo, and honestly even if I did, I would probably still use it.
And that’s the short version of what it can tell you. I don’t have space on my 1600×1200 screen to show you all of what it knows. And it’s not just ripped videos either: mediainfo knows a heckuva lot about audio files too.
And if you’re some kind of glutton for punishment, check out the number of flags and options available to you with mediainfo. Just mediainfo --Info-Parameters
was too much for the scrollback buffer on my terminal emulator. It may be a contender for the Most Extensive List of Options award — which is probably currently held by mplayer.
So … what good is it? Well, for OCPDers like me, who need their home movies organized by date, time, screen dimensions and title, it’s a critical tool.
With little more than mediainfo, grep and cut, I can reshuffle an entire folder full of videos in a way that satisfies that little voice in my brain that says, “This is messy.”
Don’t believe it? It’s true. With just …
for i in *.mp4 ; do DATETIME=$(mediainfo "${i}" | grep -m1 Encoded\ date | cut -c48-) ; WIDTH=$(mediainfo "${i}" | grep Width | cut -c44-46 ) ; HEIGHT=$(mediainfo "${i}" | grep Height | cut -c44-46) ; mv "${i}" "${DATETIME} ${WIDTH}x${HEIGHT} ${i}" ; done
I can go from this …
kmandla@6m47421: ~/temp$ ls Grub-to-login in 20-plus seconds with Arch Linux-_UOiG7sWWB8.mp4 Grub-to-X in 9 seconds with Crux Linux-aQigpYak2gw.mp4 Photo frame on Pentium running Debian-cbrSlgkmkYA.mp4
to this …
kmandla@6m47421: ~/temp$ ls 2011-03-19 10:42:13 480x360 Grub-to-login in 20-plus seconds with Arch Linux-_UOiG7sWWB8.mp4 2011-03-19 10:50:28 480x360 Grub-to-X in 9 seconds with Crux Linux-aQigpYak2gw.mp4 2014-02-11 13:43:47 480x360 Photo frame on Pentium running Debian-cbrSlgkmkYA.mp4
And life is good again. All hail mediainfo! There is none higher! đ
P.S.: There’s a GUI too, for those times when you are feeling visually inclined. đ