LifeActor / ykdl

a video downloader focus on China mainland video sites.(一款专注于中国大陆视频网站的视频下载器。)
https://github.com/LifeActor/ykdl
Other
1.45k stars 285 forks source link

[bililive] Thread message queue blocking; consider raising the thread_queue_size option (current value: 1) #611

Closed cherinyy closed 2 years ago

cherinyy commented 2 years ago

在提交前,请确保您已经检查了以下内容!

请将错误输出粘贴在下面:

ykdl --debug https://live.bilibili.com/3
DEBUG:ykdl.util.http:Add <urllib.request.ProxyHandler object at 0x00000247FCF00BB0> to default handlers
DEBUG:ykdl.common:host> live.bilibili.com
DEBUG:ykdl.common:short_name> bilibili
DEBUG:ykdl.util.http:Add <urllib.request.HTTPCookieProcessor object at 0x00000247FEE4DF00> to default handlers
DEBUG:ykdl.util.http:get_response> URL: https://api.live.bilibili.com/room/v1/Room/room_init?id=3
DEBUG:ykdl.util.http:parse JSON from 'https://api.live.bilibili.com/room/v1/Room/room_init?id=3':
{"code":0,"msg":"ok","message":"ok","data":{"room_id":23058,"short_id":3,"uid":11153765,"need_p2p":0,"is_hidden":false,"is_locked":false,"is_portrait":false,"live_status":1,"hidden_till":0,"lock_till":0,"encrypted":false,"pwd_verified":false,"live_time":1642502066,"room_shield":1,"is_sp":0,"special_type":0}}
DEBUG:ykdl.util.http:get_response> URL: https://api.live.bilibili.com/room/v1/Room/get_status_info_by_uids?uids%5B%5D=11153765
DEBUG:ykdl.util.http:parse JSON from 'https://api.live.bilibili.com/room/v1/Room/get_status_info_by_uids?uids%5B%5D=11153765':
{"code":0,"msg":"success","message":"success","data":{"11153765":{"title":"哔哩哔哩音悦台","room_id":23058,"uid":11153765,"online":2865,"live_time":1642502066,"live_status":1,"short_id":3,"area":10,"area_name":"唱见舞见","area_v2_id":190,"area_v2_name":"唱见电台","area_v2_parent_name":"电台","area_v2_parent_id":5,"uname":"3号直播间","face":"https://i2.hdslb.com/bfs/face/5d35da6e93fbfb1a77ad6d1f1004b08413913f9a.jpg","tag_name":"唱见,舞见,奏见","tags":"","cover_from_user":"","keyframe":"https://i0.hdslb.com/bfs/live-key-frame/keyframe08192326000000023058vpns2j.jpg","lock_till":"0000-00-00 00:00:00","hidden_till":"0000-00-00 00:00:00","broadcast_type":0}}}
DEBUG:ykdl.util.http:get_response> URL: https://api.live.bilibili.com/xlive/web-room/v2/index/getRoomPlayInfo?room_id=23058&protocol=0%2C1&format=0%2C1%2C2&codec=0%2C1&qn=1&platform=web&ptype=8&dolby=5
DEBUG:ykdl.util.http:parse JSON from 'https://api.live.bilibili.com/xlive/web-room/v2/index/getRoomPlayInfo?room_id=23058&protocol=0%2C1&format=0%2C1%2C2&codec=0%2C1&qn=1&platform=web&ptype=8&dolby=5':
{"code":0,"message":"0","ttl":1,"data":{"room_id":23058,"short_id":3,"uid":11153765,"is_hidden":false,"is_locked":false,"is_portrait":false,"live_status":1,"hidden_till":0,"lock_till":0,"encrypted":false,"pwd_verified":true,"live_time":1642502066,"room_shield":1,"all_special_types":[],"playurl_info":{"conf_json":"{\"cdn_rate\":10000,\"report_interval_sec\":150}","playurl":{"cid":23058,"g_qn_desc":[{"qn":30000,"desc":"杜比","hdr_desc":""},{"qn":20000,"desc":"4K","hdr_desc":""},{"qn":10000,"desc":"原画","hdr_desc":""},{"qn":400,"desc":"蓝光","hdr_desc":"HDR"},{"qn":250,"desc":"超清","hdr_desc":"HDR"},{"qn":150,"desc":"高清","hdr_desc":""},{"qn":80,"desc":"流畅","hdr_desc":""}],"stream":[{"protocol_name":"http_stream","format":[{"format_name":"flv","codec":[{"codec_name":"avc","current_qn":150,"accept_qn":[10000,250,150],"base_url":"/live-bvc/872497/live_11153765_9369560_1500.flv?","url_info":[{"host":"https://xy117x29x81x119xy.mcdn.bilivideo.cn:486","extra":"expires=1660926522\u0026len=0\u0026oi=1033019756\u0026pt=web\u0026qn=1\u0026trid=100019a18ff527ac40dea2f54d05e5079d6f\u0026sigparams=cdn,expires,len,oi,pt,qn,trid\u0026cdn=cn-live-mcdn\u0026sign=513d02d731c7b997cca5ed3559553b42\u0026sk=2935686d6cb9146c7a6a6a0b4e120e250342be3df4dc8310261aab0ce9e21e44\u0026p2p_type=1\u0026src=57345\u0026sl=1\u0026free_type=0\u0026sid=mcdn-kpy-fjnp-ct-11000221\u0026chash=1\u0026sche=ban\u0026usgroup=eg\u0026pp=rtmp\u0026machinezone=ylf\u0026source=onetier\u0026site=4fe1074a418801a194715c1efc419723\u0026order=1","stream_ttl":3600},{"host":"https://cn-gddg-ct-01-21.bilivideo.com","extra":"expires=1660926522\u0026pt=web\u0026deadline=1660926522\u0026len=0\u0026oi=1033019756\u0026platform=web\u0026qn=1\u0026trid=100019a18ff527ac40dea2f54d05e5079d6f\u0026uipk=100\u0026uipv=100\u0026nbs=1\u0026uparams=cdn,deadline,len,oi,platform,qn,trid,uipk,uipv,nbs\u0026cdn=cn-gotcha01\u0026upsig=cad922e93f9b8fd2aab303756bf991b7\u0026sk=2935686d6cb9146c7a6a6a0b4e120e250342be3df4dc8310261aab0ce9e21e44\u0026p2p_type=1\u0026src=57345\u0026sl=1\u0026free_type=0\u0026sid=cn-gddg-ct-01-21\u0026chash=1\u0026sche=ban\u0026usgroup=eg\u0026pp=rtmp\u0026machinezone=ylf\u0026source=onetier\u0026site=4fe1074a418801a194715c1efc419723\u0026order=2","stream_ttl":3600}],"hdr_qn":null,"dolby_type":0,"attr_name":""}]}]},{"protocol_name":"http_hls","format":[{"format_name":"ts","codec":[{"codec_name":"avc","current_qn":150,"accept_qn":[10000,250,150],"base_url":"/live-bvc/872497/live_11153765_9369560_1500.m3u8?","url_info":[{"host":"https://cn-gddg-ct-01-21.bilivideo.com","extra":"expires=1660926522\u0026len=0\u0026oi=1033019756\u0026pt=web\u0026qn=1\u0026trid=100319a18ff527ac40dea2f54d05e5079d6f\u0026sigparams=cdn,expires,len,oi,pt,qn,trid\u0026cdn=cn-gotcha01\u0026sign=ed4d3a6c466aba3b2573027bd1342965\u0026sk=2935686d6cb9146c7a6a6a0b4e120e250342be3df4dc8310261aab0ce9e21e44\u0026p2p_type=1\u0026src=57345\u0026sl=1\u0026free_type=0\u0026sid=cn-gddg-ct-01-21\u0026chash=0\u0026sche=ban\u0026pp=rtmp\u0026machinezone=ylf\u0026source=onetier\u0026site=4fe1074a418801a194715c1efc419723\u0026order=1","stream_ttl":3600}],"hdr_qn":null,"dolby_type":0,"attr_name":""}]},{"format_name":"fmp4","codec":[{"codec_name":"avc","current_qn":150,"accept_qn":[10000,250,150],"base_url":"/live-bvc/872497/live_11153765_9369560_1500/index.m3u8?","url_info":[{"host":"https://c1--cn-gotcha208.bilivideo.com","extra":"expires=1660926522\u0026len=0\u0026oi=1033019756\u0026pt=web\u0026qn=1\u0026trid=100719a18ff527ac40dea2f54d05e5079d6f\u0026sigparams=cdn,expires,len,oi,pt,qn,trid\u0026cdn=cn-gotcha208\u0026sign=dcc762c47ef4d2841c31a6e81aa0e27d\u0026sk=c9c6154426932efa80d25af02e87a3bd\u0026p2p_type=1\u0026src=57345\u0026sl=1\u0026free_type=0\u0026pp=rtmp\u0026machinezone=ylf\u0026source=onetier\u0026site=4fe1074a418801a194715c1efc419723\u0026order=1","stream_ttl":3600}],"hdr_qn":null,"dolby_type":0,"attr_name":""}]}]}],"p2p_data":{"p2p":true,"p2p_type":1,"m_p2p":true,"m_servers":["https://xy117x29x81x119xy.mcdn.bilivideo.cn:486"]},"dolby_qn":null}}}}
DEBUG:Bilibili live (哔哩哔哩直播):skip stream: [ http_hls fmp4 avc ]
DEBUG:ykdl.util.http:get_response> URL: https://api.live.bilibili.com/xlive/web-room/v2/index/getRoomPlayInfo?room_id=23058&protocol=0%2C1&format=0%2C1%2C2&codec=0%2C1&qn=10000&platform=web&ptype=8&dolby=5
DEBUG:ykdl.util.http:parse JSON from 'https://api.live.bilibili.com/xlive/web-room/v2/index/getRoomPlayInfo?room_id=23058&protocol=0%2C1&format=0%2C1%2C2&codec=0%2C1&qn=10000&platform=web&ptype=8&dolby=5':
{"code":0,"message":"0","ttl":1,"data":{"room_id":23058,"short_id":3,"uid":11153765,"is_hidden":false,"is_locked":false,"is_portrait":false,"live_status":1,"hidden_till":0,"lock_till":0,"encrypted":false,"pwd_verified":true,"live_time":1642502066,"room_shield":1,"all_special_types":[],"playurl_info":{"conf_json":"{\"cdn_rate\":10000,\"report_interval_sec\":150}","playurl":{"cid":23058,"g_qn_desc":[{"qn":30000,"desc":"杜比","hdr_desc":""},{"qn":20000,"desc":"4K","hdr_desc":""},{"qn":10000,"desc":"原画","hdr_desc":""},{"qn":400,"desc":"蓝光","hdr_desc":"HDR"},{"qn":250,"desc":"超清","hdr_desc":"HDR"},{"qn":150,"desc":"高清","hdr_desc":""},{"qn":80,"desc":"流畅","hdr_desc":""}],"stream":[{"protocol_name":"http_stream","format":[{"format_name":"flv","codec":[{"codec_name":"avc","current_qn":10000,"accept_qn":[10000,250,150],"base_url":"/live-bvc/308359/live_11153765_9369560.flv?","url_info":[{"host":"https://xy117x29x81x111xy.mcdn.bilivideo.cn:486","extra":"expires=1660926523\u0026len=0\u0026oi=1033019756\u0026pt=web\u0026qn=10000\u0026trid=1000a61032ba0e104cf6a6764c4ea7ad23b3\u0026sigparams=cdn,expires,len,oi,pt,qn,trid\u0026cdn=cn-live-mcdn\u0026sign=d5fa71e4c08e59d9d576fe7ace1c4aa5\u0026sk=7157c68cc1d15de506d88789910d23c6\u0026p2p_type=1\u0026src=57345\u0026sl=1\u0026free_type=0\u0026sid=mcdn-kpy-fjnp-ct-11000219\u0026chash=1\u0026sche=ban\u0026usgroup=eg\u0026pp=rtmp\u0026machinezone=jd\u0026source=onetier\u0026site=b3c43e50393695a17be488fc2ec280bc\u0026order=1","stream_ttl":3600},{"host":"https://cn-gddg-ct-01-17.bilivideo.com","extra":"expires=1660926523\u0026pt=web\u0026deadline=1660926523\u0026len=0\u0026oi=1033019756\u0026platform=web\u0026qn=10000\u0026trid=1000a61032ba0e104cf6a6764c4ea7ad23b3\u0026uipk=100\u0026uipv=100\u0026nbs=1\u0026uparams=cdn,deadline,len,oi,platform,qn,trid,uipk,uipv,nbs\u0026cdn=cn-gotcha01\u0026upsig=ad665d830ab41372a79b84f8979ff2c7\u0026sk=7157c68cc1d15de506d88789910d23c6\u0026p2p_type=1\u0026src=57345\u0026sl=1\u0026free_type=0\u0026sid=cn-gddg-ct-01-17\u0026chash=1\u0026sche=ban\u0026usgroup=eg\u0026pp=rtmp\u0026machinezone=jd\u0026source=onetier\u0026site=b3c43e50393695a17be488fc2ec280bc\u0026order=2","stream_ttl":3600}],"hdr_qn":null,"dolby_type":0,"attr_name":""}]}]},{"protocol_name":"http_hls","format":[{"format_name":"ts","codec":[{"codec_name":"avc","current_qn":10000,"accept_qn":[10000,250,150],"base_url":"/live-bvc/308359/live_11153765_9369560.m3u8?","url_info":[{"host":"https://cn-gddg-ct-01-17.bilivideo.com","extra":"expires=1660926523\u0026len=0\u0026oi=1033019756\u0026pt=web\u0026qn=10000\u0026trid=1003a61032ba0e104cf6a6764c4ea7ad23b3\u0026sigparams=cdn,expires,len,oi,pt,qn,trid\u0026cdn=cn-gotcha01\u0026sign=d956385dc5054b4b35ba556069e68410\u0026sk=7157c68cc1d15de506d88789910d23c6\u0026p2p_type=1\u0026src=57345\u0026sl=1\u0026free_type=0\u0026sid=cn-gddg-ct-01-17\u0026chash=0\u0026sche=ban\u0026pp=rtmp\u0026machinezone=jd\u0026source=onetier\u0026site=b3c43e50393695a17be488fc2ec280bc\u0026order=1","stream_ttl":3600}],"hdr_qn":null,"dolby_type":0,"attr_name":""}]},{"format_name":"fmp4","codec":[{"codec_name":"avc","current_qn":10000,"accept_qn":[10000,250,150],"base_url":"/live-bvc/308359/live_11153765_9369560/index.m3u8?","url_info":[{"host":"https://c1--cn-gotcha208.bilivideo.com","extra":"expires=1660926523\u0026len=0\u0026oi=1033019756\u0026pt=web\u0026qn=10000\u0026trid=1007a61032ba0e104cf6a6764c4ea7ad23b3\u0026sigparams=cdn,expires,len,oi,pt,qn,trid\u0026cdn=cn-gotcha208\u0026sign=2765bd69ec596175071ab7575c45b596\u0026sk=b6d31467757b52e3986ee5f57e6e0c65\u0026p2p_type=1\u0026src=57345\u0026sl=1\u0026free_type=0\u0026pp=rtmp\u0026machinezone=jd\u0026source=onetier\u0026site=b3c43e50393695a17be488fc2ec280bc\u0026order=1","stream_ttl":3600}],"hdr_qn":null,"dolby_type":0,"attr_name":""}]}]}],"p2p_data":{"p2p":true,"p2p_type":1,"m_p2p":true,"m_servers":["https://xy117x29x81x111xy.mcdn.bilivideo.cn:486"]},"dolby_qn":null}}}}
DEBUG:Bilibili live (哔哩哔哩直播):skip stream: [ http_hls fmp4 avc ]
DEBUG:ykdl.util.http:get_response> URL: https://api.live.bilibili.com/xlive/web-room/v2/index/getRoomPlayInfo?room_id=23058&protocol=0%2C1&format=0%2C1%2C2&codec=0%2C1&qn=250&platform=web&ptype=8&dolby=5
DEBUG:ykdl.util.http:parse JSON from 'https://api.live.bilibili.com/xlive/web-room/v2/index/getRoomPlayInfo?room_id=23058&protocol=0%2C1&format=0%2C1%2C2&codec=0%2C1&qn=250&platform=web&ptype=8&dolby=5':
{"code":0,"message":"0","ttl":1,"data":{"room_id":23058,"short_id":3,"uid":11153765,"is_hidden":false,"is_locked":false,"is_portrait":false,"live_status":1,"hidden_till":0,"lock_till":0,"encrypted":false,"pwd_verified":true,"live_time":1642502066,"room_shield":1,"all_special_types":[],"playurl_info":{"conf_json":"{\"cdn_rate\":10000,\"report_interval_sec\":150}","playurl":{"cid":23058,"g_qn_desc":[{"qn":30000,"desc":"杜比","hdr_desc":""},{"qn":20000,"desc":"4K","hdr_desc":""},{"qn":10000,"desc":"原画","hdr_desc":""},{"qn":400,"desc":"蓝光","hdr_desc":"HDR"},{"qn":250,"desc":"超清","hdr_desc":"HDR"},{"qn":150,"desc":"高清","hdr_desc":""},{"qn":80,"desc":"流畅","hdr_desc":""}],"stream":[{"protocol_name":"http_stream","format":[{"format_name":"flv","codec":[{"codec_name":"avc","current_qn":250,"accept_qn":[10000,250,150],"base_url":"/live-bvc/281818/live_11153765_9369560_2500.flv?","url_info":[{"host":"https://xy117x29x81x115xy.mcdn.bilivideo.cn:486","extra":"expires=1660926523\u0026len=0\u0026oi=1033019756\u0026pt=web\u0026qn=250\u0026trid=100096e9b6904fbf48baa501af225a438b8d\u0026sigparams=cdn,expires,len,oi,pt,qn,trid\u0026cdn=cn-live-mcdn\u0026sign=48d4f4e2c73ef2d7d2e55444a938c9c3\u0026sk=2935686d6cb9146c7a6a6a0b4e120e250342be3df4dc8310261aab0ce9e21e44\u0026p2p_type=1\u0026src=57345\u0026sl=1\u0026free_type=0\u0026sid=mcdn-kpy-fjnp-ct-11000224\u0026chash=1\u0026sche=ban\u0026pp=rtmp\u0026machinezone=ylf\u0026source=onetier\u0026site=b3c43e50393695a17be488fc2ec280bc\u0026order=1","stream_ttl":3600},{"host":"https://cn-gddg-ct-01-16.bilivideo.com","extra":"expires=1660926523\u0026len=0\u0026oi=1033019756\u0026pt=web\u0026qn=250\u0026trid=100096e9b6904fbf48baa501af225a438b8d\u0026sigparams=cdn,expires,len,oi,pt,qn,trid\u0026cdn=cn-gotcha01\u0026sign=1d43204da252ee98f426da9b58d92a11\u0026sk=2935686d6cb9146c7a6a6a0b4e120e250342be3df4dc8310261aab0ce9e21e44\u0026p2p_type=1\u0026src=57345\u0026sl=1\u0026free_type=0\u0026sid=cn-gddg-ct-01-16\u0026chash=1\u0026sche=ban\u0026pp=rtmp\u0026machinezone=ylf\u0026source=onetier\u0026site=b3c43e50393695a17be488fc2ec280bc\u0026order=2","stream_ttl":3600}],"hdr_qn":null,"dolby_type":0,"attr_name":""}]}]},{"protocol_name":"http_hls","format":[{"format_name":"ts","codec":[{"codec_name":"avc","current_qn":250,"accept_qn":[10000,250,150],"base_url":"/live-bvc/281818/live_11153765_9369560_2500.m3u8?","url_info":[{"host":"https://cn-gddg-ct-01-16.bilivideo.com","extra":"expires=1660926523\u0026len=0\u0026oi=1033019756\u0026pt=web\u0026qn=250\u0026trid=100396e9b6904fbf48baa501af225a438b8d\u0026sigparams=cdn,expires,len,oi,pt,qn,trid\u0026cdn=cn-gotcha01\u0026sign=8d0c68721063c246aa5e740e16da8136\u0026sk=2935686d6cb9146c7a6a6a0b4e120e250342be3df4dc8310261aab0ce9e21e44\u0026p2p_type=1\u0026src=57345\u0026sl=1\u0026free_type=0\u0026sid=cn-gddg-ct-01-16\u0026chash=0\u0026sche=ban\u0026pp=rtmp\u0026machinezone=ylf\u0026source=onetier\u0026site=b3c43e50393695a17be488fc2ec280bc\u0026order=1","stream_ttl":3600}],"hdr_qn":null,"dolby_type":0,"attr_name":""}]},{"format_name":"fmp4","codec":[{"codec_name":"avc","current_qn":250,"accept_qn":[10000,250,150],"base_url":"/live-bvc/281818/live_11153765_9369560_2500/index.m3u8?","url_info":[{"host":"https://c1--cn-gotcha208.bilivideo.com","extra":"expires=1660926523\u0026len=0\u0026oi=1033019756\u0026pt=web\u0026qn=250\u0026trid=100796e9b6904fbf48baa501af225a438b8d\u0026sigparams=cdn,expires,len,oi,pt,qn,trid\u0026cdn=cn-gotcha208\u0026sign=81e54a13b559789969782e868405c9f4\u0026sk=c9c6154426932efa80d25af02e87a3bd\u0026p2p_type=1\u0026src=57345\u0026sl=1\u0026free_type=0\u0026pp=rtmp\u0026machinezone=ylf\u0026source=onetier\u0026site=b3c43e50393695a17be488fc2ec280bc\u0026order=1","stream_ttl":3600}],"hdr_qn":null,"dolby_type":0,"attr_name":""}]}]}],"p2p_data":{"p2p":true,"p2p_type":1,"m_p2p":true,"m_servers":["https://xy117x29x81x115xy.mcdn.bilivideo.cn:486"]},"dolby_qn":null}}}}
DEBUG:Bilibili live (哔哩哔哩直播):skip stream: [ http_hls fmp4 avc ]
site:                 Bilibili live (哔哩哔哩直播)
title:                哔哩哔哩音悦台 - 3号直播间
comments:             唱见,舞见,奏见
streams:
    - format:         OG
      container:      flv
      video-profile:  原画
    # download-with:  ykdl --format=OG [URL]

