work on time shift - we need some testings for that
This commit is contained in:
parent
d3b134a268
commit
07f0276565
@ -66,6 +66,7 @@ ffmpeg_copy_settings = ["-c", "copy", "-bsf:v", "h264_mp4toannexb", "-threads",
|
|||||||
# time_shift adds or subtract seconds to the clip start,
|
# time_shift adds or subtract seconds to the clip start,
|
||||||
# this is usefull for example for hls, because it have a big delay
|
# this is usefull for example for hls, because it have a big delay
|
||||||
# the value will be added to the clip begin
|
# the value will be added to the clip begin
|
||||||
|
# put 0 if you don't need it
|
||||||
[PLAYLIST]
|
[PLAYLIST]
|
||||||
playlist_path = /playlists
|
playlist_path = /playlists
|
||||||
clips_root = /ADtvMedia
|
clips_root = /ADtvMedia
|
||||||
|
@ -81,7 +81,7 @@ _playlist = SimpleNamespace(
|
|||||||
start=cfg.getint('PLAYLIST', 'day_start'),
|
start=cfg.getint('PLAYLIST', 'day_start'),
|
||||||
filler=cfg.get('PLAYLIST', 'filler_clip'),
|
filler=cfg.get('PLAYLIST', 'filler_clip'),
|
||||||
blackclip=cfg.get('PLAYLIST', 'blackclip'),
|
blackclip=cfg.get('PLAYLIST', 'blackclip'),
|
||||||
shift=cfg.get('PLAYLIST', 'time_shift')
|
shift=cfg.getint('PLAYLIST', 'time_shift')
|
||||||
)
|
)
|
||||||
|
|
||||||
_buffer = SimpleNamespace(
|
_buffer = SimpleNamespace(
|
||||||
@ -563,7 +563,9 @@ def iter_src_commands():
|
|||||||
'Playlist is not valid!', dummy_len, xml_path, last
|
'Playlist is not valid!', dummy_len, xml_path, last
|
||||||
)
|
)
|
||||||
|
|
||||||
begin = get_time('full_sec') + _buffer.length + _buffer.tol
|
begin = get_time(
|
||||||
|
'full_sec'
|
||||||
|
) + _buffer.length + _buffer.tol + _playlist.shift
|
||||||
last = False
|
last = False
|
||||||
dummy_len = 60
|
dummy_len = 60
|
||||||
last_mod_time = 0.0
|
last_mod_time = 0.0
|
||||||
@ -576,7 +578,8 @@ def iter_src_commands():
|
|||||||
'Playlist not exist:', dummy_len, xml_path, last
|
'Playlist not exist:', dummy_len, xml_path, last
|
||||||
)
|
)
|
||||||
|
|
||||||
begin = get_time('full_sec') + _buffer.length + _buffer.tol
|
begin = get_time(
|
||||||
|
'full_sec') + _buffer.length + _buffer.tol + _playlist.shift
|
||||||
last = False
|
last = False
|
||||||
dummy_len = 60
|
dummy_len = 60
|
||||||
last_mod_time = 0.0
|
last_mod_time = 0.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user