Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2b0537086e | ||
|
|
a4d61c1f29 | ||
|
|
17ea3ffc04 |
16
CHANGELOG.md
16
CHANGELOG.md
@@ -1,5 +1,21 @@
|
||||
# 更新日志
|
||||
|
||||
## 1.8.1
|
||||
|
||||
修 bug
|
||||
|
||||
## 1.8.0
|
||||
|
||||
- 重构直播流录制
|
||||
- 重构弹幕客户端
|
||||
- 修复了一些 bug
|
||||
- 优先使用 web api
|
||||
- 添加直播流时间相关元数据
|
||||
- 支持 Liquid 模板自定义通知消息
|
||||
- 同一时间只处理一个录播文件
|
||||
- 流录制中断重新调整弹幕时间
|
||||
- 对流主机进行排序
|
||||
|
||||
## 1.8.0-alpha.5
|
||||
|
||||
- 流录制中断重新调整弹幕时间
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
__prog__ = 'blrec'
|
||||
__version__ = '1.8.0-alpha.5'
|
||||
__version__ = '1.8.1'
|
||||
__github__ = 'https://github.com/acgnhiki/blrec'
|
||||
|
||||
@@ -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 = (
|
||||
|
||||
Reference in New Issue
Block a user