{"id":166869,"date":"2020-10-02T23:36:55","date_gmt":"2020-10-02T15:36:55","guid":{"rendered":"http:\/\/4563.org\/?p=166869"},"modified":"2020-10-02T23:36:55","modified_gmt":"2020-10-02T15:36:55","slug":"%e7%94%a8-java-%e5%81%9a%e5%90%ab%e6%9c%89%e5%ae%9e%e6%97%b6%e6%b5%81%e5%aa%92%e4%bd%93%e9%80%9a%e4%bf%a1%e5%8a%9f%e8%83%bd%e7%9a%84%e6%9c%8d%e5%8a%a1%e7%ab%af%e6%9c%89%e5%93%aa%e4%ba%9b%e6%96%b9","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=166869","title":{"rendered":"\u7528 Java \u505a\u542b\u6709\u5b9e\u65f6\u6d41\u5a92\u4f53\u901a\u4fe1\u529f\u80fd\u7684\u670d\u52a1\u7aef\u6709\u54ea\u4e9b\u65b9\u5f0f\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u7528 Java \u505a\u542b\u6709\u5b9e\u65f6\u6d41\u5a92\u4f53\u901a\u4fe1\u529f\u80fd\u7684\u670d\u52a1\u7aef\u6709\u54ea\u4e9b\u65b9\u5f0f\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tctc4869 <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u6709\u4e24\u4e2a\u5ba2\u6237\u7aef\uff0c\u4e00\u4e2a\u5ba2\u6237\u7aef\u7528\u4e8e\u5b9e\u65f6\u91c7\u96c6\u58f0\u97f3\uff0c\u5e76\u7f16\u7801\u6210 aac \u683c\u5f0f,\u7136\u540e\u628a\u91c7\u96c6\u7f16\u7801\u540e\u7684\u97f3\u9891\u6d41\u63a8\u6d41\u5230\u8f93\u670d\u52a1\u5668\uff0c\u7136\u540e\u53e6\u5916\u4e00\u4e2a\u5ba2\u6237\u7aef\uff0c\u8fde\u63a5\u670d\u52a1\u5668\uff0c\u8fdb\u884c\u62c9\u6d41\u76d1\u542c\u91c7\u96c6\u7aef\u7684\u58f0\u97f3\u3002\u5f53\u7136\u6743\u9650\u90fd\u7533\u8bf7\u4e86\u3002<\/p>\n<p>\u63a8\u6d41\u4e0e\u62c9\u6d41\u7684\u8bdd\uff0c\u611f\u89c9\u7528\u4ec0\u4e48\u4f20\u8f93\u534f\u8bae\u90fd\u53ef\u4ee5\uff0c\u54ea\u6015\u662f tcp \u4e0e udp \u90fd\u884c\uff0c\u4e5f\u53ef\u4ee5\u7528 WebSocket\uff0c\u6309\u7167\u6211\u7684 \u731c\u60f3\uff0c\u5e94\u8be5\u662f\u5728\u670d\u52a1\u7aef\uff0c\u7528 byte[]\u63a5\u6536\uff0c\u7136\u540e\u628a byte[]\u9001\u5230\u62c9\u6d41\u7684\u5ba2\u6237\u7aef\u5c31\u53ef\u4ee5\u3002<\/p>\n<p>\u4e0d\u8fc7\u5982\u679c\u5b9e\u65f6\u6027\u8981\u6c42\u9ad8\u4e00\u4e9b\uff0c\u6709\u535a\u5ba2\u5efa\u8bae\u7528 RTMP,RTSP \u8fd9\u4e24\u4e2a\u4f20\u8f93\u534f\u8bae\uff0c\u5982\u679c\u662f\u7528\u8fd9 2 \u4e2a\u534f\u8bae\u8bdd\uff0cjava \u7684\u670d\u52a1\u7aef\u9002\u5408\u7528\u4ec0\u4e48\u6846\u67b6\u4e48\uff1f\u6709\u4eba\u80fd\u6307\u70b9\u4e00\u4e0b\u4e48\uff1f<\/p>\n<p>\u7528 java \u505a\u542b\u6709\u5b9e\u65f6\u901a\u4fe1\u529f\u80fd\u7684\u6d41\u5a92\u4f53\u670d\u52a1\u7aef\u6709\u54ea\u4e9b\u65b9\u5f0f\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>16<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3680931\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : qwerthhusn <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e70\u4e2a\u963f\u91cc\u4e91\u7684\u76f4\u64ad\u670d\u52a1\u5c31\u884c\u4e86\u554a<br \/>\u5982\u679c\u5ba2\u6237\u7aef\u6570\u91cf\u6bd4\u8f83\u5c11\uff0c\u963f\u91cc\u4e91\u7684\u8d39\u7528\u4e5f\u5f88\u5c11\u7684<br \/>\u5982\u679c\u5ba2\u6237\u7aef\u6570\u636e\u8f83\u591a\uff0c\u4f60\u8ba4\u4e3a\u4f60\u81ea\u5df1\uff08\u6ca1\u6709\u76f8\u5173\u6d41\u5a92\u4f53\u7684\u7ecf\u9a8c\uff09\u5199\u7684\u80fd hold \u4f4f\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3680932\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chinvo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6b63\u786e\u505a\u6cd5\u662f\u4e1a\u52a1\u7cfb\u7edf\u53ea\u505a\u9274\u6743\u548c\u8bb0\u5f55\uff0c\u6d41\u7684\u8f6c\u53d1\u5de5\u4f5c\u4ea4\u7ed9\u4e13\u95e8\u7684\u6d41\u670d\u52a1\u5668                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3680933\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : tctc4869 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8c22\u8c22\u6307\u70b9\uff0c\u6211\u77e5\u9053 java \u505a\u8fd9\u4e2a\u53ef\u80fd\u6709\u70b9\u56f0\u96be\uff0c\u4f46\u662f\u6709\u54ea\u4e9b\u7b2c\u4e09\u65b9\u7684\u5f00\u6e90\u514d\u8d39\u53ef\u7528\u7684\u6d41\u670d\u52a1\u5668\u4e48\uff1f<br \/>@chinvo                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3680934\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : tctc4869 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @qwerthhusn \u5176\u5b9e\u8fd9\u6837\u7684\u8bdd\uff0c\u6211\u89c9\u5f97\u4e0d\u5982\u76f4\u63a5\u53bb\u7528\u97f3\u89c6\u9891\u65b9\u9762\u7684\u7b2c\u4e09\u65b9\u7684 sdk \u5de5\u5177                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3680935\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chinvo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @tctc4869 nginx rtmp module                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3680936\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : manhere <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @tctc4869 ZLMediaKit                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3680937\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hugedata <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u8865\u4e0a\u4e00\u4e2a nginx hls module \u3002<br \/>\u53e6\u5916\uff0c\u4f60\u53ef\u4ee5\u4e86\u89e3\u4e00\u4e0b srs \u5df2\u7ecf\u53d1\u5e03\u5230 3.0 \u4e86\u3002\u6bd4\u8f83\u7a33\u5b9a\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3680938\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : tctc4869 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @manhere \u8c22\u8c22                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3680939\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jiobanma <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u6709\u4e00\u4e2a\u5f00\u6e90\u7684\u6d41\u5a92\u4f53\u670d\u52a1\uff0c\u4e0d\u8fc7\u6ca1\u6709\u505a\u97f3\u9891\u7684\u5904\u7406\u3002\u4f7f\u7528\u7684\u662f javacv \u8fd9\u4e2a\u6846\u67b6\uff0c\u5c01\u88c5\u7684\u662f ffmpeg \u3002\u670d\u52a1\u4e3b\u8981\u662f\u901a\u8fc7 rtsp \u8f6c rtmp \u53ef\u4ee5\u53c2\u8003\u4e00\u4e0b\u5e0c\u671b\u53ef\u4ee5\u5e2e\u52a9\u5230\u4f60\u3002https:\/\/github.com\/banmajio\/RTSPtoRTMP                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3680940\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : tctc4869 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             ffmpeg \u7684\u5f00\u6e90\u662f\u57fa\u4e8e GPL \u534f\u8bae\uff0c\u53ea\u662f\u57fa\u4e8e\u8fd9\u4e2a\u5f00\u53d1\u5e94\u7528\u7684\u8bdd\uff0c\u4e0d\u6539\u53d8\u6269\u5c55 ffmpeg \u7684\u4ee3\u7801\uff0c\u4e0d\u9700\u8981\u9879\u76ee\u5f00\u6e90\u628a\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3680941\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : tctc4869 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @manhere <br \/>@hugedata <br \/>@chinvo <br \/>@jiobanma <\/p>\n<p>\u95ee\u4e00\u4e0b\uff0candroid \u7684\u8bdd\uff0c\u6709\u54ea\u4e9b\u63a8\u6d41\u8f6f\u4ef6\u5462\uff0c\u4fbf\u4e8e\u6d4b\u8bd5                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3680942\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : twoconk <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             andriod \u7684\u8bdd\uff0c\u53ef\u4ee5\u8003\u8651 anyrtc \u5f00\u6e90\u7684\u8de8\u5e73\u53f0\u5ba2\u6237\u7aef\uff08 https:\/\/github.com\/anyrtcIO-Community\/anyRTC-RTMP-OpenSource \uff09 \u6216\u8005 LaiFeng ( https:\/\/github.com\/LaiFeng-Android\/SopCastComponent) \u90fd\u65b9\u4fbf\u5b9a\u5236\u4fee\u6539                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3680943\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : tctc4869 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8c22\u8c22<br \/>@twoconk                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3680944\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : tctc4869 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @chinvo <br \/>@hugedata <\/p>\n<p>nginx 1.7.11.3 Gryphon \u4e5f\u53ef\u4ee5                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3680945\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : tctc4869 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @chinvo \u95ee\u4e00\u4e0b\u9274\u6743\u95ee\u9898\uff0c\u5982\u679c\u4e1a\u52a1\u7cfb\u7edf\uff08\u5e26\u6709\u7528\u6237\u7cfb\u7edf\u4ee5\u53ca\u9274\u6743\u529f\u80fd\uff09\u548c\u6d41\u5a92\u4f53\u670d\u52a1\u90fd\u662f\u5206\u6210\u4e24\u4e2a\u670d\u52a1\u5668\u5404\u81ea\u8d1f\u8d23\u7684\uff0c\u90a3\u9274\u6743\u6d41\u7a0b\u4e00\u822c\u662f\u600e\u4e48\u5f04\u7684\uff0c<br \/>\u5f00\u6e90\u7684\u6d41\u5a92\u4f53\u670d\u52a1\u5668\uff0c\u76f4\u63a5\u542f\u52a8\u8fd0\u884c\uff0c\u5b9e\u65f6\u89c2\u770b\uff0c\u6bd4\u5982\u90a3\u4e9b\u53ef\u4ee5\u76f4\u63a5\u8f93\u5165 rtmp \u7684 url \u5c31\u53ef\u4ee5\u8fdb\u884c\u91c7\u96c6\u5e76\u5b9e\u65f6\u63a8\u6d41\u7684\u8f6f\u4ef6\u548c\u62c9\u6d41\u7684\u64ad\u653e\u5668\u8f6f\u4ef6\uff0c\u8fdb\u884c\u9274\u6743\u675c\u7edd\u975e\u6cd5\u62c9\u6d41\u6216\u975e\u6cd5\u63a8\u6d41\u7684\u60c5\u51b5\uff0c\u8fd9\u4e2a\u9274\u6743\u600e\u4e48\u505a\u6bd4\u8f83\u5408\u9002\uff1f<\/p>\n<p>\u6211\u53ea\u60f3\u5230\u97f3\u89c6\u9891\u6d41\u7ecf\u8fc7\u4e1a\u52a1\u7cfb\u7edf\u8f6c\u53d1\u5230\u6d41\u5a92\u4f53\u670d\u52a1\u5668\uff0c\u8f6c\u53d1\u4e4b\u524d\u8fdb\u884c\u9274\u6743\uff0c\u4f46\u8fd9\u6837\u505a\u786e\u5b9a\u5ef6\u8fdf\u4e0d\u4f1a\u5f88\u5927\u4e48\uff1f                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3680946\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chinvo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @tctc4869 #15 \u524d\u9762\u8bf4\u7684\u8fd9\u4e9b\u6d41\u5a92\u4f53\u670d\u52a1\u5668\u90fd\u6709\u76f8\u5173\u89e3\u51b3\u65b9\u6848<\/p>\n<p>\u6bd4\u5982 nginx rtmp module \u6709 before_push before_play \u7b49\u8bbe\u7f6e\u9879, \u53ef\u4ee5\u8bbe\u7f6e shell \u6216 URL \u53bb\u5904\u7406\u63a8\u9001\u548c\u64ad\u653e\u4e8b\u4ef6\u6765\u51b3\u5b9a\u662f\u5426\u653e\u884c                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u7528 Java \u505a\u542b\u6709\u5b9e\u65f6\u6d41\u5a92\u4f53\u901a\u4fe1&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/166869"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=166869"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/166869\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=166869"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=166869"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=166869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}