Now downloading: 哔哩哔哩音悦台 - 3号直播间_OG_2022-08-19T23꞉27꞉43.flv
WARNING:ykdl.util.external:
=================================
  stop downloading by press 'q'
=================================

Input #0, flv, from 'https://cn-gddg-ct-01-17.bilivideo.com/live-bvc/308359/live_11153765_9369560.flv?expires=1660926523&pt=web&deadline=1660926523&len=0&oi=1033019756&platform=web&qn=10000&trid=1000a61032ba0e104cf6a6764c4ea7ad23b3&uipk=100&uipv=100&nbs=1&uparams=cdn,deadline,len,oi,platform,qn,trid,uipk,uipv,nbs&cdn=cn-gotcha01&upsig=ad665d830ab41372a79b84f8979ff2c7&sk=7157c68cc1d15de506d88789910d23c6&p2p_type=1&src=57345&sl=1&free_type=0&sid=cn-gddg-ct-01-17&chash=1&sche=ban&usgroup=eg&pp=rtmp&machinezone=jd&source=onetier&site=b3c43e50393695a17be488fc2ec280bc&order=2':
  Metadata:
    Rawdata         :
    displayWidth    : 1920
    displayHeight   : 1080
    fps             : 60
    profile         :
    level           :
    encoder         : Lavf58.29.100
    server          : BSRS/1.4.4(Sco)
    server_version  : 1.4.4
  Duration: N/A, start: 0.029000, bitrate: 2319 kb/s
  Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1080, 1999 kb/s, 60 fps, 60 tbr, 1k tbn
  Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp, 319 kb/s
