Fix container: universal matroska container for all types media

This commit is contained in:
localhost_frssoft 2023-03-04 04:23:18 +03:00
parent 145dcf904b
commit f75aa07b15
2 changed files with 3 additions and 3 deletions

View File

@ -28,13 +28,13 @@ function make_cache_track(url)
find_uuid = "%x+-%x+-%x+-%x+-%x+"
uuid = string.sub(url, string.find(url, find_uuid))
host = get_url_host(url)
cache_path_file = 'cache/' .. host .. '/' .. uuid .. '.webm'
cache_path_file = 'cache/' .. host .. '/' .. uuid .. '.mkv'
if false == file_exists(cache_path_file) then
createDir('cache/' .. host .. '/')
msg.verbose('Caching ' .. cache_path_file .. '')
mp.command('script-message streamsave-title ' .. uuid .. '')
mp.set_property('script-opts/media-uuid', uuid)
mp.command('script-message streamsave-extension .webm')
mp.command('script-message streamsave-extension .mkv')
mp.command('script-message streamsave-path cache/' .. host .. '')
mp.command('script-message streamsave-rec')
else

View File

@ -124,7 +124,7 @@ local opts = {
save_directory = [[.]], -- output file directory
dump_mode = "continuous", -- <ab|current|continuous>
output_label = "overwrite", -- <increment|range|timestamp|overwrite>
force_extension = ".webm", -- <no|.ext> extension will be .ext if set
force_extension = ".mkv", -- <no|.ext> extension will be .ext if set
force_title = "no", -- <no|title> custom title used for the filename
range_marks = false, -- <yes|no> set chapters at A-B loop points?
autostart = true, -- <yes|no> automatically dump cache at start?