From 5c7b0d26c9b242aa8aa26f8873f958b361735d84 Mon Sep 17 00:00:00 2001 From: komaruchan Date: Wed, 8 Oct 2014 17:58:28 +0800 Subject: [PATCH] Display more video information in MediaInfo Tab. --- mp4box/MainForm.cs | 10 +++++++++- mp4box/MainForm.resx | 3 +++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/mp4box/MainForm.cs b/mp4box/MainForm.cs index 509ef2f..75f9905 100644 --- a/mp4box/MainForm.cs +++ b/mp4box/MainForm.cs @@ -161,6 +161,10 @@ namespace mp4box string samplingRate = MI.Get(StreamKind.Audio, 0, "SamplingRate/String"); string channel = MI.Get(StreamKind.Audio, 0, "Channel(s)"); string aSize = MI.Get(StreamKind.Audio, 0, "StreamSize/String"); + + string audioInfo = MI.Get(StreamKind.Audio, 0, "Inform") + MI.Get(StreamKind.Audio, 1, "Inform") + MI.Get(StreamKind.Audio, 2, "Inform") + MI.Get(StreamKind.Audio, 3, "Inform"); + string videoInfo = MI.Get(StreamKind.Video, 0, "Inform"); + info = Path.GetFileName(VideoName) + "\r\n" + "容器:" + container + "\r\n" + "总码率:" + bitrate + "\r\n" + @@ -185,7 +189,11 @@ namespace mp4box "大小:" + aSize + "\r\n" + "码率:" + aBitRate + "\r\n" + "采样率:" + samplingRate + "\r\n" + - "声道数:" + channel + "\r\n"; + "声道数:" + channel + "\r\n" + + "\r\n====详细信息====\r\n" + + videoInfo + "\r\n" + + audioInfo + "\r\n" + ; MI.Close(); } return info; diff --git a/mp4box/MainForm.resx b/mp4box/MainForm.resx index 3e5f4b3..3796efd 100644 --- a/mp4box/MainForm.resx +++ b/mp4box/MainForm.resx @@ -483,6 +483,9 @@ True + + Vertical + 550, 549 -- 2.11.4.GIT