我有一个包含许多信息几乎相同的视频的文件夹。这是我的脚本:
mediainfo --Inform=file://C:\Users\Administrator\Desktop\Encode.tool\tem.txt *.mkv
pause
文本文件
General;%FileName% * Size:%FileSize/String3% * %Duration/String%\r
Video; |Video: ID:%ID% * %Width%x%Height%\r
Audio; |Audio: ID:%ID% * %Language/String% * %Channel(s)% * %Codec/String%\r
Text; |Sub : ID:%ID% * %Language/String% * %Codec%\r
\r\n
\r\n
File_End;\n
这是我的结果:
[HorribleSubs] Action Heroine Cheer Fruits - 01 [720p] * Size:165 MiB * 24 min 21 s
|Video: ID:1 * 1280x720
|Audio: ID:2 * * 2 * AAC LC
|Sub : ID:3 * English * S_TEXT/ASS
[HorribleSubs] Action Heroine Cheer Fruits - 02 [720p] * Size:157 MiB * 24 min 21 s
|Video: ID:1 * 1280x720
|Audio: ID:2 * Japanese * 2 * AAC LC
|Sub : ID:3 * English * S_TEXT/ASS
[HorribleSubs] Action Heroine Cheer Fruits - 03 [720p] * Size:193 MiB * 24 min 21 s
|Video: ID:1 * 1280x720
|Audio: ID:2 * Japanese * 2 * AAC LC
|Sub : ID:3 * English * S_TEXT/ASS
[HorribleSubs] Action Heroine Cheer Fruits - 04 [720p] * Size:183 MiB * 24 min 21 s
|Video: ID:1 * 1280x720
|Audio: ID:2 * Japanese * 2 * AAC LC
|Sub : ID:3 * English * S_TEXT/ASS
如您所见,这些视频具有相同的信息。所以我想显示一个总信息,比如:
Nums of video: 4
4 video - (Video names) - Sub :* English * S_TEXT/ASS
4 video - (Video names) - Video:* 1280x720
3 video - (Video names) - Audio:* Japanese *
1 video - (Video names) - Audio:* *
0 video with 2 line audio
我确实想专注于字幕语言和类型(英语和屁股);视频分辨率(1280x720);音频语言(日语)并显示有关具有 2 行音频的视频的信息(例如:1 个具有 2 行音频的视频 - (视频名称))
请帮忙 :(