acgnhiki / blrec

Bilibili Live Streaming Recorder 哔哩哔哩直播录制
GNU General Public License v3.0
572 stars 39 forks source link

当主播快速上下播时,录播片段出现几分钟重复 #142

Open mylolis opened 1 year ago

mylolis commented 1 year ago

主播在21:17:30左右快速进行了下播和上播的操作,第一份录播文件没问题,而重新上播后的录制文件出现片段缺失(前面几分钟被上一次直播的内容替换)

[2022-12-11 21:17:34,830] [DEBUG] [stream_recorder_impl] [] Starting stream recorder... [2022-12-11 21:17:34,830] [DEBUG] [metadata_dumper] [] Enabled metadata dumper [2022-12-11 21:17:34,834] [DEBUG] [stream_recorder_impl] [] Started stream recorder [2022-12-11 21:17:34,834] [DEBUG] [live_monitor] [] Number of sequential LIVE status: 2 [2022-12-11 21:17:34,835] [INFO] [stream_url_resolver] [] Getting the live stream url... qn: 10000, format: fmp4, api platform: web, use alternative stream: False [2022-12-11 21:17:34,963] [WARNING] [stream_url_resolver] [] Failed to get live stream url: NoStreamFormatAvailable('fmp4', 'avc', 10000) [2022-12-11 21:17:35,965] [INFO] [stream_url_resolver] [] Getting the live stream url... qn: 10000, format: fmp4, api platform: web, use alternative stream: False [2022-12-11 21:17:36,115] [INFO] [stream_url_resolver] [] Got live stream url: 'https://d1--cn-gotcha208.bilivideo.com/live-bvc/922949/live_434334701_22108373/index.m3u8?expires=1670768316&len=0&oi=1882211938&pt=web&qn=10000&trid=10075895b2628c8844458884e055a1ec774b&sigparams=cdn,expires,len,oi,pt,qn,trid&cdn=cn-gotcha208&sign=d5f831e316112dbf6d3f871b7d37caf3&sk=c9c6154426932efa80d25af02e87a3bd&p2p_type=1&src=57345&sl=2&free_type=0&pp=rtmp&machinezone=ylf&source=onetier&trace=0&site=6de7adf97af0423fb3529efef75ac9a1&order=1' [2022-12-11 21:17:36,116] [INFO] [playlist_fetcher] [21452505] Fetching playlist... https://d1--cn-gotcha208.bilivideo.com/live-bvc/922949/live_434334701_22108373/index.m3u8?expires=1670768316&len=0&oi=1882211938&pt=web&qn=10000&trid=10075895b2628c8844458884e055a1ec774b&sigparams=cdn,expires,len,oi,pt,qn,trid&cdn=cn-gotcha208&sign=d5f831e316112dbf6d3f871b7d37caf3&sk=c9c6154426932efa80d25af02e87a3bd&p2p_type=1&src=57345&sl=2&free_type=0&pp=rtmp&machinezone=ylf&source=onetier&trace=0&site=6de7adf97af0423fb3529efef75ac9a1&order=1 [2022-12-11 21:17:37,282] [DEBUG] [segment_fetcher] [] Init section checked: crc32 of previous data: 8fc68bfd, crc32 of current data: 8fc68bfd, init section url: https://d1--cn-gotcha208.bilivideo.com/live-bvc/922949/live_434334701_22108373/h1670764647.m4s

非常多的Segment data corrupted: correct crc32报错,从21:17:34一直到21:18:47。 录制出来的文件从21:17:34到21:18:47的内容变成从21:16:04到21:17:20(上一次下播的时间,主播在21:17:30左右的时候重新进行推流),然后直接跳到21:18:48(缺失了21:17:20到21:18:48的内容),此时的日志显示[2022-12-11 21:18:47,550] [WARNING] [fix] [] Timestamp rebounded, updated delta: 428284

mylolis commented 1 year ago

与#141 似乎是同一个问题