From 2af13e995fd4e5db8c8c98c3e0d84e60469cc327 Mon Sep 17 00:00:00 2001 From: stax76 Date: Sat, 4 Jun 2022 00:27:17 +0200 Subject: [PATCH] using media info by default --- docs/Manual.md | 2 +- src/Misc/App.cs | 2 +- src/Misc/Player.cs | 1 + src/Resources/editor_conf.txt | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/Manual.md b/docs/Manual.md index 4e227f2..cbbdb28 100644 --- a/docs/Manual.md +++ b/docs/Manual.md @@ -480,7 +480,7 @@ Amount of recent files to be remembered. Default: 15 #### --media-info=\ -Usage of the media info library instead of mpv to access media information. Default: no (mpv.net specific option) +Usage of the media info library instead of mpv to access media information. Default: yes (mpv.net specific option) #### --video-file-extensions=\ diff --git a/src/Misc/App.cs b/src/Misc/App.cs index 8636604..a8f9a67 100644 --- a/src/Misc/App.cs +++ b/src/Misc/App.cs @@ -26,7 +26,7 @@ namespace mpvnet public static bool DebugMode { get; set; } public static bool Exit { get; set; } public static bool IsTerminalAttached { get; } = Environment.GetEnvironmentVariable("_started_from_console") == "yes"; - public static bool MediaInfo { get; set; } + public static bool MediaInfo { get; set; } = true; public static bool Queue { get; set; } public static bool RememberVolume { get; set; } = true; public static bool RememberWindowPosition { get; set; } diff --git a/src/Misc/Player.cs b/src/Misc/Player.cs index 79b3b7b..c917f6a 100644 --- a/src/Misc/Player.cs +++ b/src/Misc/Player.cs @@ -1578,6 +1578,7 @@ namespace mpvnet Add(track, mi.GetVideo(i, "Format")); Add(track, mi.GetVideo(i, "Format_Profile")); Add(track, mi.GetVideo(i, "Width") + "x" + mi.GetVideo(i, "Height")); + Add(track, mi.GetVideo(i, "BitRate/String")); Add(track, fps + " FPS"); Add(track, mi.GetVideo(i, "Language/String")); Add(track, mi.GetVideo(i, "Forced") == "Yes" ? "Forced" : ""); diff --git a/src/Resources/editor_conf.txt b/src/Resources/editor_conf.txt index a3778f7..ee12411 100644 --- a/src/Resources/editor_conf.txt +++ b/src/Resources/editor_conf.txt @@ -19,7 +19,7 @@ help = Amount of recent files to be remembered. Default: 15 (mpv.net speci [setting] name = media-info file = mpvnet -default = no +default = yes filter = General help = Usage of the media info library instead of mpv to access media information. Default: no (mpv.net specific option)