{"id":467,"date":"2022-01-31T18:59:32","date_gmt":"2022-01-31T10:59:32","guid":{"rendered":"http:\/\/192.168.0.122:8088\/?p=467"},"modified":"2022-06-11T03:07:22","modified_gmt":"2022-06-10T19:07:22","slug":"ffplay%e6%ba%90%e7%a0%81%e5%88%86%e6%9e%90-stream_component_open","status":"publish","type":"post","link":"https:\/\/www.xianwaizhiyin.net\/?p=467","title":{"rendered":"FFplay\u6e90\u7801\u5206\u6790-stream_component_open"},"content":{"rendered":"\n<p>\u672c\u7cfb\u5217 \u4ee5 ffmpeg4.2 \u6e90\u7801\u4e3a\u51c6\uff0c\u4e0b\u8f7d\u5730\u5740\uff1a\u94fe\u63a5\uff1a<a href=\"https:\/\/pan.baidu.com\/s\/1VpUvpLhew-nuq4Dns80mOw\">\u767e\u5ea6\u7f51\u76d8<\/a> \u63d0\u53d6\u7801\uff1ag3k8<\/p>\n\n\n\n<p>FFplay \u6e90\u7801\u5206\u6790\u7cfb\u5217\u4ee5\u4e00\u6761\u7b80\u5355\u7684\u547d\u4ee4\u5f00\u59cb\uff0c<code class=\"prettyprint\" >ffplay -i a.mp4<\/code>\u3002a.mp4\u4e0b\u8f7d\u94fe\u63a5\uff1a<a href=\"https:\/\/pan.baidu.com\/s\/1RN1xRsQDGx65MGyB_T1IzA\">\u767e\u5ea6\u7f51\u76d8<\/a>\uff0c\u63d0\u53d6\u7801\uff1anl0s \u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p>\u4e0a\u4e00\u7bc7\u6587\u7ae0\u5df2\u7ecf\u8bb2\u89e3\u5b8c\u4e86 stream_component_open() \u7684\u903b\u8f91\uff0c\u8fd9\u7bc7\u6587\u7ae0\u4e3b\u8981\u8bb2\u89e3 audio_thread()\uff0c\u97f3\u9891\u89e3\u7801\u7ebf\u7a0b\u7684\u5185\u90e8\u903b\u8f91\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"505\" height=\"729\" src=\"\/wp-content\/uploads\/2022\/01\/ffplay-6-1.png\" alt=\"\" class=\"wp-image-468\"\/><\/figure>\n\n\n\n<p>\u56e0\u4e3a\u89e3\u7801\u7ebf\u7a0b\u91cc\u9762\u6d89\u53ca\u5230\u4e86 struct Decoder\uff0cPacketQueue\uff0cFrameQueue\u7684\u64cd\u4f5c\uff0c\u6240\u4ee5\u5fc5\u987b\u5148\u7b80\u5355\u4ecb\u7ecd\u4e00\u4e0b\u8fd9\u4e9b\u6570\u636e\u7ed3\u6784\u7684\u5173\u7cfb\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2020\" height=\"1354\" src=\"\/wp-content\/uploads\/2022\/01\/ffplay-6-2.png\" alt=\"\" class=\"wp-image-469\"\/><\/figure>\n\n\n\n<p><strong>struct Decoder<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>AVPacket pkt; \u7f13\u5b58\u5305\uff0c\u5728 avcodec_send_packet() \u8fd4\u56de AVERROR(EAGAIN) \u7684\u65f6\u5019\u7528\u7684\uff0c\u56e0\u4e3aAVPacket\u5df2\u7ecf\u4ece\u961f\u5217\u91cc\u9762\u62ff\u51fa\u6765\u4e86\uff0c\u5982\u679csend\u7ed9\u89e3\u7801\u5668\u7684\u65f6\u5019\u5931\u8d25\u4e86\uff0c\u5c31\u9700\u8981\u628a\u62ff\u51fa\u6765\u7684AVPacket\u653e\u5230 Decoder::pkt \u91cc\u9762\uff0c\u8981\u4e0dAVPacket\u5c31\u4f1a\u4e22\u5931\uff0c\u540c\u65f6 packet_pending \u7f6e\u4e3a 1\uff0c\u4e0b\u6b21\u4f18\u5148\u53d6Decoder::pkt \u6765 send\u7ed9\u89e3\u7801\u5668\u3002\u8bf7\u770b\u4ee3\u7801\u3002<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint\" >ffplay.c 668 ~ 672\u884c\nif (avcodec_send_packet(d-&gt;avctx, &amp;pkt) == AVERROR(EAGAIN)) {\n\tav_log(d-&gt;avctx, AV_LOG_ERROR, &quot;Receive_frame and send_packet both returned EAGAIN, which is an API violation.\\n&quot;);\n\td-&gt;packet_pending = 1; \/\/\u6ce8\u610f\u8fd9\u884c\u4ee3\u7801\u3002\n\tav_packet_move_ref(&amp;d-&gt;pkt, &amp;pkt); \/\/\u6ce8\u610f\u8fd9\u884c\u4ee3\u7801\u3002\n}\nffplay.c 637 ~ 647\u884c\ndo {\n    if (d-&gt;queue-&gt;nb_packets == 0)\n       SDL_CondSignal(d-&gt;empty_queue_cond);\n    if (d-&gt;packet_pending) { \/\/\u6ce8\u610f\u8fd9\u884c\u4ee3\u7801\u3002\n       av_packet_move_ref(&amp;pkt, &amp;d-&gt;pkt);\n       d-&gt;packet_pending = 0;\n    } else {\n       if (packet_queue_get(d-&gt;queue, &amp;pkt, 1, &amp;d-&gt;pkt_serial) &lt; 0)\n          return -1;\n    }\n} while (d-&gt;queue-&gt;serial != d-&gt;pkt_serial);<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>PacketQueue *queue; \u961f\u5217\u3002<\/li><li>AVCodecContext *avctx; \u89e3\u7801\u5668\u4e0a\u4e0b\u6587<\/li><li>int pkt_serial; \u89e3\u7801\u5668\u5305\u5e8f\u5217\uff0c\u8fd9\u4e2a\u53d8\u91cf\u662f\u6bcf\u6b21\u4ece\u961f\u5217\u91cc\u9762\u53d6\u51fa\u4e00\u4e2a MyAVPacketList\uff0c\u90fd\u4f1a\u628a pkt_serial \u8bbe\u7f6e\u4e3a MyAVPacketList::serial\uff0c\u53ef\u4ee5\u7406\u89e3\u4e3a\uff0c\u8fd9\u4e2a\u53d8\u91cf\u662f\u6700\u540e\u4e00\u4e2a\u53d1\u9001\u7ed9\u89e3\u7801\u5668\u7684 packet \u7684\u5e8f\u5217\u53f7\u3002<\/li><li>int finished; \u89e3\u7801\u5668\u662f\u5426\u5df2\u7ecf\u6ca1\u6709 AVFrame\u53ef\u4ee5\u8f93\u51fa\u3002\u5728 avcodec_receive_frame() \u8fd4\u56de AVERROR_EOF \u7684\u65f6\u5019\uff0cfinished \u4f1a\u8bbe\u7f6e\u4e3a pkt_serial\uff0c\u5c31\u662f\u8bbe\u7f6e\u4e3a\u6700\u540e\u4e00\u4e2apacket\u7684\u5e8f\u5217\u53f7\u3002<\/li><li>int packet_pending; \u5728 avcodec_send_packet() \u8fd4\u56de AVERROR(EAGAIN) \u7684\u65f6\u5019\u7528\u7684<\/li><li>SDL_cond *empty_queue_cond; empty_queue_cond \u6761\u4ef6\u53d8\u91cf\u5176\u5b9e\u7b49\u4e8e continue_read_thread\uff0c\u8bf7\u770b\u4e0b\u9762\u4ee3\u7801\u3002\u4e0a\u4e00\u7bc7\u6587\u7ae0\u5206\u6790 read_thread() \u7684\u65f6\u5019\uff0cread_thread() \u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4f1a\u4f11\u772010ms\uff0c\u4f8b\u5982\u961f\u5217\u6ee1\u4e86\u6216\u8d85\u8fc7\u6700\u5c0f\u7f13\u5b58size\uff0c\u4f1a\u4f11\u772010ms\uff0c\u5982\u679c\u57285ms\u7684\u65f6\u5019\uff0c\u961f\u5217\u5df2\u7ecf\u88ab\u6d88\u8017\u5b8c\u4e86\uff0c\u6ca1\u6709frame\u53ef\u4ee5\u64ad\u653e\u4e86\uff0c\u90a3\u5c31\u9700\u8981\u5c3d\u5feb\u5524\u9192read_thread() \u7ebf\u7a0b\uff0c\u8fd9\u4e2a empty_queue_cond \u6761\u4ef6\u53d8\u91cf\u5c31\u662f\u7528\u6765\u5524\u9192 read_thread \u7ebf\u7a0b\u7684\u3002<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint\" >\/\/read_thread \u4f11\u7720 10ms\nSDL_CondWaitTimeout(is-&gt;continue_read_thread, wait_mutex, 10);\n\/\/\u6ce8\u610f\u6700\u540e\u4e00\u4e2a\u53c2\u6570,continue_read_thread \u8d4b\u503c\u7ed9 empty_queue_cond \ndecoder_init(&amp;is-&gt;auddec, avctx, &amp;is-&gt;audioq, is-&gt;continue_read_thread);\ndecoder_init(&amp;is-&gt;viddec, avctx, &amp;is-&gt;videoq, is-&gt;continue_read_thread);<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>int64_t start_pts; \u8fd9\u4e2a\u5b57\u6bb5\u53ea\u7528\u4e8e\u97f3\u9891\u6d41\uff0c\u5728\u672c\u6587\u547d\u4ee4\u91cc\u9762\uff0c\u8fd9\u4e2a\u5b57\u6bb5\u7684\u503c\u4e00\u76f4\u662f AV_NOPTS_VALUE\uff0c\u4e0d\u6e05\u695a\u5728\u97f3\u9891\u6d41\u4ec0\u4e48\u573a\u666f\u4e0b\u4f7f\u7528\u3002<\/li><li>AVRational start_pts_tb; \u65f6\u95f4\u57fa\u3002<\/li><li>int64_t next_pts; \u8fd9\u4e2a\u5b57\u6bb5\u4e5f\u662f\u53ea\u7528\u4e8e\u97f3\u9891\u6d41\u4e86\u3002\u4ece avcodec_receive_frame() \u89e3\u7801\u5668\u53d6\u5230\u7684AVFrame \u7684pts\u5982\u679c\u6709\u95ee\u9898\uff0c\u5c31\u4f1a\u7528next_pts\u4ee3\u66ff\u3002next_pts\u7684\u8ba1\u7b97\u65b9\u5f0f\u662f\u4e0a\u4e00\u5e27\u7684pts + \u4e0a\u4e00\u5e27\u7684\u6837\u672c\u6570\u3002\u5982\u4e0b\u4ee3\u7801\u6240\u793a\uff1a<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint\" >ret = avcodec_receive_frame(d-&gt;avctx, frame);\nif (ret &gt;= 0) {\n\tAVRational tb = (AVRational){1, frame-&gt;sample_rate};\n\tif (frame-&gt;pts != AV_NOPTS_VALUE)\n\t\tframe-&gt;pts = av_rescale_q(frame-&gt;pts, d-&gt;avctx-&gt;pkt_timebase, tb);\n\telse if (d-&gt;next_pts != AV_NOPTS_VALUE) \/\/\u6ce8\u610f\u8fd9\u884c\u4ee3\u7801\n\t\tframe-&gt;pts = av_rescale_q(d-&gt;next_pts, d-&gt;next_pts_tb, tb);\n\tif (frame-&gt;pts != AV_NOPTS_VALUE) {\n\t\td-&gt;next_pts = frame-&gt;pts + frame-&gt;nb_samples;\n\t\td-&gt;next_pts_tb = tb;\n\t}\n}<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>AVRational next_pts_tb; \u65f6\u95f4\u57fa<\/li><li>SDL_Thread *decoder_tid; \u89e3\u7801\u7ebf\u7a0b id\u3002<\/li><\/ul>\n\n\n\n<p><strong>struct PacketQueue<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>MyAVPacketList *first_pkt, *last_pkt; \u961f\u5217\u7684\u5934\u5c3e<\/li><li>int nb_packets; \u961f\u5217\u7684\u5305\u6570\u91cf<\/li><li>int size; \u961f\u5217\u7f13\u5b58\u7684\u6570\u636esize<\/li><li>int64_t duration; \u961f\u5217\u7f13\u5b58\u7684duration\uff0c\u901a\u8fc7AVPacket->duration \u7d2f\u52a0\u5f97\u5230\u3002<\/li><li>int abort_request; \u505c\u6b62\u89e3\u7801\u7ebf\u7a0b\uff0c\u89e3\u7801\u7ebf\u7a0b\u4ee3\u7801\u6709\u597d\u51e0\u4e2a\u5730\u65b9\u5224\u65ad abort_request \u662f\u5426\u4e3a1\uff0c stream_component_close() \u91cc\u9762\u4f1a\u628a\u8fd9\u4e2a\u5b57\u6bb5\u7f6e\u4e3a1\u3002<\/li><li>int serial; \u961f\u5217\u7684\u5e8f\u5217\u53f7\uff0c\u961f\u5217\u7684serial\u8ddf MyAVPacketList \u7684serial \u53ef\u4ee5\u4e0d\u4e00\u6837\u7684\u3002\u8ddf\u961f\u5217serial\u4e0d\u4e00\u6837\u7684 MyAVPacketList \u5c31\u662f\u65e7\u7684\uff0c\u89e3\u7801\u7684\u65f6\u5019\u4f1a\u4e22\u5f03\u65e7\u7684MyAVPacketList\u3002<\/li><li>SDL_mutex *mutex; \u4e92\u65a5\u9501\uff0c\u4e3b\u8981\u7528\u4e8e\u4fee\u6539\u961f\u5217\u7684\u65f6\u5019\u52a0\u9501\u3002<\/li><li>SDL_cond *cond; \u6761\u4ef6\u53d8\u91cf\uff0c\u7528\u4e8e\u89e3\u7801\u7ebf\u7a0b\u8ddf read_thread \u7ebf\u7a0b\u901a\u4fe1\u3002\u5f53\u89e3\u7801\u7ebf\u7a0b\u6ca1\u6709packet\u53ef\u4ee5\u8bfb\u7684\u65f6\u5019\uff0c\u5c31\u4f1a wait cond \u963b\u585e\uff0c\u7b49\u5f85\uff0c\u7136\u540e read_thread \u8bfb\u53d6\u5230packet\u4e22\u8fdb\u53bb\u961f\u5217\u4e4b\u540e\uff0c\u5c31\u4f1asignal cond \u5524\u9192\u89e3\u7801\u7ebf\u7a0b\u7ee7\u7eed\u89e3\u7801\u3002<\/li><\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>google_ads_content<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p>\u9884\u5907\u5de5\u4f5c\uff0c\u6570\u636e\u7ed3\u6784\u5df2\u7ecf\u8bb2\u5b8c\u4e86\uff0c\u4e0b\u9762\u6b63\u5f0f\u5f00\u59cb\u8bb2\u89e3 audio_thread() \u89e3\u7801\u7ebf\u7a0b\u91cc\u9762\u7684\u903b\u8f91\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint\" >static int audio_thread(void *arg)\n{\n    VideoState *is = arg;\n    AVFrame *frame = av_frame_alloc();\n    ...\u7701\u7565\u4ee3\u7801..\n    do {\n        if ((got_frame = decoder_decode_frame(&amp;is-&gt;auddec, frame, NULL)) &lt; 0)\n            goto the_end;\n        ...\u7701\u7565\u4ee3\u7801...\n    } while (ret &gt;= 0 || ret == AVERROR(EAGAIN) || ret == AVERROR_EOF);\n}<\/code><\/pre>\n\n\n\n<p>\u4ece\u4e0a\u9762\u7684\u4ee3\u7801\u53ef\u4ee5\u770b\u5230 audio_thread() \u4e00\u5f00\u59cb\u5c31\u8fdb\u5165\u4e00\u4e2a do() while{} \u7684\u5faa\u73af\u3002\u5728\u8fd9\u4e2a\u5faa\u73af\u91cc\u9762\u4f1a\u4e0d\u65ad\u7684\u62ff PacketQueue \u7684\u6570\u636e\uff0c\u4f20\u7ed9\u89e3\u7801\u5668\uff0c\u89e3\u51fa AVFrame\uff0c\u7136\u540e\u628a AVFrame \u8fc7\u4e00\u904dfilter\uff0c\u672c\u6587\u547d\u4ee4filter\u662f\u7a7a\uff0c\u7136\u540e\u518d\u628a frame \u63d2\u5165 FrameQueue \u961f\u5217\uff0c\u8ba9\u64ad\u653e\u7ebf\u7a0b\u53d6\u62ffframe\u64ad\u653e\u3002<\/p>\n\n\n\n<p>\u91cc\u9762\u6bd4\u8f83\u91cd\u8981\u7684\u4e00\u4e2a\u51fd\u6570\u662f <strong>decoder_decode_frame()<\/strong>\uff0c\u8fd9\u662f\u4e00\u4e2a\u963b\u585e\u51fd\u6570\uff0c\u5b83\u5185\u90e8\u4f1a\u4e0d\u65ad\u5faa\u73af\u7b49\u5f85\uff0c\u76f4\u5230\u8bfb\u51fa\u4e00\u4e2aAVFrame\u3002<\/p>\n\n\n\n<p><strong>\u91cd\u70b9\u77e5\u8bc6\uff1a<\/strong><\/p>\n\n\n\n<p>decoder_decode_frame()\u8fd4\u56de\u7684 got_frame \u7684\u6709\u51e0\u4e2a\u503c\uff1f\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u8fd4\u56de 1\uff0c\u83b7\u53d6\u5230 AVFrame\u4e86\u3002<\/li><li>\u8fd4\u56de 0 \uff0c\u6587\u4ef6\u5df2\u7ecf\u8bfb\u53d6\u5b8c\u6bd5\uff0c\u5e76\u4e14\u4e5f\u89e3\u7801\u5b8c\u6bd5\uff0c\u6ca1\u6709AVFrame\u8fd4\u56de\u3002<\/li><li>\u8fd4\u56de -1\uff0c\u6d41\u5173\u95ed\u4e86\uff0cabort_request \u53d8\u6210\u4e86 1\u4e86\uff0cgot_frame \u5c31\u4f1a\u662f -1\u3002<\/li><\/ul>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p>\u4e0b\u9762\u5206\u6790\u83b7\u53d6\u5230 AVFrame \u4e4b\u540e\u7684\u903b\u8f91\u3002<\/p>\n\n\n\n<p>\u83b7\u53d6\u5230 AVFrame \u4e4b\u540e\uff0cffplay \u4f1a\u5bf9 AVFrame\u7684\u91c7\u6837\u7387\uff0c\u683c\u5f0f\u505a\u4e00\u6b21\u6821\u9a8c\uff0c\u8fd9\u91cc\u53c8\u6709\u4e00\u6b21\u6821\u9a8c\uff0cffplay\u771f\u662f\u4e25\u8c28\u3002\u4e3b\u8981\u6821\u9a8c\u4ec0\u4e48\u5462\uff1f\u6821\u9a8cstream\u5bb9\u5668\u5c42\u7684\u91c7\u6837\u7387\uff0c\u683c\u5f0f\uff0c\u662f\u4e0d\u662f\u8ddf AVFrame \u7684\u6570\u636e\u662f\u4e00\u81f4\u7684\uff1f\u5e94\u8be5\u662fffpaly\u62c5\u5fc3\uff0c\u6709\u4e9b\u97f3\u9891\u6d41\uff0c\u867d\u7136\u5bb9\u5668\u5c42\u7684\u91c7\u6837\u7387\u5b57\u6bb5\u662f48000\uff0c\u4f46\u5b9e\u9645\u89e3\u7801\u51fa\u6765\u7684AVFrame \u5374\u662f 44100\u3002\u6821\u9a8c\u5982\u679c\u4e0d\u4e00\u81f4\uff0c\u5c31\u4f1a \u8c03 configure_audio_filters() \u91cd\u65b0\u521d\u59cbfilter\u3002<\/p>\n\n\n\n<p>\u6821\u9a8c\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint\" >reconfigure =\n             cmp_audio_fmts(is-&gt;audio_filter_src.fmt, is-&gt;audio_filter_src.channels,frame-&gt;format, frame-&gt;channels) ||\n             is-&gt;audio_filter_src.channel_layout != dec_channel_layout ||\n             is-&gt;audio_filter_src.freq           != frame-&gt;sample_rate ||\n             is-&gt;auddec.pkt_serial               != last_serial;<\/code><\/pre>\n\n\n\n<p>is-&gt;audio_filter_src \u7684\u503c\u662f\u4ece\u89e3\u7801\u5668 avctx \u91cc\u9762\u6765\u7684\uff0c\u8bf7\u770b\u4e0b\u56fe\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint\" >ffpaly.c 2639 \u884c\nis-&gt;audio_filter_src.freq           = avctx-&gt;sample_rate;\nis-&gt;audio_filter_src.channels       = avctx-&gt;channels;\nis-&gt;audio_filter_src.channel_layout = get_valid_channel_layout(avctx-&gt;channel_layout, avctx-&gt;channels);\nis-&gt;audio_filter_src.fmt            = avctx-&gt;sample_fmt;<\/code><\/pre>\n\n\n\n<p>\u89e3\u7801\u5668 avctx \u7684\u91c7\u6837\u7387\u53c8\u662f\u4ece\u5bb9\u5668\u5c42\u6765\u7684\uff0c\u8bf7\u770b\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint\" >ffpaly.c 2581 \u884c\nret = avcodec_parameters_to_context(avctx, ic-&gt;streams&#091;stream_index]-&gt;codecpar);<\/code><\/pre>\n\n\n\n<p>\u6821\u9a8c\u5b8c\u91c7\u6837\u7387\u4e4b\u540e\uff0c\u5c31\u662f\u8c03 av_buffersrc_add_frame() \u628a AVFrame \u5f80 filter \u91cc\u9762\u9001\u4e86\uff0c\u7136\u540e \u5faa\u73af \u8c03 av_buffersink_get_frame_flags()\uff0c\u4e0d\u65ad\u6536\u5272\u7ecf\u8fc7filter\u7684AVFrame\u3002\u7136\u540e\u8c03 frame_queue_push() \u63d2\u5165 FrameQueue \u961f\u5217\uff0c\u8ba9\u64ad\u653e\u7ebf\u7a0b\u53d6\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p>ffplay \u6e90\u7801\u5206\u6790\uff0caudio_thread() \u89e3\u7801\u7ebf\u7a0b\u5206\u6790\u5b8c\u6bd5\u3002<\/p>\n\n\n\n<p>\u00a9\u7248\u6743\u6240\u5c5e\uff1a\u77e5\u8bc6\u661f\u7403\uff1a\u5f26\u5916\u4e4b\u97f3\uff0cQQ\uff1a2338195090\u3002<\/p>\n\n\n\n<p>\u7531\u4e8e\u7b14\u8005\u7684\u6c34\u5e73\u6709\u9650\uff0c \u52a0\u4e4b\u7f16\u5199\u7684\u540c\u65f6\u8fd8\u8981\u53c2\u4e0e\u5f00\u53d1\u5de5\u4f5c\uff0c\u6587\u4e2d\u96be\u514d\u4f1a\u51fa\u73b0\u4e00\u4e9b\u9519\u8bef\u6216\u8005\u4e0d\u51c6\u786e\u7684\u5730\u65b9\uff0c\u6073\u8bf7\u8bfb\u8005\u6279\u8bc4\u6307\u6b63\u3002\u5982\u679c\u8bfb\u8005\u6709\u4efb\u4f55\u5b9d\u8d35\u610f\u89c1\uff0c\u53ef\u4ee5\u52a0\u6211\u5fae\u4fe1 Loken1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u7cfb\u5217 \u4ee5 ffmpeg4.2 \u6e90\u7801\u4e3a\u51c6\uff0c\u4e0b\u8f7d\u5730\u5740\uff1a\u94fe\u63a5\uff1a\u767e\u5ea6\u7f51\u76d8 \u63d0\u53d6\u7801\uff1ag3k8 FFplay \u6e90\u7801\u5206\u6790\u7cfb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-467","post","type-post","status-publish","format-standard","hentry","category-ffplay"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>FFplay\u6e90\u7801\u5206\u6790-stream_component_open - \u5f26\u5916\u4e4b\u97f3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.xianwaizhiyin.net\/?p=467\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"FFplay\u6e90\u7801\u5206\u6790-stream_component_open - \u5f26\u5916\u4e4b\u97f3\" \/>\n<meta property=\"og:description\" content=\"\u672c\u7cfb\u5217 \u4ee5 ffmpeg4.2 \u6e90\u7801\u4e3a\u51c6\uff0c\u4e0b\u8f7d\u5730\u5740\uff1a\u94fe\u63a5\uff1a\u767e\u5ea6\u7f51\u76d8 \u63d0\u53d6\u7801\uff1ag3k8 FFplay \u6e90\u7801\u5206\u6790\u7cfb [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.xianwaizhiyin.net\/?p=467\" \/>\n<meta property=\"og:site_name\" content=\"\u5f26\u5916\u4e4b\u97f3\" \/>\n<meta property=\"article:published_time\" content=\"2022-01-31T10:59:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-10T19:07:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.xianwaizhiyin.net\/wp-content\/uploads\/2022\/01\/ffplay-6-1.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"loken\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.xianwaizhiyin.net\/#website\",\"url\":\"https:\/\/www.xianwaizhiyin.net\/\",\"name\":\"\u5f26\u5916\u4e4b\u97f3\",\"description\":\"FFmpeg\u3001WebRTC\uff0cSRS \u97f3\u89c6\u9891\u3001\u6d41\u5a92\u4f53\u6280\u672f\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.xianwaizhiyin.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.xianwaizhiyin.net\/?p=467#primaryimage\",\"inLanguage\":\"zh-Hans\",\"url\":\"\/wp-content\/uploads\/2022\/01\/ffplay-6-1.png\",\"contentUrl\":\"\/wp-content\/uploads\/2022\/01\/ffplay-6-1.png\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.xianwaizhiyin.net\/?p=467#webpage\",\"url\":\"https:\/\/www.xianwaizhiyin.net\/?p=467\",\"name\":\"FFplay\u6e90\u7801\u5206\u6790-stream_component_open - \u5f26\u5916\u4e4b\u97f3\",\"isPartOf\":{\"@id\":\"https:\/\/www.xianwaizhiyin.net\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.xianwaizhiyin.net\/?p=467#primaryimage\"},\"datePublished\":\"2022-01-31T10:59:32+00:00\",\"dateModified\":\"2022-06-10T19:07:22+00:00\",\"author\":{\"@id\":\"https:\/\/www.xianwaizhiyin.net\/#\/schema\/person\/6605a70af752697df6b62f77c53298a3\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.xianwaizhiyin.net\/?p=467#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.xianwaizhiyin.net\/?p=467\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.xianwaizhiyin.net\/?p=467#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.xianwaizhiyin.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"FFplay\u6e90\u7801\u5206\u6790-stream_component_open\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.xianwaizhiyin.net\/#\/schema\/person\/6605a70af752697df6b62f77c53298a3\",\"name\":\"loken\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.xianwaizhiyin.net\/#personlogo\",\"inLanguage\":\"zh-Hans\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f6320b5256dc36ef4243e0acf26144b8ac2668b478302ad154e95ce3202bc421?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f6320b5256dc36ef4243e0acf26144b8ac2668b478302ad154e95ce3202bc421?s=96&d=mm&r=g\",\"caption\":\"loken\"},\"sameAs\":[\"https:\/\/www.xianwaizhiyin.net\/\"],\"url\":\"https:\/\/www.xianwaizhiyin.net\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"FFplay\u6e90\u7801\u5206\u6790-stream_component_open - \u5f26\u5916\u4e4b\u97f3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.xianwaizhiyin.net\/?p=467","og_locale":"zh_CN","og_type":"article","og_title":"FFplay\u6e90\u7801\u5206\u6790-stream_component_open - \u5f26\u5916\u4e4b\u97f3","og_description":"\u672c\u7cfb\u5217 \u4ee5 ffmpeg4.2 \u6e90\u7801\u4e3a\u51c6\uff0c\u4e0b\u8f7d\u5730\u5740\uff1a\u94fe\u63a5\uff1a\u767e\u5ea6\u7f51\u76d8 \u63d0\u53d6\u7801\uff1ag3k8 FFplay \u6e90\u7801\u5206\u6790\u7cfb [&hellip;]","og_url":"https:\/\/www.xianwaizhiyin.net\/?p=467","og_site_name":"\u5f26\u5916\u4e4b\u97f3","article_published_time":"2022-01-31T10:59:32+00:00","article_modified_time":"2022-06-10T19:07:22+00:00","og_image":[{"url":"https:\/\/www.xianwaizhiyin.net\/wp-content\/uploads\/2022\/01\/ffplay-6-1.png"}],"twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"loken","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/www.xianwaizhiyin.net\/#website","url":"https:\/\/www.xianwaizhiyin.net\/","name":"\u5f26\u5916\u4e4b\u97f3","description":"FFmpeg\u3001WebRTC\uff0cSRS \u97f3\u89c6\u9891\u3001\u6d41\u5a92\u4f53\u6280\u672f","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.xianwaizhiyin.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"ImageObject","@id":"https:\/\/www.xianwaizhiyin.net\/?p=467#primaryimage","inLanguage":"zh-Hans","url":"\/wp-content\/uploads\/2022\/01\/ffplay-6-1.png","contentUrl":"\/wp-content\/uploads\/2022\/01\/ffplay-6-1.png"},{"@type":"WebPage","@id":"https:\/\/www.xianwaizhiyin.net\/?p=467#webpage","url":"https:\/\/www.xianwaizhiyin.net\/?p=467","name":"FFplay\u6e90\u7801\u5206\u6790-stream_component_open - \u5f26\u5916\u4e4b\u97f3","isPartOf":{"@id":"https:\/\/www.xianwaizhiyin.net\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.xianwaizhiyin.net\/?p=467#primaryimage"},"datePublished":"2022-01-31T10:59:32+00:00","dateModified":"2022-06-10T19:07:22+00:00","author":{"@id":"https:\/\/www.xianwaizhiyin.net\/#\/schema\/person\/6605a70af752697df6b62f77c53298a3"},"breadcrumb":{"@id":"https:\/\/www.xianwaizhiyin.net\/?p=467#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.xianwaizhiyin.net\/?p=467"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.xianwaizhiyin.net\/?p=467#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.xianwaizhiyin.net\/"},{"@type":"ListItem","position":2,"name":"FFplay\u6e90\u7801\u5206\u6790-stream_component_open"}]},{"@type":"Person","@id":"https:\/\/www.xianwaizhiyin.net\/#\/schema\/person\/6605a70af752697df6b62f77c53298a3","name":"loken","image":{"@type":"ImageObject","@id":"https:\/\/www.xianwaizhiyin.net\/#personlogo","inLanguage":"zh-Hans","url":"https:\/\/secure.gravatar.com\/avatar\/f6320b5256dc36ef4243e0acf26144b8ac2668b478302ad154e95ce3202bc421?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f6320b5256dc36ef4243e0acf26144b8ac2668b478302ad154e95ce3202bc421?s=96&d=mm&r=g","caption":"loken"},"sameAs":["https:\/\/www.xianwaizhiyin.net\/"],"url":"https:\/\/www.xianwaizhiyin.net\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/www.xianwaizhiyin.net\/index.php?rest_route=\/wp\/v2\/posts\/467","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xianwaizhiyin.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xianwaizhiyin.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xianwaizhiyin.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xianwaizhiyin.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=467"}],"version-history":[{"count":2,"href":"https:\/\/www.xianwaizhiyin.net\/index.php?rest_route=\/wp\/v2\/posts\/467\/revisions"}],"predecessor-version":[{"id":2674,"href":"https:\/\/www.xianwaizhiyin.net\/index.php?rest_route=\/wp\/v2\/posts\/467\/revisions\/2674"}],"wp:attachment":[{"href":"https:\/\/www.xianwaizhiyin.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=467"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xianwaizhiyin.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=467"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xianwaizhiyin.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}