{"id":7739,"date":"2024-03-12T10:53:31","date_gmt":"2024-03-12T02:53:31","guid":{"rendered":"https:\/\/white-night.club\/?p=7739"},"modified":"2024-04-19T11:21:42","modified_gmt":"2024-04-19T03:21:42","slug":"pg28","status":"publish","type":"post","link":"https:\/\/white-night.club\/index.php\/2024\/03\/12\/pg28\/","title":{"rendered":"\u4ece\u6e90\u7801\u5206\u6790\u201c\u6700\u5c0f\u5316\u8fdc\u7a0b\u684c\u9762\u4f1a\u4e2d\u65adffmpeg\u7684\u5f55\u5236\u201d\u95ee\u9898"},"content":{"rendered":"\n<p>\u4e3b\u8981\u8fd8\u662f\u4e0b\u9762\u8fd9\u4e2a\u95ee\u9898\u3002\u6700\u8fd1\u4e00\u76f4\u5728\u601d\u8003\u8fd9\u4e2a\u95ee\u9898\u5230\u5e95\u662f\u4ec0\u4e48\u539f\u56e0\u5bfc\u81f4\u7684\u3002\u601d\u6765\u60f3\u53bb\u51b3\u5b9a\u8fd8\u662f\u5f97\u770b\u4e00\u770bffmpeg\u7684\u6e90\u7801\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/white-night.club\/index.php\/2024\/01\/29\/trivia1\/\">Windows\u51b7\u77e5\u8bc6\uff1a\u6700\u5c0f\u5316\u8fdc\u7a0b\u684c\u9762\u4e0effmpeg<\/a><\/p>\n\n\n\n<p>ffmpeg\u4e3b\u8981\u8fd8\u662f\u7528C\u5199\u7684\uff0c\u8bfb\u8d77\u6765\u95ee\u9898\u4e0d\u5927\u3002\u770b\u4e86\u6e90\u7801\u4e4b\u540e\u53d1\u73b0\u4e4b\u524d\u7684\u601d\u8def\u6709\u4e9b\u5730\u65b9\u4e0d\u592a\u5bf9\uff0c\u4e0d\u8fc7\u95ee\u9898\u4e5f\u4e0d\u5927\u3002<\/p>\n\n\n\n<p>\u5f53\u7136\u95ee\u9898\u6765\u6e90\u8fd8\u662f\u6ca1\u9519\u7684\uff0c\u786e\u5b9e\u662fgdigrab\u7684\u62a5\u9519\u4fe1\u606f\u3002\u5177\u4f53\u7684\u62a5\u9519\u4fe1\u606f\u6839\u636e\u5b9e\u9645\u573a\u666f\u7684\u4e0d\u540c\uff0c\u8bd5\u4e86\u4e0b\u6709\u4e24\u79cd<\/p>\n\n\n\n<ul>\n<li>\u53ea\u62a5<em>Failed to capture image<\/em><\/li>\n\n\n\n<li>\u5148\u62a5<em>Couldn&#8217;t get cursor info<\/em>\uff0c<em>\u518d\u62a5Failed to capture image<\/em><\/li>\n<\/ul>\n\n\n\n<p>\u4e00\u822c\u90fd\u662f\u7b2c\u4e00\u79cd\u60c5\u51b5\uff0c\u7b2c\u4e8c\u79cd\u60c5\u51b5\u524d\u51e0\u5929\u8fd8\u80fd\u590d\u73b0\uff0c\u4eca\u5929\u8bd5\u4e86\u4e0b\u53c8\u6ca1\u6cd5\u590d\u73b0\u4e86\u3002\u4f46\u65e2\u7136\u4f1a\u51fa\u73b0\u8fd9\u4e2a\u95ee\u9898\uff0c\u90a3\u8fd8\u662f\u987a\u4fbf\u5206\u6790\u5206\u6790\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-b9656490855f8d3eb1618e2b43c1e9da\">\n<p>Couldn&#8217;t get cursor info<\/p>\n<cite><em>\u4ece\u62a5\u9519\u4fe1\u606f\u5165\u624b<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u6839\u636e\u62a5\u9519\u4fe1\u606f\u7684\u5148\u540e\u987a\u5e8f\uff0c\u5148\u770b\u770bcursor info\u3002\u9996\u5148\u8fd8\u662f\u5f97\u4ece\u62a5\u9519\u4fe1\u606f\u5165\u624b\u3002\u5f55\u5236\u88ab\u4e2d\u65ad\u7684\u65f6\u5019\u547d\u4ee4\u884c\u4f1a\u8f93\u51fa<em>Couldn&#8217;t get cursor info<\/em>\u8fd9\u6761\u62a5\u9519\u4fe1\u606f\u3002\u65e2\u7136ffmpeg\u5f00\u6e90\uff0c\u90a3\u80af\u5b9a\u662f\u53bb\u6e90\u7801\u91cc\u627e\u8fd9\u6761\u62a5\u9519\u4fe1\u606f\u662f\u5728\u4ec0\u4e48\u60c5\u51b5\u4e0b\u51fa\u73b0\u7684\u3002<\/p>\n\n\n\n<p>\u628affmpeg\u7684\u4ed3\u5e93git clone\u5230\u672c\u5730\u4e4b\u540e\uff0c\u76f4\u63a5\u5f00\u641c\u3002\u6700\u540e\u5728gdigrab.h\u91cc\u9762\u627e\u5230\u4e86\u8fd9\u6761\u4ee3\u7801<\/p>\n\n\n\n<figure class=\"wp-block-image size-full has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"749\" height=\"268\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-10.png\" alt=\"\" class=\"wp-image-7745\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-10.png 749w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-10-300x107.png 300w\" sizes=\"(max-width: 749px) 100vw, 749px\" \/><\/figure>\n\n\n\n<p>\u8fd9\u91cc\u662felse\uff0c\u90a3\u80af\u5b9a\u5f97\u5f80\u4e0a\u7ffb\u7ffb\u770b\u770bif\u6761\u4ef6\u662f\u4ec0\u4e48\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"772\" height=\"363\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-11.png\" alt=\"\" class=\"wp-image-7746\" style=\"border-style:none;border-width:0px;border-radius:0px;width:751px;height:auto\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-11.png 772w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-11-300x141.png 300w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-11-768x361.png 768w\" sizes=\"(max-width: 772px) 100vw, 772px\" \/><\/figure>\n\n\n\n<p>Cursor\u90a3\u5c31\u662f\u9f20\u6807\u5149\u6807\uff0cpaint_mouse_pointer\u51fd\u6570\u4e5f\u544a\u8bc9\u4f60\u4e86\u8fd9\u51fd\u6570\u548c\u9f20\u6807\u5149\u6807\u6709\u5173\u3002<\/p>\n\n\n\n<p>\u518d\u770b\u770bGetCursorInfo\uff0c\u5f53\u5b83\u8fd4\u56deFalse\u7684\u65f6\u5019\u5c31\u4f1a\u8fdb\u5165CURSOR_ERROR\u3002\u90a3\u770b\u770bGetCursorInfo\u4ec0\u4e48\u65f6\u5019\u8fd4\u56deFalse\u3002\u4f46\u662f&#8230;.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"663\" height=\"226\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-13.png\" alt=\"\" class=\"wp-image-7748\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-13.png 663w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-13-300x102.png 300w\" sizes=\"(max-width: 663px) 100vw, 663px\" \/><\/figure>\n\n\n\n<p>\u70b9\u8fdb\u53bb\u4e4b\u540e\u53d1\u73b0\u662fWINUSERAPI\uff0c\u76f4\u63a5\u8c03\u7528\u7684\u662f\u672c\u5730C\u7f16\u8bd1\u5668\u7684\u5934\u6587\u4ef6winuser.h\u3002\u518d\u4ed4\u7ec6\u4e00\u770b\uff0cWINUSERAPI\uff0c\u4e0d\u7528\u60f3\u90fd\u77e5\u9053\u80af\u5b9a\u662fWindows\u81ea\u8eab\u63d0\u4f9b\u7684API\u3002\u90a3\u53ea\u80fd\u53bb\u5fae\u8f6f\u6587\u6863\u770b\u770b\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/learn.microsoft.com\/en-us\/windows\/win32\/api\/winuser\/nf-winuser-getcursorinfo\">GetCursorInfo \u51fd\u6570 \uff08winuser.h\uff09<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-full has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"864\" height=\"444\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-12.png\" alt=\"\" class=\"wp-image-7750\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-12.png 864w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-12-300x154.png 300w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-12-768x395.png 768w\" sizes=\"(max-width: 864px) 100vw, 864px\" \/><\/figure>\n\n\n\n<p>\u90a3\u63a5\u4e0b\u6765\u770b\u770bGetCursorInfo\u4ec0\u4e48\u65f6\u5019\u8fd4\u56defalse\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"717\" height=\"256\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-14.png\" alt=\"\" class=\"wp-image-7751\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-14.png 717w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-14-300x107.png 300w\" sizes=\"(max-width: 717px) 100vw, 717px\" \/><\/figure>\n\n\n\n<p>\u62ff\u5149\u6807\u4fe1\u606f\u7684\u65f6\u5019\u62a5\u9519\u5c31\u8fd4\u56defalse\u5457\u3002\u800ccursorinfo\u662f\u4e2a\u7ed3\u6784\u4f53\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"371\" height=\"230\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-15.png\" alt=\"\" class=\"wp-image-7752\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-15.png 371w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-15-300x186.png 300w\" sizes=\"(max-width: 371px) 100vw, 371px\" \/><\/figure>\n\n\n\n<ul>\n<li>cbSize\uff1a\u7ed3\u6784\u4f53\u5927\u5c0f<\/li>\n\n\n\n<li>flags\uff1a\u5149\u6807\u72b6\u6001\u3002<\/li>\n\n\n\n<li>hCursor\uff1a\u5149\u6807\u53e5\u67c4\uff0c<\/li>\n\n\n\n<li>ptScreenPos\uff1a\u5149\u6807\u5728\u5c4f\u5e55\u4e0a\u7684\u4f4d\u7f6e\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u7b80\u5355\u6765\u8bf4\uff0c\u5f53ffmpeg\u62ff\u4e0d\u5230\u5c4f\u5e55\u4e0a\u5149\u6807\u7684\u4fe1\u606f\u7684\u65f6\u5019\u5c31\u4f1a\u62a5\u9519\u3002\u8054\u7cfb\u5230\u8fdc\u7a0b\u684c\u9762\u7684\u8bdd\u53ef\u80fd\u662f\u6700\u5c0f\u5316\/\u5173\u95ed\u8fdc\u7a0b\u684c\u9762\u540e\uff0c\u8fdc\u7a0b\u4e3b\u673a\u7684\u754c\u9762\u4e0a\u662f\u6ca1\u6709\u5149\u6807\u7684\uff0c\u81ea\u7136\u800c\u7136\u62ff\u4e0d\u5230cursorinfo\u3002<\/p>\n\n\n\n<p>\u5f53\u7136\u8fd9\u662f\u63a8\u6d4b\uff0c\u4e00\u65b9\u9762\u662fcursorinfo\u548cgetcursorinfo\u7684\u6e90\u7801\u90fd\u6ca1\u5f00\u6e90\uff1b\u53e6\u4e00\u65b9\u9762\u662f\u524d\u51e0\u5929\u8fd8\u80fd\u590d\u73b0\u8fd9\u4e2a\u95ee\u9898\uff0c\u4eca\u5929\u600e\u4e48\u8bd5\u90fd\u590d\u73b0\u4e0d\u4e86\uff0c\u8fd8\u662f\u633a\u641e\u5fc3\u6001\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-90e0fa0d5f2c3a600cb49388e61c25d5\">\n<p>Failed to capture image<\/p>\n<cite><em>\u8fd8\u662fgdigrab.c<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u8fd8\u662f\u5728gdigrab.c\u91cc\u9762\uff0c\u80fd\u627e\u5230<em>Failed to capture image<\/em>\u7684\u6765\u6e90\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"653\" height=\"235\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-16.png\" alt=\"\" class=\"wp-image-7755\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-16.png 653w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-16-300x108.png 300w\" sizes=\"(max-width: 653px) 100vw, 653px\" \/><\/figure>\n\n\n\n<p>\u770b\u5230WIN32\uff0c\u90a3\u80af\u5b9a\u8fd8\u662f\u548cwindows\u672c\u8eab\u7684API\u6709\u5173\u7cfb\uff0c\u6bd5\u7adf\u5934\u6587\u4ef6\u90fd\u53ebgdigrab\uff08GDI\uff1a<s>\u5168\u7403\u9632&#8230;<\/s>Graphics Device Interface\uff09\u4e86\u3002<\/p>\n\n\n\n<p>\u4e3b\u8981\u662fBitBlt\uff0cBitBlt\u8fd4\u56defalse\u7684\u65f6\u5019\u624d\u4f1a\u62a5\u9519\u3002\u90a3\u770b\u770bbitblt\u662f\u4ec0\u4e48\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/learn.microsoft.com\/en-us\/windows\/win32\/api\/wingdi\/nf-wingdi-bitblt\">BitBlt \u51fd\u6570 \uff08wingdi.h\uff09<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-full has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"880\" height=\"455\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-17.png\" alt=\"\" class=\"wp-image-7758\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-17.png 880w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-17-300x155.png 300w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-17-768x397.png 768w\" sizes=\"(max-width: 880px) 100vw, 880px\" \/><\/figure>\n\n\n\n<p>\u770b\u7740\u633a\u6a21\u7cca\u7684\uff0c\u4ec0\u4e48\u53eb\u5c06\u989c\u8272\u6570\u636e\u4ece\u539f\u8bbe\u5907\u4f20\u8f93\u5230\u76ee\u6807\u8bbe\u5907\uff1f\u76ee\u524d\u552f\u4e00\u77e5\u9053\u7684\u662f\u5f53\u8be5\u51fd\u6570\u6267\u884c\u5931\u8d25\u65f6\u8fd4\u56defalse\u3002\u4e0d\u8fc7\u597d\u5728\u5b98\u65b9\u7ed9\u4e86\u7528\u4f8b\uff1a<strong>BitBlt\u53ef\u7528\u4e8e\u5c4f\u5e55\u622a\u56fe<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"885\" height=\"540\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-18.png\" alt=\"\" class=\"wp-image-7760\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-18.png 885w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-18-300x183.png 300w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-18-768x469.png 768w\" sizes=\"(max-width: 885px) 100vw, 885px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"877\" height=\"325\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-19.png\" alt=\"\" class=\"wp-image-7761\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-19.png 877w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-19-300x111.png 300w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-19-768x285.png 768w\" sizes=\"(max-width: 877px) 100vw, 877px\" \/><\/figure>\n\n\n\n<p>\u8fd9\u91cc\u7684\u201cDC\u201d\u6307\u7684\u662f\u201cdevice context\u201d\uff0c\u5373\u201c\u8bbe\u5907\u4e0a\u4e0b\u6587\u201d\u3002\u5b98\u65b9\u4e5f\u7ed9\u51fa\u4e86\u76f8\u5e94\u7684\u89e3\u91ca\u3002DC\u5c31\u50cf\u8bbe\u5907\u7684\u201c\u7ed8\u753b\u6307\u5bfc\u4e66\u201d\uff1a\u8be5\u753b\u5565\uff0c\u7528\u5565\u989c\u8272\uff0c\u753b\u5b8c\u8be5\u653e\u54ea\uff0c\u8fd9\u672c\u201c\u4e66\u201d\u91cc\u9762\u90fd\u6709\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/learn.microsoft.com\/en-us\/cpp\/mfc\/device-contexts?view=msvc-170\">Device Contexts<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/learn.microsoft.com\/en-us\/windows\/win32\/gdi\/about-device-contexts\">About Device Contexts<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-full has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"885\" height=\"200\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-20.png\" alt=\"\" class=\"wp-image-7762\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-20.png 885w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-20-300x68.png 300w, https:\/\/white-night.club\/wp-content\/uploads\/2024\/03\/image-20-768x174.png 768w\" sizes=\"(max-width: 885px) 100vw, 885px\" \/><\/figure>\n\n\n\n<p>\u56de\u5230\u6b63\u6587\uff0c\u5f53\u6211\u4eec\u6267\u884c\u4e0b\u9762\u8fd9\u6761\u6307\u4ee4\u7684\u65f6\u5019\uff0c\u5c31\u4f1a\u8c03\u7528\u5230BitBlt\u3002\u7b80\u5355\u6765\u8bf4\u5c31\u662fffmpeg\u8c03\u7528BitBlt\u6355\u83b7\u684c\u9762\u56fe\u50cf\uff0c\u518d\u5c06\u56fe\u50cf\u590d\u5236\u5230\u5185\u5b58\u7684DC\u4e2d\u7684\u4f4d\u56fe\u3002ffmpeg\u518d\u4ece\u8fd9\u4e2a\u4f4d\u56fe\u8bfb\u53d6\u6570\u636e\u5c06\u5176\u8f6c\u6362\u4e3a\u89c6\u9891\u5e27\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);--cbp-line-highlight-color:rgba(234, 191, 191, 0.2);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"ffmpeg -f gdigrab -i desktop output.mp4\" style=\"color:#D4D4D4;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">ffmpeg<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">-f<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">gdigrab<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">-i<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">desktop<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">output.mp4<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u800cBitBlt\u6267\u884c\u5931\u8d25\u7684\u65f6\u5019\u5c31\u4f1a\u8fd4\u56defalse\u3002\u90a3\u4e48\u5185\u5b58\u80af\u5b9a\u662f\u6ca1\u95ee\u9898\u7684\uff0c\u4e0d\u4f1a\u8bf4\u8fdc\u7a0b\u684c\u9762\u5173\u4e86\u4e4b\u540e\u5185\u5b58\u5c31\u4e0d\u53ef\u7528\u4e86\u3002ffmpeg\u4e5f\u6ca1\u95ee\u9898\uff0c\u90a3\u95ee\u9898\u53ea\u80fd\u5728\u201d\u83b7\u53d6\u5c4f\u5e55\u201c\u8fd9\u4e0a\u9762\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>\u6709\u4e00\u4e2a\u6bd4\u8f83\u62bd\u8c61\u7684\u95ee\u9898\u3002\u6211\u5728\u7528sanfor\u7684HCI\u5e73\u53f0\u7684\u65f6\u5019\uff0c\u4e5f\u662f\u7528\u63a7\u5236\u53f0\u7136\u540e\u8fdc\u7a0b\u8fde\u63a5\u5230\u6267\u884c\u673a\uff0c\u4f46\u662f\u5173\u95ed\u6807\u7b7e\u9875\u4e4b\u540e\u5bf9ffmpeg\u7684\u5f55\u5c4f\u6ca1\u6709\u4efb\u4f55\u5f71\u54cd\u3002<br>\u4f46\u5982\u679c\u662f\u63a7\u5236\u53f0\u76f4\u63a5\u53bb\u770b\u6267\u884c\u673a\uff0c\u5173\u95ed\u6807\u7b7e\u9875\u4e4b\u540e\u867d\u7136\u4e0d\u4f1a\u4e2d\u65ad\u5f55\u5236\uff0c\u4f46\u5f55\u5236\u51fa\u6765\u7684\u89c6\u9891\u4f1a\u5361\u5728\u67d0\u4e00\u5e27\u3002\u770b\u5f55\u5236\u51fa\u6765\u7684\u89c6\u9891\u7684\u65f6\u5019\u53d1\u73b0\u7cfb\u7edf\u65f6\u95f4\u90fd\u4e0d\u5e26\u52a8\u7684\uff0c\u5c31\u50cf\u622a\u4e86\u67d0\u4e2a\u65f6\u95f4\u70b9\u7684\u56fe\u7136\u540e\u628a\u8fd9\u5f20\u56fe\u8f6c\u6362\u6210\u4e86\u89c6\u9891\u4e00\u6837\u3002<br>\u66f4\u5e95\u5c42\u7684\u4e1c\u897f\u5c31\u548cHCI\u63a7\u5236\u53f0\u7684\u5b9e\u73b0\u539f\u7406\u6709\u5173\u4e86\uff0c\u63a5\u89e6\u4e0d\u5230\uff0c\u6240\u4ee5\u8fd9\u91cc\u53ea\u662f\u987a\u5e26\u63d0\u4e00\u5634\u3002<\/cite><\/blockquote>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>GetCursorInfo &#038;&#038; BitBlt<\/p>\n","protected":false},"author":1,"featured_media":7745,"comment_status":"open","ping_status":"","sticky":false,"template":"base","format":"standard","meta":{"footnotes":""},"categories":[169,33],"tags":[168,142,85],"_links":{"self":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/7739"}],"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=7739"}],"version-history":[{"count":0,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/7739\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media\/7745"}],"wp:attachment":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media?parent=7739"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/categories?post=7739"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/tags?post=7739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}