From 6cab381a59448a56b7b888cfdfb8bd06d729726c Mon Sep 17 00:00:00 2001 From: Ren Tatsumoto Date: Fri, 16 Oct 2020 04:42:55 +0300 Subject: [PATCH] inherit volume set in mpv --- videoclip.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/videoclip.lua b/videoclip.lua index 42c6f8c..8f7122a 100644 --- a/videoclip.lua +++ b/videoclip.lua @@ -133,6 +133,7 @@ encoder.create_videoclip = function(clip_filename) table.concat { '--start=', menu.timings['start'] }, table.concat { '--end=', menu.timings['end'] }, table.concat { '--aid=', mp.get_property("aid") }, -- track number + table.concat { '--volume=', mp.get_property('volume') }, table.concat { '--oacopts-add=b=', config.audio_bitrate }, table.concat { '--ovcopts-add=crf=', config.video_quality }, table.concat { '--ovcopts-add=preset=', config.preset }, @@ -157,6 +158,7 @@ encoder.create_audioclip = function(clip_filename) '--oacopts-add=compression_level=10', table.concat { '--start=', menu.timings['start'] }, table.concat { '--end=', menu.timings['end'] }, + table.concat { '--volume=', mp.get_property('volume') }, table.concat { '--aid=', mp.get_property("aid") }, -- track number table.concat { '--oacopts-add=b=', config.audio_bitrate }, table.concat { '-o=', clip_path }