From f8d1154dbb5b8dabb5fe799d7f918a3f96cd2ff2 Mon Sep 17 00:00:00 2001 From: Ren Tatsumoto Date: Sun, 20 Sep 2020 03:23:19 +0300 Subject: [PATCH] check for k at the end of bitrate. otherwise mpv hangs --- videoclip.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/videoclip.lua b/videoclip.lua index d4c79c6..8df3138 100644 --- a/videoclip.lua +++ b/videoclip.lua @@ -330,6 +330,10 @@ if not config.audio_folder_path:endswith('/') then config.audio_folder_path = config.audio_folder_path .. '/' end +if not config.audio_bitrate:endswith('k') then + config.audio_bitrate = config.audio_bitrate .. 'k' +end + ------------------------------------------------------------ -- Finally, set an 'entry point' in mpv