Sakura-chan
27th November 2020, 19:35
So I have folders with MKVs and I'd like to generate a txt with the info for each, using the "tree" display as seen in the MediaInfo GUI. For example:
General
Unique ID : 119309994897818826562412235014109439107 (0x59C244E93B6C622C49AE14294FC0A483)
Complete name : <path>\King Kong (1933).mkv
Format : Matroska
Format version : Version 4
File size : 21.5 GiB
Duration : 1 h 44 min
Overall bit rate mode : Variable
Overall bit rate : 29.5 Mb/s
Movie name : King Kong (1933)
Encoded date : UTC 2020-11-23 08:34:51
Writing application : mkvmerge v51.0.0 ('I Wish') 64-bit
Writing library : libebml v1.4.0 + libmatroska v1.6.2
Video
ID : 1
ID in the original source medium : 4113 (0x1011)
Format : VC-1
Format profile : Advanced@L3
Codec ID : V_MS/VFW/FOURCC / WVC1
Codec ID/Hint : Microsoft
Duration : 1 h 44 min
Bit rate : 28.2 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.567
Stream size : 20.5 GiB (96%)
Default : Yes
Forced : No
Original source medium : Blu-ray
Audio #1
ID : 2
ID in the original source medium : 4352 (0x1100)
Format : DTS XLL
Format/Info : Digital Theater Systems
Commercial name : DTS-HD Master Audio
Codec ID : A_DTS
Duration : 1 h 44 min
Bit rate mode : Variable
Bit rate : 1 069 kb/s
Channel(s) : 1 channel
Channel layout : C
Sampling rate : 48.0 kHz
Frame rate : 93.750 FPS (512 SPF)
Bit depth : 24 bits
Compression mode : Lossless
Stream size : 799 MiB (4%)
Language : English
Default : Yes
Forced : No
Original source medium : Blu-ray
Audio #2
ID : 3
ID in the original source medium : 4355 (0x1103)
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : A_AC3
Duration : 1 h 44 min
Bit rate mode : Constant
Bit rate : 192 kb/s
Channel(s) : 1 channel
Channel layout : C
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 143 MiB (1%)
Title : Commentary by visual effects veterans Ray Harryhausen and Ken Ralston, with interview excerpts of Merian C. Cooper and Fay Wray
Language : English
Service kind : Complete Main
Default : No
Forced : No
Original source medium : Blu-ray
Text #1
ID : 4
ID in the original source medium : 4608 (0x1200)
Format : PGS
Muxing mode : zlib
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 1 h 37 min
Bit rate : 27.0 kb/s
Count of elements : 1786
Stream size : 18.9 MiB (0%)
Title : SDH
Language : English
Default : No
Forced : No
Original source medium : Blu-ray
Text #2
ID : 5
ID in the original source medium : 4609 (0x1201)
Format : PGS
Muxing mode : zlib
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 1 h 39 min
Bit rate : 15.9 kb/s
Count of elements : 1418
Stream size : 11.3 MiB (0%)
Language : French
Default : No
Forced : No
Original source medium : Blu-ray
Text #3
ID : 6
ID in the original source medium : 4610 (0x1202)
Format : PGS
Muxing mode : zlib
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 1 h 38 min
Bit rate : 19.5 kb/s
Count of elements : 1536
Stream size : 13.8 MiB (0%)
Language : Spanish
Default : No
Forced : No
Original source medium : Blu-ray
Text #4
ID : 7
ID in the original source medium : 4611 (0x1203)
Format : PGS
Muxing mode : zlib
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 1 h 38 min
Bit rate : 21.4 kb/s
Count of elements : 1540
Stream size : 15.1 MiB (0%)
Language : Portuguese
Default : No
Forced : No
Original source medium : Blu-ray
Menu
00:00:00.000 : en:Chapter 01
00:04:15.255 : en:Chapter 02
00:06:07.367 : en:Chapter 03
00:10:47.063 : en:Chapter 04
00:14:20.276 : en:Chapter 05
00:19:47.186 : en:Chapter 06
00:22:27.346 : en:Chapter 07
00:24:54.910 : en:Chapter 08
00:28:44.305 : en:Chapter 09
00:31:44.402 : en:Chapter 10
00:36:00.241 : en:Chapter 11
00:38:09.829 : en:Chapter 12
00:42:03.938 : en:Chapter 13
00:46:06.972 : en:Chapter 14
00:48:11.430 : en:Chapter 15
00:50:44.082 : en:Chapter 16
00:53:13.690 : en:Chapter 17
00:58:11.488 : en:Chapter 18
01:00:35.840 : en:Chapter 19
01:05:30.426 : en:Chapter 20
01:08:42.284 : en:Chapter 21
01:11:44.800 : en:Chapter 22
01:14:04.940 : en:Chapter 23
01:17:10.709 : en:Chapter 24
01:20:43.547 : en:Chapter 25
01:23:06.606 : en:Chapter 26
01:24:13.465 : en:Chapter 27
01:27:25.323 : en:Chapter 28
01:30:00.019 : en:Chapter 29
01:32:35.508 : en:Chapter 30
01:35:14.542 : en:Chapter 31
01:37:32.346 : en:Chapter 32
01:40:13.465 : en:Chapter 33
01:43:11.727 : en:Chapter 34
01:43:53.852 : en:Chapter 35
I'm trying now the CLI version with
mediainfo -f --logfile=<file.txt> <file.mkv>
and while I get some kind of "tree" it's kinda of a mess (had to make a pastebin as it's too long to post here) (https://pastebin.com/UehrR80d)
Is there some way to tell MediaInfo CLI to use the tree template? Regarding the batch I'll figure it out later, I did something like it before involving a "for" and some variable for the filenames. What I want to figure first is how to get the CLI to throw a more "friendly" output. I looked around but there's not a whole lot about MediaInfo out there.
Btw, the "--Info-Parameters" gets you an almost infinite list of parameters, but so far I've not seen something like the "tree" the GUI has.
Edit: Well, turns out removing the -f option gives you the standard tree layout. Can you believe it? I've never felt more like a moron, lol
General
Unique ID : 119309994897818826562412235014109439107 (0x59C244E93B6C622C49AE14294FC0A483)
Complete name : <path>\King Kong (1933).mkv
Format : Matroska
Format version : Version 4
File size : 21.5 GiB
Duration : 1 h 44 min
Overall bit rate mode : Variable
Overall bit rate : 29.5 Mb/s
Movie name : King Kong (1933)
Encoded date : UTC 2020-11-23 08:34:51
Writing application : mkvmerge v51.0.0 ('I Wish') 64-bit
Writing library : libebml v1.4.0 + libmatroska v1.6.2
Video
ID : 1
ID in the original source medium : 4113 (0x1011)
Format : VC-1
Format profile : Advanced@L3
Codec ID : V_MS/VFW/FOURCC / WVC1
Codec ID/Hint : Microsoft
Duration : 1 h 44 min
Bit rate : 28.2 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.567
Stream size : 20.5 GiB (96%)
Default : Yes
Forced : No
Original source medium : Blu-ray
Audio #1
ID : 2
ID in the original source medium : 4352 (0x1100)
Format : DTS XLL
Format/Info : Digital Theater Systems
Commercial name : DTS-HD Master Audio
Codec ID : A_DTS
Duration : 1 h 44 min
Bit rate mode : Variable
Bit rate : 1 069 kb/s
Channel(s) : 1 channel
Channel layout : C
Sampling rate : 48.0 kHz
Frame rate : 93.750 FPS (512 SPF)
Bit depth : 24 bits
Compression mode : Lossless
Stream size : 799 MiB (4%)
Language : English
Default : Yes
Forced : No
Original source medium : Blu-ray
Audio #2
ID : 3
ID in the original source medium : 4355 (0x1103)
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : A_AC3
Duration : 1 h 44 min
Bit rate mode : Constant
Bit rate : 192 kb/s
Channel(s) : 1 channel
Channel layout : C
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 143 MiB (1%)
Title : Commentary by visual effects veterans Ray Harryhausen and Ken Ralston, with interview excerpts of Merian C. Cooper and Fay Wray
Language : English
Service kind : Complete Main
Default : No
Forced : No
Original source medium : Blu-ray
Text #1
ID : 4
ID in the original source medium : 4608 (0x1200)
Format : PGS
Muxing mode : zlib
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 1 h 37 min
Bit rate : 27.0 kb/s
Count of elements : 1786
Stream size : 18.9 MiB (0%)
Title : SDH
Language : English
Default : No
Forced : No
Original source medium : Blu-ray
Text #2
ID : 5
ID in the original source medium : 4609 (0x1201)
Format : PGS
Muxing mode : zlib
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 1 h 39 min
Bit rate : 15.9 kb/s
Count of elements : 1418
Stream size : 11.3 MiB (0%)
Language : French
Default : No
Forced : No
Original source medium : Blu-ray
Text #3
ID : 6
ID in the original source medium : 4610 (0x1202)
Format : PGS
Muxing mode : zlib
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 1 h 38 min
Bit rate : 19.5 kb/s
Count of elements : 1536
Stream size : 13.8 MiB (0%)
Language : Spanish
Default : No
Forced : No
Original source medium : Blu-ray
Text #4
ID : 7
ID in the original source medium : 4611 (0x1203)
Format : PGS
Muxing mode : zlib
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 1 h 38 min
Bit rate : 21.4 kb/s
Count of elements : 1540
Stream size : 15.1 MiB (0%)
Language : Portuguese
Default : No
Forced : No
Original source medium : Blu-ray
Menu
00:00:00.000 : en:Chapter 01
00:04:15.255 : en:Chapter 02
00:06:07.367 : en:Chapter 03
00:10:47.063 : en:Chapter 04
00:14:20.276 : en:Chapter 05
00:19:47.186 : en:Chapter 06
00:22:27.346 : en:Chapter 07
00:24:54.910 : en:Chapter 08
00:28:44.305 : en:Chapter 09
00:31:44.402 : en:Chapter 10
00:36:00.241 : en:Chapter 11
00:38:09.829 : en:Chapter 12
00:42:03.938 : en:Chapter 13
00:46:06.972 : en:Chapter 14
00:48:11.430 : en:Chapter 15
00:50:44.082 : en:Chapter 16
00:53:13.690 : en:Chapter 17
00:58:11.488 : en:Chapter 18
01:00:35.840 : en:Chapter 19
01:05:30.426 : en:Chapter 20
01:08:42.284 : en:Chapter 21
01:11:44.800 : en:Chapter 22
01:14:04.940 : en:Chapter 23
01:17:10.709 : en:Chapter 24
01:20:43.547 : en:Chapter 25
01:23:06.606 : en:Chapter 26
01:24:13.465 : en:Chapter 27
01:27:25.323 : en:Chapter 28
01:30:00.019 : en:Chapter 29
01:32:35.508 : en:Chapter 30
01:35:14.542 : en:Chapter 31
01:37:32.346 : en:Chapter 32
01:40:13.465 : en:Chapter 33
01:43:11.727 : en:Chapter 34
01:43:53.852 : en:Chapter 35
I'm trying now the CLI version with
mediainfo -f --logfile=<file.txt> <file.mkv>
and while I get some kind of "tree" it's kinda of a mess (had to make a pastebin as it's too long to post here) (https://pastebin.com/UehrR80d)
Is there some way to tell MediaInfo CLI to use the tree template? Regarding the batch I'll figure it out later, I did something like it before involving a "for" and some variable for the filenames. What I want to figure first is how to get the CLI to throw a more "friendly" output. I looked around but there's not a whole lot about MediaInfo out there.
Btw, the "--Info-Parameters" gets you an almost infinite list of parameters, but so far I've not seen something like the "tree" the GUI has.
Edit: Well, turns out removing the -f option gives you the standard tree layout. Can you believe it? I've never felt more like a moron, lol