mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-12-22 13:49:48 +00:00
Fix container: universal matroska container for all types media
This commit is contained in:
parent
145dcf904b
commit
f75aa07b15
@ -28,13 +28,13 @@ function make_cache_track(url)
|
|||||||
find_uuid = "%x+-%x+-%x+-%x+-%x+"
|
find_uuid = "%x+-%x+-%x+-%x+-%x+"
|
||||||
uuid = string.sub(url, string.find(url, find_uuid))
|
uuid = string.sub(url, string.find(url, find_uuid))
|
||||||
host = get_url_host(url)
|
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
|
if false == file_exists(cache_path_file) then
|
||||||
createDir('cache/' .. host .. '/')
|
createDir('cache/' .. host .. '/')
|
||||||
msg.verbose('Caching ' .. cache_path_file .. '')
|
msg.verbose('Caching ' .. cache_path_file .. '')
|
||||||
mp.command('script-message streamsave-title ' .. uuid .. '')
|
mp.command('script-message streamsave-title ' .. uuid .. '')
|
||||||
mp.set_property('script-opts/media-uuid', 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-path cache/' .. host .. '')
|
||||||
mp.command('script-message streamsave-rec')
|
mp.command('script-message streamsave-rec')
|
||||||
else
|
else
|
||||||
|
@ -124,7 +124,7 @@ local opts = {
|
|||||||
save_directory = [[.]], -- output file directory
|
save_directory = [[.]], -- output file directory
|
||||||
dump_mode = "continuous", -- <ab|current|continuous>
|
dump_mode = "continuous", -- <ab|current|continuous>
|
||||||
output_label = "overwrite", -- <increment|range|timestamp|overwrite>
|
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
|
force_title = "no", -- <no|title> custom title used for the filename
|
||||||
range_marks = false, -- <yes|no> set chapters at A-B loop points?
|
range_marks = false, -- <yes|no> set chapters at A-B loop points?
|
||||||
autostart = true, -- <yes|no> automatically dump cache at start?
|
autostart = true, -- <yes|no> automatically dump cache at start?
|
||||||
|
Loading…
Reference in New Issue
Block a user