From 30105b19dc6e540d50fbadaeb96410d4495c205e Mon Sep 17 00:00:00 2001 From: john Date: Tue, 23 Jun 2020 21:45:16 -0700 Subject: [PATCH] fix mpv subprocess argument format for mpv 0.32 --- scripts/gallery-thumbgen.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/gallery-thumbgen.lua b/scripts/gallery-thumbgen.lua index 62084b2..af4d41f 100644 --- a/scripts/gallery-thumbgen.lua +++ b/scripts/gallery-thumbgen.lua @@ -180,17 +180,17 @@ function thumbnail_command(input_path, width, height, take_thumbnail_at, output_ if not accurate then add({ "--hr-seek=no"}) end - add({ "--start", take_thumbnail_at }) + add({ "--start="..take_thumbnail_at }) end add({ "--no-config", "--msg-level=all=no", - "--vf", "lavfi=[" .. vf .. ",format=bgra]", - "--audio", "no", - "--sub", "no", - "--frames", "1", - "--image-display-duration", "0", - "--of", "rawvideo", "--ovc", "rawvideo", - "--o", output_path + "--vf=lavfi=[" .. vf .. ",format=bgra]", + "--audio=no", + "--sub=no", + "--frames=1", + "--image-display-duration=0", + "--of=rawvideo", "--ovc=rawvideo", + "--o="..output_path }) end return out