about summary refs log tree commit diff
path: root/pkgs/applications/video/mpv/scripts/convert.patch
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2017-08-31 01:21:15 +0200
committerProfpatsch <mail@profpatsch.de>2017-08-31 01:23:11 +0200
commitb35972b3fa4e844accc01a87b5b8d1e6676d16bd (patch)
treec2af1b2174ac021be384b956e496021123b1941c /pkgs/applications/video/mpv/scripts/convert.patch
parent11753b3273ac492a4efdd44ae98f1969f554b126 (diff)
mpvScripts.convert: fix for mpv >0.26.0
See https://gist.github.com/Zehkul/25ea7ae77b30af959be0#gistcomment-2189556
Diffstat (limited to 'pkgs/applications/video/mpv/scripts/convert.patch')
-rw-r--r--pkgs/applications/video/mpv/scripts/convert.patch15
1 files changed, 15 insertions, 0 deletions
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 '