From 90de5bf12979b1f6334372a7a575bebb91fe35dc Mon Sep 17 00:00:00 2001 From: Ren Tatsumoto Date: Wed, 14 Apr 2021 19:11:15 +0300 Subject: [PATCH] use ytdl format --- videoclip.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/videoclip.lua b/videoclip.lua index d076ace..8d30836 100644 --- a/videoclip.lua +++ b/videoclip.lua @@ -176,6 +176,7 @@ encoder.create_videoclip = function(clip_filename) table.concat { '--ovcopts-add=crf=', config.video_quality }, table.concat { '--ovcopts-add=preset=', config.preset }, table.concat { '--vf-add=scale=', config.video_width, ':', config.video_height }, + table.concat { '--ytdl-format=', mp.get_property("ytdl-format") }, table.concat { '-o=', clip_path } } end @@ -199,6 +200,7 @@ encoder.create_audioclip = function(clip_filename) 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 { '--ytdl-format=', mp.get_property("ytdl-format") }, table.concat { '-o=', clip_path } } end