{"id":6612,"date":"2024-01-29T20:14:55","date_gmt":"2024-01-29T12:14:55","guid":{"rendered":"https:\/\/white-night.club\/?p=6612"},"modified":"2024-01-30T09:10:07","modified_gmt":"2024-01-30T01:10:07","slug":"trivia1","status":"publish","type":"post","link":"https:\/\/white-night.club\/index.php\/2024\/01\/29\/trivia1\/","title":{"rendered":"Windows\u51b7\u77e5\u8bc6\uff1a\u6700\u5c0f\u5316\u8fdc\u7a0b\u684c\u9762\u4e0effmpeg"},"content":{"rendered":"\n<p>\u6211\u89c9\u5f97\u8fd9\u4e2a\u5e94\u8be5\u7b97\u51b7\u77e5\u8bc6\u5427\u3002<\/p>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color has-link-color wp-elements-92cda7bf12513a3ba92e206fce0b34ab\">\n<p>\u524d\u60c5\u63d0\u8981<\/p>\n<cite><em>\u8fdc\u7a0b\u684c\u9762\u8fde\u63a5\u81f3\u865a\u62df\u673a\uff0c\u5e76\u901a\u8fc7ffmpeg\u5f55\u5c4f<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u8fd9\u91cc\u53ef\u80fd\u4e0d\u592a\u597d\u7406\u89e3\u3002<\/p>\n\n\n\n<p>\u6211\u5728\u7528PC A\u3002\u6709\u4e00\u53f0\u8fdc\u7a0b\u7684\u865a\u62df\u673aPC B\u6b63\u5728\u6267\u884c\u67d0\u4e9b\u4efb\u52a1\u3002\u6211\u73b0\u5728\u60f3\u5728PC B\u4e0a\u9762\u901a\u8fc7ffmpeg\u5f55\u5c4f\u6765\u8bb0\u5f55\u8fd9\u4e2a\u4efb\u52a1\u7684\u6267\u884c\u8fc7\u7a0b\u3002\u90a3\u4e48\u6211\u80af\u5b9a\u662f\u901a\u8fc7\u8fdc\u7a0b\u684c\u9762\u8fde\u63a5\u5230PC B\u4e0a\u9762\uff0c\u7136\u540e\u5728PC B\u4e0a\u9762\u6267\u884cffmpeg\u3002<\/p>\n\n\n\n<p class=\"has-text-align-center\"><em>ffmpeg -f gdigrab -i desktop output.mp4<\/em><\/p>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color has-link-color wp-elements-95bb47dc42efbe497306a7c5dc314165\">\n<p>\u6700\u5c0f\u5316\u7a97\u53e3\u540e\uff0cffmpeg\u7ec8\u6b62\u5f55\u5236<\/p>\n<cite><em>couldn&#8217;t get cursor info\u3001does nost contain any stream<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u4f60\u90fd\u8fdc\u7a0b\u684c\u9762\u4e86\uff0c\u90a3\u80af\u5b9a\u662f\u4e0d\u60f3\u5728\u5f55\u5236\u7684\u8fc7\u7a0b\u4e2d\u8fd8\u4e00\u76f4\u76ef\u7740PC B\u3002\u6b63\u5e38\u6765\u8bf4\uff0c\u4f60\u80af\u5b9a\u662f\u6700\u5c0f\u5316PC B\u7684\u8fdc\u7a0b\u7a97\u53e3\uff0c\u628a\u5b83\u6302\u540e\u53f0\u653e\u90a3\u5f55\u5236\u7136\u540e\u505a\u5176\u4ed6\u7684\u4e8b\u60c5\u53bb\u3002<\/p>\n\n\n\n<p>\u95ee\u9898\u6765\u4e86\uff0c\u5f53\u4f60\u5207\u6362\u56de\u53bb\u8fdc\u7a0b\u684c\u9762\u7684\u65f6\u5019\uff0c\u4f60\u53d1\u73b0\u5f55\u5236\u5931\u8d25\u4e86\u3002\u62a5\u7684\u9519\u90fd\u662f\u4e9bcoutldn&#8217;t get cursor info\uff0cnot contain any stream\u4e4b\u7c7b\u7684\u9519\u8bef\u3002ffmpeg\u4e5f\u6ca1\u6709\u8f93\u51faoutput.mp4\u8fd9\u4e2a\u6587\u4ef6\u3002<\/p>\n\n\n\n<p>\u95ee\u9898\u51fa\u5728\u54ea\u5462\uff1f<\/p>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color has-link-color wp-elements-99f5692c9e4d282a76cc5c12db01a578\">\n<p>\u8fdc\u7a0b\u684c\u9762\u7684\u4f18\u5316\u673a\u5236<\/p>\n<cite><em>\u6700\u5c0f\u5316\u540e\u8fdb\u5165\u65e0GUI\u6a21\u5f0f<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u662f\u7684\uff0cWindows\u4e3a\u4e86\u4f18\u5316\uff0c\u5728\u7a97\u53e3\u6700\u5c0f\u5316\u540e\u7a97\u53e3\u4f1a\u8fdb\u5165\u65e0GUI\u6a21\u5f0f\u3002\u5f53\u4f60\u91cd\u65b0\u5207\u6362\u5230\u8fd9\u4e2a\u7a97\u53e3\u7684\u65f6\u5019\u53c8\u4f1a\u8ba9\u5b83\u8fdb\u5165\u5230GUI\u6a21\u5f0f\u3002<\/p>\n\n\n\n<p>\u8fd9\u70b9\u5e73\u65f6\u4e0d\u6ce8\u610f\u8fd8\u662f\u5f88\u96be\u53d1\u73b0\u7684\uff0c\u6bd5\u7adf\u7528\u6237\u4ece\u4f53\u611f\u4e0a\u6765\u8bf4\u5c31\u662f\u65e0\u7f1d\u5207\u6362\u3002\u4f46\u8fd8\u6709\u4e2a\u95ee\u9898\uff0c\u8fd9\u548cffmpeg\u6709\u4ec0\u4e48\u5173\u7cfb\uff1f\u6211\u4eec\u7528\u7684\u662f\u8fdc\u7a0b\u684c\u9762\uff0c\u8fdc\u7a0b\u684c\u9762\u5173\u4e86\u5e76\u4e0d\u4f1a\u5bfc\u81f4\u865a\u62df\u673a\u5173\u673a\uff0c\u4e5f\u4e0d\u4f1a\u5173\u95ed\u865a\u62df\u673a\u7684\u663e\u793a\u5c4f\u3002\u4e0d\u8fc7\u8fdc\u7a0b\u8fde\u63a5\u7684\u65f6\u5019\u88ab\u8fde\u63a5\u7684\u7269\u7406\u673a\u4f1a\u88ab\u5f39\u56de\u5230\u767b\u5f55\u754c\u9762\uff0c\u8fd9\u70b9\u8fd8\u662f\u6211\u5076\u7136\u53d1\u73b0\u7684\u3002<\/p>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color has-link-color wp-elements-772ea23a1a68d31e92fdf1e3a400ccbf\">\n<p>\u89e3\u51b3\u65b9\u6848<\/p>\n<cite><em>\u4e0d\u70b9\u6700\u5c0f\u5316\uff0c\u5b8c\u4e8b<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u4e00\u822c\u6765\u8bf4\u5e73\u65f6\u4e5f\u5f88\u96be\u78b0\u5230ffmpeg+\u8fdc\u7a0b\u684c\u9762\u7684\u573a\u666f\u3002\u5982\u679c\u771f\u78b0\u5230\u4e86\uff0c\u4e0d\u70b9\u6700\u5c0f\u5316\u90a3\u4e2a\u6309\u94ae\u5c31\u884c\u3002\u6211\u8bd5\u4e86\u51e0\u6b21\uff0c\u53d1\u73b0\u5b83\u7684\u89e6\u53d1\u673a\u5236\u5e94\u8be5\u662f\u70b9\u51fb\u201c\u6700\u5c0f\u5316\u201d\u6309\u94ae\u4e4b\u540e\u5c31\u4f1a\u628aGUI\u505c\u6389\u3002<\/p>\n\n\n\n<p>\u6240\u4ee5\u4f60\u4e0d\u70b9\u5b83\u5c31\u884c\u4e86\u3002\u4f60\u53ef\u4ee5\u628a\u7a97\u53e3\u62d6\u7684\u5f88\u5c0f\uff1b\u4e5f\u53ef\u4ee5\u4e0d\u5168\u5c4f\uff0c\u901a\u8fc7\u70b9\u51fb\u7a97\u53e3\u5916\u9762\u7684\u90e8\u5206\u6765\u805a\u7126\u65b0\u7684\u7a97\u53e3\uff0c\u6b64\u65f6\u8fdc\u7a0b\u684c\u9762\u53ea\u662f\u5728\u5c4f\u5e55\u4e0a\u663e\u793a\u7684\u201c\u5c42\u7ea7\u201d\u53d8\u4e86\uff0c\u5b83\u7684GUI\u754c\u9762\u8fd8\u662f\u5728\u6b63\u5e38\u8dd1\u7740\u3002<\/p>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color has-link-color wp-elements-b2a9116a6abaf58e8b4d0173338f326f\">\n<p>\u4e3a\u4ec0\u4e48ffmpeg\u5f55\u5236\u4f1a\u4e2d\u65ad<\/p>\n<cite><em>\u4e24\u79cd\u60f3\u6cd5<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u8bb2\u771f\u8fd9\u90fd\u662f\u63a8\u6d4b\uff0c\u6211\u6709\u4e24\u79cd\u601d\u8def\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote has-vivid-cyan-blue-color has-text-color\">\n<p>\u5199\u8005\u6ce8<\/p>\n<cite>\u4ffa\u5bfb\u601d&#8230;..<\/cite><\/blockquote>\n\n\n\n<ul>\n<li>\u6211\u4eec\u7684ffmpeg\u7684\u6e90\u8bbe\u7f6e\u4e3adesktop\uff0c\u5373\u684c\u9762\u3002\u684c\u9762\u8fd9\u4e2a\u6700\u5927\u7684GUI\u754c\u9762\u90fd\u6ca1\u4e86\uff0c\u90a3ffmpeg\u80af\u5b9a\u627e\u4e0d\u5230\u80fd\u6355\u83b7\u7684\u6e90\uff0c\u6240\u4ee5\u624d\u4f1a\u4e2d\u65ad\u5f55\u5236\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u4f46\u662f\u8fd9\u4e2a\u601d\u8def\u4e0d\u592a\u5bf9\u52b2\uff0c\u5c31\u50cf\u6211\u4eec\u4e0a\u9762\u8bf4\u7684\u90a3\u6837\uff0c\u4f60\u6539\u8fdc\u7a0b\u684c\u9762\u7684\u5206\u8fa8\u7387\u4e5f\u597d\uff0c\u5173\u95ed\u8fdc\u7a0b\u684c\u9762\u4e5f\u597d\uff0c\u90fd\u4e0d\u4f1a\u5f71\u54cd\u5230\u88ab\u8fde\u63a5\u4e3b\u673a\u7684\u684c\u9762\u3002\u4f60\u901a\u8fc7\u8fdc\u7a0b\u8fde\u63a5\u5728cmd\u8f93\u4e2a\u6307\u4ee4\u8dd1\u4e2apython\uff0c\u8fdc\u7a0b\u8fde\u63a5\u5173\u95ed\u4e4b\u540epython\u7a0b\u5e8f\u4e5f\u4f1a\u8ddf\u7740\u505c\u5417\uff1f\u5f88\u660e\u663e\u4e0d\u4f1a\u3002<\/p>\n\n\n\n<p>\u8fd8\u6709\u4e00\u79cd\u601d\u8def<\/p>\n\n\n\n<ul>\n<li>gdigrab\u662f\u57fa\u4e8eWin32\u7684GDI\uff0c\u5373\u56fe\u5f62\u663e\u793a\u63a5\u53e3\u7684\u5c4f\u5e55\u6355\u83b7\u8bbe\u5907\u3002\u5982\u679c\u8fdc\u7a0b\u8fde\u63a5\u6700\u5c0f\u5316\uff0c\u6b64\u65f6\u7269\u7406\u673a\u5904\u4e8e\u767b\u5f55\u754c\u9762\uff0c\u800c\u8fdc\u7a0b\u684c\u9762\u53c8\u8fdb\u5165\u7684\u65e0GUI\u6a21\u5f0f\u3002\u90a3\u4e48\u6b64\u65f6GDI\u53ef\u80fd\u5904\u4e8e\u5173\u95ed\u72b6\u6001\u2014\u2014\u56e0\u4e3aGDI\u627e\u4e0d\u5230\u4efb\u4f55\u4e00\u4e2a\u53ef\u7528\u7684GUI\u754c\u9762\u3002\u5bfc\u81f4gdigrab\u6355\u83b7\u7740\u6355\u83b7\u7740\uff0c\u53d1\u73b0\u63a5\u53e3\u5173\u4e86\uff0c\u6240\u4ee5ffmpeg\u5f55\u5236\u4e2d\u65ad\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u6211\u4e2a\u4eba\u89c9\u5f97\u540e\u8005\u66f4\u5408\u7406\u4e9b\u3002\u4e0d\u8fc7\u6211\u4e5f\u6ca1\u770b\u6e90\u7801\uff0c\u800c\u4e14\u53ef\u80fd\u548cRDP\u7684\u5b9e\u73b0\u539f\u7406\u6709\u5173\u3002\u8fdc\u7a0b\u684c\u9762\u5230\u5e95\u662f\u5c06\u5565\u63a8\u6d41\u7ed9\u4f60\u7684\uff0c\u8fd9\u6211\u4e5f\u8fd8\u6ca1\u4ed4\u7ec6\u770b\u8fc7\u3002\u4ee5\u540e\u6709\u65f6\u95f4\u53ef\u80fd\u518d\u8865\u5145\u8865\u5145\uff0c\u8fd9\u91cc\u5c31\u5148\u8fc7\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u5c0f\u5316\u8fdc\u7a0b\u684c\u9762\u4f1a\u4e2d\u65adffmpeg\u7684\u5f55\u5236<\/p>\n","protected":false},"author":1,"featured_media":6617,"comment_status":"open","ping_status":"","sticky":false,"template":"base","format":"standard","meta":{"footnotes":""},"categories":[141],"tags":[142,85,143],"_links":{"self":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/6612"}],"collection":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/comments?post=6612"}],"version-history":[{"count":0,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/6612\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media\/6617"}],"wp:attachment":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media?parent=6612"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/categories?post=6612"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/tags?post=6612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}