aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArjun Satarkar <me@arjunsatarkar.net>2025-03-01 19:43:42 +0000
committerArjun Satarkar <me@arjunsatarkar.net>2025-03-01 19:43:42 +0000
commit72f436e7fe1a3f2c7c8332e5b16741e1ed62df49 (patch)
treed2ae1a6625b54beccb110610484db33af8ee308d
parent92cb11c5ad1656a41f5fed6c99712150f7d9ce4c (diff)
Add info, rename function
-rw-r--r--README.adoc2
-rw-r--r--mpvclip/main.lua4
2 files changed, 3 insertions, 3 deletions
diff --git a/README.adoc b/README.adoc
index 8634189..cfc3fff 100644
--- a/README.adoc
+++ b/README.adoc
@@ -3,7 +3,7 @@
== Scripts
-* *mpvclip.* Clip sections of video with ffmpeg. Allows choosing CRF/two-pass target size and preset, with sensible defaults.
+* *mpvclip.* Clip sections of video with ffmpeg. Allows choosing CRF/two-pass target size and preset, with sensible defaults. As of 2025-03-01, requires recent mpv git master build.
== Copying
diff --git a/mpvclip/main.lua b/mpvclip/main.lua
index af15c4e..71d499a 100644
--- a/mpvclip/main.lua
+++ b/mpvclip/main.lua
@@ -1,6 +1,6 @@
local input = require "mp.input"
-local function dump(arr)
+local function dump_arr(arr)
local result = ""
for _, v in ipairs(arr) do
result = result .. string.format("%q", v) .. ", "
@@ -46,7 +46,7 @@ local function do_clip(a, b, crf, two_pass_target, sub_track_id, path)
out_path
})
- print(dump(args))
+ print(dump_arr(args))
mp.command_native({ "subprocess", args })
mp.osd_message("mpvclip: wrote clip to " .. out_path)