From b35972b3fa4e844accc01a87b5b8d1e6676d16bd Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Thu, 31 Aug 2017 01:21:15 +0200 Subject: mpvScripts.convert: fix for mpv >0.26.0 See https://gist.github.com/Zehkul/25ea7ae77b30af959be0#gistcomment-2189556 --- pkgs/applications/video/mpv/scripts/convert.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pkgs/applications/video/mpv/scripts/convert.patch b/pkgs/applications/video/mpv/scripts/convert.patch index 92d0fae1d503d..82171210b4158 100644 --- a/pkgs/applications/video/mpv/scripts/convert.patch +++ b/pkgs/applications/video/mpv/scripts/convert.patch @@ -11,6 +11,21 @@ -- default options, convert_script.conf is read local options = { bitrate_multiplier = 0.975, -- to make sure the file won’t go over the target file size, set it to 1 if you don’t care +@@ -247,12 +247,12 @@ + if string.len(vf) > 0 then + vf = vf .. "," + end +- local sub_file_table = mp.get_property_native("options/sub-file") ++ local sub_file_table = mp.get_property_native("options/sub-files") + local sub_file = "" + for index, param in pairs(sub_file_table) do + sub_file = sub_file .. " --sub-file='" .. string.gsub(tostring(param), "'", "'\\''") .. "'" + end +- local audio_file_table = mp.get_property_native("options/audio-file") ++ local audio_file_table = mp.get_property_native("options/audio-files") + local audio_file = "" + for index, param in pairs(audio_file_table) do + audio_file = audio_file .. " --audio-file='" .. string.gsub(tostring(param), "'", "'\\''") .. "'" @@ -354,9 +358,9 @@ if ovc == "gif" then full_command = full_command .. ' --vf-add=lavfi=graph=\\"framestep=' .. framestep .. '\\" && convert ' -- cgit 1.4.1