hr3lxphr6j / bililive-go

一个直播录制工具

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

虎牙主播更换房间名后导致丢失1KB音频源!

miria0 opened this issue · comments

程序版本

0.7.23

所使用的 config 文件的内容

rpc:
enable: true
bind: 127.0.0.1:8080
debug: true
interval: 20
out_put_path: E:\平台主播
ffmpeg_path: ""
log:
out_put_folder: ./
save_last_log: true
save_every_log: false
feature:
use_native_flv_parser: false
remove_symbol_other_character: false
live_rooms:

  • url: https://www.huya.com/
    is_listening: true
    quality: 0
  • url: https://www.huya.com/
    is_listening: true
    quality: 0
  • url: https://www.huya.com/
    is_listening: true
    quality: 0
    out_put_tmpl: ""
    video_split_strategies:
    on_room_name_changed: false
    max_duration: 0s
    max_file_size: 0
    cookies: {}
    on_record_finished:
    convert_to_mp4: true
    delete_flv_after_convert: true
    custom_commandline: ""
    timeout_in_us: 60000000

程序 log

time="2024-02-29 13:09:49" level=debug msg="Http Request" Method=GET Path=/api/lives RemoteAddr="127.0.0.1:8692"
time="2024-02-29 13:12:49" level=debug msg="Http Request" Method=GET Path=/api/lives RemoteAddr="127.0.0.1:8692"
time="2024-02-29 13:15:49" level=debug msg="Http Request" Method=GET Path=/api/lives RemoteAddr="127.0.0.1:8692"
time="2024-02-29 13:18:49" level=debug msg="Http Request" Method=GET Path=/api/lives RemoteAddr="127.0.0.1:8692"
time="2024-02-29 13:21:49" level=debug msg="Http Request" Method=GET Path=/api/lives RemoteAddr="127.0.0.1:8692"
time="2024-02-29 13:24:49" level=debug msg="Http Request" Method=GET Path=/api/lives RemoteAddr="127.0.0.1:8692"
time="2024-02-29 13:27:49" level=debug msg="Http Request" Method=GET Path=/api/lives RemoteAddr="127.0.0.1:8692"
time="2024-02-29 13:30:49" level=debug msg="Http Request" Method=GET Path=/api/lives RemoteAddr="127.0.0.1:8692"
time="2024-02-29 13:33:49" level=debug msg="Http Request" Method=GET Path=/api/lives RemoteAddr="127.0.0.1:8692"
time="2024-02-29 13:36:49" level=debug msg="Http Request" Method=GET Path=/api/lives RemoteAddr="127.0.0.1:8692"
time="2024-02-29 13:39:49" level=debug msg="Http Request" Method=GET Path=/api/lives RemoteAddr="127.0.0.1:8692"
time="2024-02-29 13:42:49" level=debug msg="Http Request" Method=GET Path=/api/lives RemoteAddr="127.0.0.1:8692"
time="2024-02-29 13:45:49" level=debug msg="Http Request" Method=GET Path=/api/lives RemoteAddr="127.0.0.1:8692"
time="2024-02-29 13:48:49" level=debug msg="Http Request" Method=GET Path=/api/lives RemoteAddr="127.0.0.1:8692"
time="2024-02-29 13:51:49" level=debug msg="Http Request" Method=GET Path=/api/lives RemoteAddr="127.0.0.1:8692"
time="2024-02-29 13:54:49" level=debug msg="Http Request" Method=GET Path=/api/lives RemoteAddr="127.0.0.1:8692"
time="2024-02-29 15:21:23" level=info msg="" host="1" room="复制3!"
time="2024-02-29 15:21:23" level=debug msg="End ParseLiveStream(http://hw.flv.huya.com/src/2368274334-2368274334-10171660812486180864-4736672124-10057-A-0-1-imgplus.flv?ctype=tars_mobile&exsphd=264_500%2C264_2000%2C264_4000%2C&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&fs=bgct&ratio=0&seqid=3114457964758&sphd=264_%2A-265_%2A&sphdDC=huya&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sv=2110211124&t=103&uid=1405274751758&uuid=1414e0eb-c905-4db8-abc3-185b934082e9&ver=1&wsSecret=eeeb373ddbe24af4bc5b379a0be62433&wsTime=65e0654d, E:\平台主播\虎牙\3\[2024-02-29 13-06-53][复制3!].flv)" host="3" room="复制2!"
time="2024-02-29 15:22:04" level=debug msg="Start ParseLiveStream(http://al.flv.huya.com/src/2368274334-2368274334-10171660812486180864-4736672124-10057-A-0-1-imgplus.flv?ctype=tars_mobile&exsphd=264_500%2C264_2000%2C264_4000%2C&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&fs=bgct&ratio=0&seqid=3199878420479&sphd=264_%2A-265_%2A&sphdDC=huya&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sv=2110211124&t=103&uid=1490687096479&uuid=95ac1184-2373-4b79-85b2-e8592cf471fb&ver=1&wsSecret=9cf97c5f768dd611b98e25f1eafbbc05&wsTime=65e084fc, E:\平台主播\虎牙\3\[2024-02-29 15-22-04][复制2!].flv)" host="3" room="复制2!"
time="2024-02-29 15:22:04" level=info msg="exit status 0xcbcfcb08" host="2" room="复制2!"
time="2024-02-29 15:22:04" level=debug msg="End ParseLiveStream(http://al.flv.huya.com/src/2368274334-2368274334-10171660812486180864-4736672124-10057-A-0-1-imgplus.flv?ctype=tars_mobile&exsphd=264_500%2C264_2000%2C264_4000%2C&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&fs=bgct&ratio=0&seqid=3199878420479&sphd=264_%2A-265_%2A&sphdDC=huya&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sv=2110211124&t=103&uid=1490687096479&uuid=95ac1184-2373-4b79-85b2-e8592cf471fb&ver=1&wsSecret=9cf97c5f768dd611b98e25f1eafbbc05&wsTime=65e084fc, E:\平台主播\虎牙\3\[2024-02-29 15-22-04][复制2!].flv)" host="3" room="复制2!"
time="2024-02-29 15:22:05" level=debug msg="exit status 0xffffffd6" host="3" room="复制2!"
time="2024-02-29 15:22:05" level=debug msg="Start ParseLiveStream(http://tx.flv.huya.com/src/2368274334-2368274334-10171660812486180864-4736672124-10057-A-0-1-imgplus.flv?ctype=tars_mobile&exsphd=264_500%2C264_2000%2C264_4000%2C&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&fs=bgct&ratio=0&seqid=3152688789280&sphd=264_%2A-265_%2A&sphdDC=huya&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sv=2110211124&t=103&uid=1443497464280&uuid=d77004b4-3694-4894-a171-8daddbc4b66b&ver=1&wsSecret=095ce79b0923f3f3138034aa298cd18d&wsTime=65e084fd, E:\平台主播\虎牙\3\[2024-02-29 15-22-05][复制2!].flv)" host="3" room="复制2!"
time="2024-02-29 15:22:15" level=info msg="exit status 0xcbcfcb08" host="3" room="复制2!"
time="2024-02-29 15:22:15" level=debug msg="End ParseLiveStream(http://tx.flv.huya.com/src/2368274334-2368274334-10171660812486180864-4736672124-10057-A-0-1-imgplus.flv?ctype=tars_mobile&exsphd=264_500%2C264_2000%2C264_4000%2C&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&fs=bgct&ratio=0&seqid=3152688789280&sphd=264_%2A-265_%2A&sphdDC=huya&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sv=2110211124&t=103&uid=1443497464280&uuid=d77004b4-3694-4894-a171-8daddbc4b66b&ver=1&wsSecret=095ce79b0923f3f3138034aa298cd18d&wsTime=65e084fd, E:\平台主播\虎牙\3\[2024-02-29 15-22-05][复制2!].flv)" host="3" room="复制2!"
time="2024-02-29 15:22:15" level=debug msg="exit status 0xffffffd6" host="3" room="复制2!"
time="2024-02-29 15:22:15" level=warning msg="failed to get stream url, will retry after 5s..." error="streamInfoJsons not found" host="复制2!"
time="2024-02-29 15:22:18" level=info msg="Live end" host="3" room="复制2!"
time="2024-02-29 15:22:18" level=info msg="Record End" host="3" room="复制2!"

自由描述

看了下log。明确知道问题。

正常录制是没有任何问题。

如果主播更改标题。则会出现一系列错误..

如丢失1KB的音频源,这里丢失1KB音频源对于正常视频播放来说没有任何问题。

但是会一旦导入PR后,则会形成音频不同步。因为丢失了这1KB的数据!

photo_2024-02-29_19-21-49