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 8 additions and 4 deletions

View File

@@ -1,5 +1,9 @@
# 更新日志
## 1.8.1
修 bug
## 1.8.0
- 重构直播流录制

View File

@@ -1,3 +1,3 @@
__prog__ = 'blrec'
__version__ = '1.8.0'
__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 = (