From 26b391a8d9c35c98d7c1e013548ddfc237bb3be0 Mon Sep 17 00:00:00 2001 From: Frank Skare Date: Sat, 21 Mar 2020 08:28:37 +0100 Subject: [PATCH] 5.4.4.2 --- Changelog.md | 24 ++++++++++++++++-------- mpv.net/Resources/editor.toml.txt | 27 ++++++++++++++++++++++++++- mpv.net/WPF/AboutWindow.xaml | 2 +- mpv.net/WPF/ConfWindow.xaml | 23 ++++++++++++----------- mpv.net/WPF/ConfWindow.xaml.cs | 5 +++-- 5 files changed, 58 insertions(+), 23 deletions(-) diff --git a/Changelog.md b/Changelog.md index c59f795..ac268fa 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,21 +1,29 @@ ### 5.4.4.2 +- update: libmpv shinchiro 0.32.0-258-g281f5c63c1 +- update: youtube-dl + +- new: d3d11va-zero-copy setting added to conf editor +- new: hdr-compute-peak setting added to conf editor - new: flag cli switches support now `--no-flag` in addition to `--flag=no` https://mpv.io/manual/master/#usage - new: cli switches can also start with single `-` instead of double `--` https://mpv.io/manual/master/#legacy-option-syntax -- new: the PowerShell script host was completely rewritten, events can be assigned - to using `Register-ObjectEvent`, the scripting wiki page was updated +- new: PowerShell script host was completely rewritten, events can be assigned + by using `Register-ObjectEvent`, the scripting wiki page was updated https://github.com/stax76/mpv.net/wiki/Scripting#powershell - new: Context Menu > View > Show Profiles https://github.com/stax76/mpv.net/blob/master/mpv.net/Resources/input.conf.txt#L147 -- new: various default were improved - https://github.com/stax76/mpv.net/blob/master/mpv.net/Resources/mpv.conf.txt - -### 5.4.4.1 - -- new: external OSD console replaced with internal OSD console +- new: Context Menu > View > Show Properties + https://github.com/stax76/mpv.net/blob/master/mpv.net/Resources/input.conf.txt#L148 +- new: Context Menu > View > Show Commands + https://github.com/stax76/mpv.net/blob/master/mpv.net/Resources/input.conf.txt#L149 +- new: config editor tab is now remembered +- new: osd-duration setting added to config editor and default mpv.conf +- new: external console replaced with internal console, in case mpv.conf is missing it's + generated with correct Hight DPI font settings: `script-opts=console-scale=` + https://github.com/stax76/mpv.net/blob/master/mpv.net/Resources/input.conf.txt#L150 https://mpv.io/manual/master/#console - new: blue color in dark theme is now less intense https://github.com/stax76/mpv.net/blob/master/Manual.md#color-theme diff --git a/mpv.net/Resources/editor.toml.txt b/mpv.net/Resources/editor.toml.txt index 4fae4b6..479d55a 100644 --- a/mpv.net/Resources/editor.toml.txt +++ b/mpv.net/Resources/editor.toml.txt @@ -152,6 +152,25 @@ help = "Enable the debanding algorithm. This greatly reduces the amount of visib options = [{ name = "yes" }, { name = "no" }] +[[settings]] +name = "d3d11va-zero-copy" +file = "mpv" +default = "no" +filter = "Video" +help = "By default, when using hardware decoding with --gpu-api=d3d11, the video image will be copied (GPU-to-GPU) from the decoder surface to a shader resource. Set this option to avoid that copy by sampling directly from the decoder image. This may increase performance and reduce power usage, but can cause the image to be sampled incorrectly on the bottom and right edges due to padding, and may invoke driver bugs, since Direct3D 11 technically does not allow sampling from a decoder surface (though most drivers support it.)" +options = [{ name = "yes" }, + { name = "no" }] + +[[settings]] +name = "hdr-compute-peak" +file = "mpv" +default = "auto" +filter = "Video" +help = "Compute the HDR peak and frame average brightness per-frame instead of relying on tagged metadata. These values are averaged over local regions as well as over several frames to prevent the value from jittering around too much. This option basically gives you dynamic, per-scene tone mapping. Requires compute shaders, which is a fairly recent OpenGL feature, and will probably also perform horribly on some drivers, so enable at your own risk. The special value auto (default) will enable HDR peak computation automatically if compute shaders and SSBOs are supported." +options = [{ name = "auto" }, + { name = "yes" }, + { name = "no" }] + [[settings]] name = "volume" file = "mpv" @@ -276,6 +295,12 @@ file = "mpv" filter = "Screen" help = "Specify the OSD font size. See sub-font-size for details. Default: 55" +[[settings]] +name = "osd-duration" +file = "mpv" +filter = "Screen" +help = "Set the duration of the OSD messages in ms. Default: 1000" + [[settings]] name = "osd-scale-by-window" file = "mpv" @@ -310,7 +335,7 @@ default = "previous" filter = "Screen" help = "Setting to remember the window height in the current session, otherwise the video's native resolution is used. (mpv.net specific setting)" options = [{ name = "video", help = "Window size is set to native video resolution" }, - { name = "previous", help = "Window size is remembered but only from the current session" }] + { name = "previous", help = "Window size is remembered but only in the current session" }] [[settings]] name = "start-threshold" diff --git a/mpv.net/WPF/AboutWindow.xaml b/mpv.net/WPF/AboutWindow.xaml index a3a5130..e5c0937 100644 --- a/mpv.net/WPF/AboutWindow.xaml +++ b/mpv.net/WPF/AboutWindow.xaml @@ -19,7 +19,7 @@ mpv.net - Copyright (c) 2017-2019 Frank Skare (stax76) + Copyright (C) 2017-2020 Frank Skare (stax76) MIT License diff --git a/mpv.net/WPF/ConfWindow.xaml b/mpv.net/WPF/ConfWindow.xaml index 769c2ea..ff5c9ac 100644 --- a/mpv.net/WPF/ConfWindow.xaml +++ b/mpv.net/WPF/ConfWindow.xaml @@ -26,13 +26,14 @@ - + - - - Open config folder - Preview mpv.conf - Show mpv manual - Show support forum + Open config folder + Preview mpv.conf + Show mpv manual + Show support forum \ No newline at end of file diff --git a/mpv.net/WPF/ConfWindow.xaml.cs b/mpv.net/WPF/ConfWindow.xaml.cs index ded73b4..df2a5fd 100644 --- a/mpv.net/WPF/ConfWindow.xaml.cs +++ b/mpv.net/WPF/ConfWindow.xaml.cs @@ -5,7 +5,6 @@ using System.Collections.ObjectModel; using System.Diagnostics; using System.IO; using System.Linq; -using System.Reflection; using System.Text; using System.Windows; using System.Windows.Controls; @@ -32,6 +31,7 @@ namespace mpvnet LoadSettings(); InitialContent = GetCompareString(); SearchControl.Text = RegistryHelp.GetString(App.RegPath, "ConfigEditorSearch"); + FilterListBox.SelectedItem = SearchControl.Text.TrimEnd(':'); } void LoadSettings() @@ -287,7 +287,8 @@ namespace mpvnet void FilterListBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { - if (e.AddedItems.Count > 0) SearchControl.Text = e.AddedItems[0] + ":"; + if (e.AddedItems.Count > 0) + SearchControl.Text = e.AddedItems[0] + ":"; } void OpenSettingsTextBlock_MouseUp(object sender, MouseButtonEventArgs e)