Refactor stream to create partial segments (#51282)

This commit is contained in:
uvjustin 2021-06-14 00:41:21 +08:00 committed by GitHub
parent 1adeb82930
commit 123e8f01a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 499 additions and 305 deletions

View file

@ -57,7 +57,7 @@ def recorder_save_worker(file_out: str, segments: deque[Segment]):
# Open segment
source = av.open(
BytesIO(segment.init + segment.moof_data),
BytesIO(segment.init + segment.get_bytes_without_init()),
"r",
format=SEGMENT_CONTAINER_FORMAT,
)