Output #0, flv, to '哔哩哔哩音悦台 - 3号直播间_OG_2022-08-19T23꞉27꞉43.flv':
  Metadata:
    Rawdata         :
    displayWidth    : 1920
    displayHeight   : 1080
    fps             : 60
    profile         :
    level           :
    server_version  : 1.4.4
    server          : BSRS/1.4.4(Sco)
    encoder         : Lavf59.30.100
  Stream #0:0: Video: h264 (High) ([7][0][0][0] / 0x0007), yuv420p(progressive), 1920x1080, q=2-31, 1999 kb/s, 60 fps, 60 tbr, 1k tbn
  Stream #0:1: Audio: aac (LC) ([10][0][0][0] / 0x000A), 44100 Hz, stereo, fltp, 319 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[flv @ 000001cee1724000] Thread message queue blocking; consider raising the thread_queue_size option (current value: 1)
frame=   94 fps= 61 q=-1.0 size=     256kB time=00:00:01.53 bitrate=1368.0kbits/s speed=   1x

[q] command received. Exiting.

frame=  104 fps= 60 q=-1.0 Lsize=     365kB time=00:00:01.69 bitrate=1764.8kbits/s speed=0.971x
video:294kB audio:67kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.052927%

如果你有其他附言,例如问题只在某个视频发生,或者是一般性讨论或者提出新功能,请在下面添加:

