{"id":15674,"date":"2025-05-30T15:39:41","date_gmt":"2025-05-30T07:39:41","guid":{"rendered":"http:\/\/xinyiworld.top\/wordpress_it\/?p=15674"},"modified":"2025-05-30T16:26:50","modified_gmt":"2025-05-30T08:26:50","slug":"%e6%8a%80%e6%9c%af%e9%9a%be%e7%82%b91-%e5%bd%95%e5%b1%8f%e7%bc%96%e8%a7%a3%e7%a0%81","status":"publish","type":"post","link":"http:\/\/xinyiworld.top\/wordpress_it\/?p=15674","title":{"rendered":"\u6280\u672f\u96be\u70b91-\u5f55\u5c4f\u7f16\u89e3\u7801"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_16 counter-hierarchy counter-decimal ez-toc-grey\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\">\u76ee\u5f55<\/p>\n<span class=\"ez-toc-title-toggle\"><a class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" style=\"display: none;\"><i class=\"ez-toc-glyphicon ez-toc-icon-toggle\"><\/i><\/a><\/span><\/div>\n<nav><ul class=\"ez-toc-list ez-toc-list-level-1\"><li class=\"ez-toc-page-1 ez-toc-heading-level-1\"><a class=\"ez-toc-link ez-toc-heading-1\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=15674\/#%E9%9A%BE%E7%82%B91%EF%BC%9A%E5%85%B3%E4%BA%8E%E7%BC%96%E8%A7%A3%E7%A0%81%E5%99%A8spspps%E5%8F%82%E6%95%B0%E7%9A%84%E5%A4%84%E7%90%86\" title=\"\u96be\u70b91\uff1a\u5173\u4e8e\u7f16\u89e3\u7801\u5668sps\/pps\u53c2\u6570\u7684\u5904\u7406\">\u96be\u70b91\uff1a\u5173\u4e8e\u7f16\u89e3\u7801\u5668sps\/pps\u53c2\u6570\u7684\u5904\u7406<\/a><ul class=\"ez-toc-list-level-2\"><li class=\"ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-2\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=15674\/#1%E6%9C%AA%E6%AD%A3%E7%A1%AE%E8%AE%BE%E7%BD%AE_SPSPPS_%E5%AF%BC%E8%87%B4%E7%9A%84%E5%85%B8%E5%9E%8B%E8%A7%A3%E7%A0%81%E5%99%A8%E5%88%9D%E5%A7%8B%E5%8C%96%E5%A4%B1%E8%B4%A5\" title=\"1.\u672a\u6b63\u786e\u8bbe\u7f6e SPS\/PPS \u5bfc\u81f4\u7684\u5178\u578b\u89e3\u7801\u5668\u521d\u59cb\u5316\u5931\u8d25\">1.\u672a\u6b63\u786e\u8bbe\u7f6e SPS\/PPS \u5bfc\u81f4\u7684\u5178\u578b\u89e3\u7801\u5668\u521d\u59cb\u5316\u5931\u8d25<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-3\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=15674\/#2%E5%A6%82%E4%BD%95%E6%AD%A3%E7%A1%AE%E8%AE%BE%E7%BD%AESPSPPS\" title=\"2.\u5982\u4f55\u6b63\u786e\u8bbe\u7f6eSPS\/PPS\">2.\u5982\u4f55\u6b63\u786e\u8bbe\u7f6eSPS\/PPS<\/a><ul class=\"ez-toc-list-level-3\"><li class=\"ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-4\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=15674\/#1%EF%BC%89%E8%8E%B7%E5%8F%96spspps%E5%85%83%E6%95%B0%E6%8D%AE\" title=\"1\uff09\u83b7\u53d6sps\/pps\u5143\u6570\u636e\">1\uff09\u83b7\u53d6sps\/pps\u5143\u6570\u636e<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-5\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=15674\/#2%EF%BC%89%E8%AE%BE%E7%BD%AEspspps%E5%85%83%E6%95%B0%E6%8D%AE\" title=\"2\uff09\u8bbe\u7f6esps\/pps\u5143\u6570\u636e\">2\uff09\u8bbe\u7f6esps\/pps\u5143\u6570\u636e<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h1><span class=\"ez-toc-section\" id=\"%E9%9A%BE%E7%82%B91%EF%BC%9A%E5%85%B3%E4%BA%8E%E7%BC%96%E8%A7%A3%E7%A0%81%E5%99%A8spspps%E5%8F%82%E6%95%B0%E7%9A%84%E5%A4%84%E7%90%86\"><\/span>\u96be\u70b91\uff1a\u5173\u4e8e\u7f16\u89e3\u7801\u5668sps\/pps\u53c2\u6570\u7684\u5904\u7406<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<h2><span class=\"ez-toc-section\" id=\"1%E6%9C%AA%E6%AD%A3%E7%A1%AE%E8%AE%BE%E7%BD%AE_SPSPPS_%E5%AF%BC%E8%87%B4%E7%9A%84%E5%85%B8%E5%9E%8B%E8%A7%A3%E7%A0%81%E5%99%A8%E5%88%9D%E5%A7%8B%E5%8C%96%E5%A4%B1%E8%B4%A5\"><\/span>1.\u672a\u6b63\u786e\u8bbe\u7f6e SPS\/PPS \u5bfc\u81f4\u7684\u5178\u578b\u89e3\u7801\u5668\u521d\u59cb\u5316\u5931\u8d25<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u5982\u679c\u7f16\u7801\u5668\u6ca1\u6709\u5bf9\u5173\u952e\u5e27\u505a\u7279\u6b8a\u5904\u7406\uff0c\u5e76\u4e14\u89e3\u7801\u5668\u6ca1\u6709\u8bbe\u7f6esps\/pps\u53c2\u6570\uff0c\u5c31\u4f1a\u62a5\u4ee5\u4e0b\u9519\u8bef\uff1a<\/p>\n<pre><code class=\"language-bash\">2025-05-30 15:40:17.766 25394-25488 CCodec                  com.shukun.appmain                   D  Component &quot;c2.mtk.avc.decoder&quot; returned error: 0xe\n2025-05-30 15:40:17.767 25394-25525 MediaCodec              com.shukun.appmain                   E  Codec reported err 0x80000000\/UNKNOWN_ERROR, actionCode 0, while in state 6\/STARTED\n2025-05-30 15:40:17.767 25394-25525 MediaCodec              com.shukun.appmain                   E  Pending dequeue output buffer request cancelled\n2025-05-30 15:40:17.767 25394-25525 MediaCodec              com.shukun.appmain                   D  flushMediametrics\n2025-05-30 15:40:17.769 25394-25525 MediaCodec              com.shukun.appmain                   D  [0xb40000727e9b1aa0] setState: 0<\/code><\/pre>\n<p>\u5982\u679c\u6b64\u65f6\u89e3\u7801\u5668\u6b63\u5728\u89e3\u7801\uff0c\u5219\u8fd8\u4f1a\u62a5\u9519\uff0c\u6700\u7ec8\u8fdb\u7a0b\u4f1a\u88ab\u5e72\u6389\uff1a<\/p>\n<pre><code class=\"language-bash\">2025-05-30 15:40:17.777 25394-25516 AndroidRuntime          com.shukun.appmain                   E  FATAL EXCEPTION: Thread-5\n                                                                                                    Process: com.shukun.appmain, PID: 25394\n                                                                                                    java.lang.IllegalStateException: Pending dequeue output buffer request cancelled\n\n                                                                                                        at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method)\n                                                                                                        at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:3741)\n                                                                                                        at com.shukun.screen_recorder.android14plus.ScreenDecoder.run(ScreenDecoder.kt:158)\n2025-05-30 15:40:17.781 25394-25517 ScreenEncoder           com.shukun.appmain                   D  outPutBufferId: 0\n2025-05-30 15:40:17.782 25394-25516 System.err              com.shukun.appmain                   W  java.lang.IllegalStateException: Pending dequeue output buffer request cancelled\n2025-05-30 15:40:17.783 25394-25525 MediaCodec              com.shukun.appmain                   E  Invalid to call at Released state; only valid in executing state\n2025-05-30 15:40:17.783 25394-25525 AMessage                com.shukun.appmain                   E  trying to post a duplicate reply\n2025-05-30 15:40:17.783 25394-25516 System.err              com.shukun.appmain                   W      at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method)\n2025-05-30 15:40:17.783 25394-25516 System.err              com.shukun.appmain                   W      at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:3741)\n2025-05-30 15:40:17.784 25394-25516 System.err              com.shukun.appmain                   W      at com.shukun.screen_recorder.android14plus.ScreenDecoder.run(ScreenDecoder.kt:158)\n2025-05-30 15:40:17.790 25394-25517 System.err              com.shukun.appmain                   W  java.lang.IllegalStateException: Invalid to call at Released state; only valid in executing state\n2025-05-30 15:40:17.791 25394-25517 System.err              com.shukun.appmain                   W      at android.media.MediaCodec.native_dequeueInputBuffer(Native Method)\n2025-05-30 15:40:17.792 25394-25517 System.err              com.shukun.appmain                   W      at android.media.MediaCodec.dequeueInputBuffer(MediaCodec.java:3139)\n2025-05-30 15:40:17.792 25394-25517 System.err              com.shukun.appmain                   W      at com.shukun.screen_recorder.android14plus.ScreenDecoder.decode(ScreenDecoder.kt:118)\n2025-05-30 15:40:17.793 25394-25517 System.err              com.shukun.appmain                   W      at com.shukun.screen_recorder.android14plus.ScreenEncoder.handleRegularFrame(ScreenEncoder.kt:332)\n2025-05-30 15:40:17.794 25394-25517 System.err              com.shukun.appmain                   W      at com.shukun.screen_recorder.android14plus.ScreenEncoder.encodeData(ScreenEncoder.kt:299)\n2025-05-30 15:40:17.795 25394-25517 System.err              com.shukun.appmain                   W      at com.shukun.screen_recorder.android14plus.ScreenEncoder.run(ScreenEncoder.kt:247)\n2025-05-30 15:40:17.795 25394-25517 Process                 com.shukun.appmain                   I  Sending signal. PID: 25394 SIG: 9<\/code><\/pre>\n<h2><span class=\"ez-toc-section\" id=\"2%E5%A6%82%E4%BD%95%E6%AD%A3%E7%A1%AE%E8%AE%BE%E7%BD%AESPSPPS\"><\/span>2.\u5982\u4f55\u6b63\u786e\u8bbe\u7f6eSPS\/PPS<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"1%EF%BC%89%E8%8E%B7%E5%8F%96spspps%E5%85%83%E6%95%B0%E6%8D%AE\"><\/span>1\uff09\u83b7\u53d6sps\/pps\u5143\u6570\u636e<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u7f16\u7801\u65f6\u901a\u8fc7<code> (bufferInfo.flags and MediaCodec.BUFFER_FLAG_CODEC_CONFIG) != 0<\/code>\u62f7\u8d1d\u51fasps\/pps\u5143\u6570\u636e<\/p>\n<h3><span class=\"ez-toc-section\" id=\"2%EF%BC%89%E8%AE%BE%E7%BD%AEspspps%E5%85%83%E6%95%B0%E6%8D%AE\"><\/span>2\uff09\u8bbe\u7f6esps\/pps\u5143\u6570\u636e<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u5206\u79bb\u51fasps\/pps\u6570\u636e\uff0c\u8bbe\u7f6e\u7ed9\u89e3\u7801\u5668\uff1a<\/p>\n<pre><code>        mediaFormat.setByteBuffer(&quot;csd-0&quot;, spsBuffer)  \/\/ \u7eafSPS\n        mediaFormat.setByteBuffer(&quot;csd-1&quot;, ppsBuffer)  \/\/ \u7eafPPS<\/code><\/pre>\n<p>\u8fd8\u6709\u53e6\u5916\u4e24\u79cd\u4e0d\u592a\u89c4\u8303\u7684\u8bbe\u7f6esps\/pps\u65b9\u6cd5\uff1a<br \/>\n1\uff09\u7f16\u7801\u65f6\u76f4\u63a5\u5c06sps\/pps\u5408\u5e76\u5230\u5173\u952e\u5e27\u7684\u524d\u9762<br \/>\n2\uff09\u5c06sps\/pps\u4e00\u8d77\u8bbe\u7f6e\u7ed9\u89e3\u7801\u5668\u7684&quot;csd-0&quot;\u952e\uff0c&quot;csd-1&quot;\u5c31\u4e0d\u7528\u8bbe\u7f6e\u4e86\u3002<\/p>\n<button class=\"simplefavorite-button\" data-postid=\"15674\" data-siteid=\"1\" data-groupid=\"1\" data-favoritecount=\"0\" style=\"\">\u6536\u85cf <i class=\"sf-icon-star-empty\"><\/i><\/button>","protected":false},"excerpt":{"rendered":"<p>\u76ee\u5f55 \u96be\u70b91\uff1a\u5173\u4e8e\u7f16\u89e3\u7801\u5668sps\/pps\u53c2\u6570\u7684\u5904\u74061.\u672a\u6b63\u786e\u8bbe\u7f6e SPS\/PPS \u5bfc\u81f4\u7684\u5178\u578b\u89e3\u7801\u5668\u521d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1188],"tags":[],"_links":{"self":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/15674"}],"collection":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15674"}],"version-history":[{"count":6,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/15674\/revisions"}],"predecessor-version":[{"id":15680,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/15674\/revisions\/15680"}],"wp:attachment":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15674"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15674"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15674"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}