Open dwjsxwllwr opened 7 months ago
我本地用 node 试了一下,感觉像是替换参数导致的。https://api.live.bilibili.com/xlive/web-room/v2/index/getRoomPlayInfo 这个接口无论 qn 传入什么值,返回的 current_qn 都是 250,也就是超清画质。手动改 base_url 和 extra 之后,最终的 record_url 会无法使用。但是我在网页上手动切换原画画质的时候,控制台中可以看到接口返回的 current_qn 是 10000,不清楚是什么原因。
录制原画出现如下错误
2024-03-23 21:18:38.039 | WARNING | __main__:start_record:1279 - 错误信息: Command '['ffmpeg', '-y', '-v', 'verbose', '-rw_timeout', '30000000', '-loglevel', 'error', '-hide_banner', '-user_agent', 'Mozilla/5.0 (Linux; Android 11; SAMSUNG SM-G973U) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/14.2 Chrome/87.0.4280.141 Mobile Safari/537.36', '-protocol_whitelist', 'rtmp,crypto,file,http,https,tcp,tls,udp,rtp', '-thread_queue_size', '1024', '-analyzeduration', '20000000', '-probesize', '10000000', '-fflags', '+discardcorrupt', '-i', 'https://d1--cn-gotcha101.bilivideo.com/live-bvc/238581/live_313580179_67527297.m3u8?expires=1711203576&len=0&oi=1881591712&pt=web&qn=10000&trid=100380db4494710a4de0a7664cb77e328a64&sigparams=cdn,expires,len,oi,pt,qn,trid&cdn=cn-gotcha01&sign=2c0cdec2adda92a0e1d75854452ad436&sk=4207df3de646838b084f14f252be3affacddc1131b55556afe312ac1012d0357&p2p_type=1&sl=3&free_type=0&mid=3546647342615142&pp=rtmp&source=onetier&trace=40&site=ea98942b184d14bc4b1bab93fb3d63d0&qp=de_0&zoneid_l=151339011&sid_l=live_313580179_67527297_1500&order=1', '-bufsize', '8000k', '-sn', '-dn', '-reconnect_delay_max', '60', '-reconnect_streamed', '-reconnect_at_eof', '-max_muxing_queue_size', '1024', '-correct_ts_overflow', '1', '-c:v', 'copy', '-c:a', 'copy', '-map', '0', '-f', 'segment', '-segment_time', '60', '-segment_format', 'mpegts', '-reset_timestamps', '1', 'Z:/DouyinLiveRecorder-3.0.2/downloads/B站直播/九三的耳朵不是特别好/九三的耳朵不是特别好_2024-03-23_21-18-36_%03d.ts']' returned non-zero exit status 1. 发生错误的行数: 1275