Compare commits

...

3 Commits

Author SHA1 Message Date
acgnhik
2b0537086e release: 1.8.1 2022-07-20 18:52:13 +08:00
acgnhik
a4d61c1f29 fix: fix bug 2022-07-20 15:41:35 +08:00
acgnhik
17ea3ffc04 release: 1.8.0
close #55
close #57
close #60
solve #64
solve #67
solve #73
solve #84
fix #92
2022-07-17 16:41:32 +08:00
3 changed files with 20 additions and 4 deletions

View File

@@ -1,5 +1,21 @@
# 更新日志
## 1.8.1
修 bug
## 1.8.0
- 重构直播流录制
- 重构弹幕客户端
- 修复了一些 bug
- 优先使用 web api
- 添加直播流时间相关元数据
- 支持 Liquid 模板自定义通知消息
- 同一时间只处理一个录播文件
- 流录制中断重新调整弹幕时间
- 对流主机进行排序
## 1.8.0-alpha.5
- 流录制中断重新调整弹幕时间

View File

@@ -1,3 +1,3 @@
__prog__ = 'blrec'
__version__ = '1.8.0-alpha.5'
__version__ = '1.8.1'
__github__ = 'https://github.com/acgnhiki/blrec'

View File

@@ -77,19 +77,19 @@ def fix() -> Callable[[FLVStream], FLVStream]:
def update_delta(tag: FlvTag) -> None:
nonlocal delta
assert last_tag is not None
assert last_video_tag is not None
assert last_audio_tag is not None
if is_video_tag(tag):
assert last_video_tag is not None
delta = (
last_video_tag.timestamp - tag.timestamp + video_frame_interval
)
elif is_audio_tag(tag):
assert last_audio_tag is not None
delta = (
last_audio_tag.timestamp - tag.timestamp + sound_sample_interval
)
assert last_tag is not None
if tag.timestamp + delta <= last_tag.timestamp:
if is_video_tag(tag):
delta = (