https://www.gyan.dev/ffmpeg/builds/packages/ffmpeg-2022-08-18-git-48be6616d0-full_build.7z

ffmpeg -version
ffmpeg version 2022-08-18-git-48be6616d0-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 12.1.0 (Rev2, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil      57. 33.101 / 57. 33.101
libavcodec     59. 42.101 / 59. 42.101
libavformat    59. 30.100 / 59. 30.100
libavdevice    59.  8.101 / 59.  8.101
libavfilter     8. 46.103 /  8. 46.103
libswscale      6.  8.102 /  6.  8.102
libswresample   4.  8.100 /  4.  8.100
libpostproc    56.  7.100 / 56.  7.100
SeaHOH commented 2 years ago

我搜索了相关内容,似乎推流、网络、录制参数,都可能影响并导致 thread message queue blocking。 而且还看到有人说设置为 512 后导致丢帧 (可能是特例),也有很多设置成 1024、4096 的,但没说效果如何。

我测试了自用的 FFmpeg,不加此参数没有出现警告,加了反而有。 然后添加参数并依次翻倍数值测试,到 128 就没有警告了,试过 gyan 的版本同样是这个数值警告消失。

我对 FFmpeg 了解很少,并不清楚是否应该添加此参数。

ffmpeg version 5.1 Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 12.1.1 (GCC with MCF thread model, built by LH_Mouse) 20220707
configuration: prefix=/opt --target-os=mingw32 --arch=x86_64 --disable-debug --disable-doc --enable-gpl --enable-version3 --enable-nonfree --enable-zlib --pkg-config-flags=--static --disable-ffplay --disable-ffprobe --disable-avdevice --enable-shared --disable-pthreads --enable-w32threads --extra-libs=-lssp --disable-mediafoundation --enable-libmp3lame --enable-libvorbis --enable-libopus --disable-decoder=libvorbis --disable-decoder=libopus --disable-encoder=opus --disable-encoder=vorbis --enable-vapoursynth
libavutil      57. 28.100 / 57. 28.100
libavcodec     59. 37.100 / 59. 37.100
libavformat    59. 27.100 / 59. 27.100
libavfilter     8. 44.100 /  8. 44.100
libswscale      6.  7.100 /  6.  7.100
libswresample   4.  7.100 /  4.  7.100
libpostproc    56.  6.100 / 56.  6.100
cherinyy commented 2 years ago

那就先不管好了🤔