{"id":132,"date":"2026-10-17T12:03:25","date_gmt":"2026-10-17T04:03:25","guid":{"rendered":"http:\/\/laoke.pw\/?p=132"},"modified":"2026-10-17T12:03:25","modified_gmt":"2026-10-17T04:03:25","slug":"94-ffmpeg-%e4%b8%80%e6%9d%a1%e5%91%bd%e4%bb%a4%ef%bc%8c%e9%a1%b6%e6%8e%89%e4%b8%80%e5%a0%86%e5%8a%a0%e6%b0%b4%e5%8d%b0%e7%9a%84%e8%bd%ac%e7%a0%81%e8%bd%af%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/laoke.pw\/?p=132","title":{"rendered":"94 FFmpeg \u2014\u2014 \u4e00\u6761\u547d\u4ee4\uff0c\u9876\u6389\u4e00\u5806\u52a0\u6c34\u5370\u7684\u8f6c\u7801\u8f6f\u4ef6"},"content":{"rendered":"<p>\u4e00\u53e5\u8bdd\u5b9a\u4f4d\uff1aFFmpeg \u662f\u97f3\u89c6\u9891\u5904\u7406\u9886\u57df\u6700\u5e95\u5c42\u7684\u5f00\u6e90\u5de5\u5177\uff0c\u6ca1\u6709\u754c\u9762\u3001\u53ea\u6709\u547d\u4ee4\u884c\uff0c\u4f46\u683c\u5f0f\u8f6c\u6362\u3001\u538b\u7f29\u3001\u526a\u8f91\u3001\u5408\u5e76\u3001\u63d0\u53d6\u97f3\u8f68\u3001\u5f55\u5c4f\u3001\u52a0\u5b57\u5e55\u8fd9\u4e9b\u4e8b\u5b83\u5168\u80fd\u5e72\uff0c\u800c\u4e14\u514d\u8d39\u3001\u65e0\u6c34\u5370\u3001\u53ef\u6279\u91cf\u3002<\/p>\n<h2>\u75db\u70b9\uff1a\u4e00\u6b21\u8f6c\u7801\uff0c\u88ab\u903c\u7740\u88c5\u4e00\u5806\u8f6f\u4ef6<\/h2>\n<p>\u65e5\u5e38\u5de5\u4f5c\u91cc\u548c\u89c6\u9891\u6253\u4ea4\u9053\u7684\u573a\u666f\u5176\u5b9e\u5f88\u96f6\u788e\uff1a\u628a\u624b\u673a\u62cd\u7684 MOV \u8f6c\u6210 MP4 \u53d1\u7ed9\u522b\u4eba\uff0c\u628a\u4e00\u6bb5 2GB \u7684\u5f55\u5c4f\u538b\u5230 200MB \u4ee5\u5185\uff0c\u4ece\u89c6\u9891\u91cc\u628a\u80cc\u666f\u97f3\u4e50\u62bd\u51fa\u6765\uff0c\u628a\u5341\u4e2a\u7247\u6bb5\u62fc\u6210\u4e00\u4e2a\uff0c\u7ed9\u4e00\u5806\u7d20\u6750\u7edf\u4e00\u8f6c\u6210\u7ad6\u5c4f\u3002\u5e02\u9762\u4e0a\u7684\u8f6c\u6362\u8f6f\u4ef6\uff0c\u514d\u8d39\u7248\u666e\u904d\u9650\u65f6\u957f\u3001\u52a0\u6c34\u5370\u3001\u9650\u5e76\u53d1\uff0c\u4ed8\u8d39\u7248\u4e00\u5e74\u51e0\u767e\u5757\uff1b\u4e13\u4e1a\u526a\u8f91\u8f6f\u4ef6\u80fd\u505a\u7684\u4e8b\u66f4\u591a\uff0c\u4f46\u4e3a\u4e86\u8f6c\u4e2a\u683c\u5f0f\u6253\u5f00\u4e00\u4e2a\u51e0\u767e MB \u7684\u5de5\u7a0b\uff0c\u5b9e\u5728\u662f\u7528\u5927\u70ae\u6253\u868a\u5b50\u3002\u66f4\u9ebb\u70e6\u7684\u662f\u6279\u91cf\u573a\u666f\uff1a\u4e09\u5341\u4e2a\u6587\u4ef6\u8981\u540c\u4e00\u5957\u53c2\u6570\uff0c\u56fe\u5f62\u754c\u9762\u53ea\u80fd\u4e00\u4e2a\u4e2a\u6392\u961f\u70b9\uff0c\u547d\u4ee4\u884c\u4e00\u6761\u5faa\u73af\u5c31\u641e\u5b9a\u3002<\/p>\n<h2>\u6838\u5fc3\u80fd\u529b<\/h2>\n<ul>\n<li><strong>\u683c\u5f0f\u901a\u5403<\/strong>\uff1a\u51e0\u4e4e\u5e02\u9762\u4e0a\u6240\u6709\u5bb9\u5668\u548c\u7f16\u7801\u90fd\u652f\u6301\uff0cMOV\u3001MKV\u3001AVI\u3001WebM\u3001FLAC\u3001AAC\u3001Opus \u4e4b\u95f4\u968f\u610f\u8f6c\u6362\u3002<\/li>\n<li><strong>\u4f53\u79ef\u53ef\u63a7<\/strong>\uff1a\u7528 CRF \u6052\u5b9a\u8d28\u91cf\u6a21\u5f0f\uff0c\u6216\u76f4\u63a5\u6307\u5b9a\u76ee\u6807\u7801\u7387\uff0c\u538b\u7f29\u6bd4\u4e0e\u753b\u8d28\u81ea\u5df1\u6743\u8861\u3002<\/li>\n<li><strong>\u786c\u4ef6\u52a0\u901f<\/strong>\uff1a\u652f\u6301 NVIDIA NVENC\u3001Intel QSV\u3001AMD AMF\uff0c\u8f6c\u7801\u901f\u5ea6\u80fd\u63d0\u5347\u6570\u500d\u3002<\/li>\n<li><strong>\u526a\u8f91\u4e0e\u62fc\u63a5<\/strong>\uff1a<code>-ss<\/code> \u548c <code>-t<\/code> \u7cbe\u786e\u622a\u53d6\u7247\u6bb5\uff0c<code>concat<\/code> \u628a\u591a\u4e2a\u6587\u4ef6\u65e0\u635f\u62fc\u6210\u4e00\u4e2a\u3002<\/li>\n<li><strong>\u97f3\u8f68\u4e0e\u5b57\u5e55<\/strong>\uff1a\u62bd\u51fa\u97f3\u9891\u3001\u66ff\u6362\u97f3\u8f68\u3001\u70e7\u5f55\u5b57\u5e55\u3001\u5185\u5d4c\u5b57\u5e55\u8f68\u9053\u90fd\u80fd\u505a\u3002<\/li>\n<li><strong>\u753b\u9762\u5904\u7406<\/strong>\uff1a\u7f29\u653e\u3001\u88c1\u526a\u3001\u65cb\u8f6c\u3001\u52a0\u6c34\u5370\u3001\u8c03\u5e27\u7387\u3001\u751f\u6210 GIF \u7f29\u7565\u56fe\u3002<\/li>\n<li><strong>\u5f55\u5c4f\u4e0e\u63a8\u6d41<\/strong>\uff1aWindows \u4e0b\u7528 <code>gdigrab<\/code> \u76f4\u63a5\u5f55\u684c\u9762\uff0c\u4e5f\u80fd\u63a8\u5230 RTMP \u670d\u52a1\u5668\u3002<\/li>\n<li><strong>\u53ef\u811a\u672c\u5316<\/strong>\uff1a\u4e00\u6761 <code>for<\/code> \u5faa\u73af\u5904\u7406\u6574\u4e2a\u6587\u4ef6\u5939\uff0c\u914d\u5408\u8ba1\u5212\u4efb\u52a1\u5c31\u662f\u4e00\u5957\u81ea\u52a8\u6d41\u6c34\u7ebf\u3002<\/li>\n<\/ul>\n<h2>\u5b9e\u6d4b\u4f53\u9a8c<\/h2>\n<p>\u6211\u62ff\u4e00\u6bb5 2.4GB \u7684 1080p \u5f55\u5c4f\u505a\u538b\u7f29\u6d4b\u8bd5\u3002\u7528 H.264 \u7684 CRF 23 \u91cd\u65b0\u7f16\u7801\uff0c\u8f93\u51fa 780MB \u5de6\u53f3\uff0c\u753b\u9762\u7ec6\u8282\u5728\u6b63\u5e38\u89c2\u770b\u8ddd\u79bb\u4e0b\u51e0\u4e4e\u770b\u4e0d\u51fa\u5dee\u522b\uff0c\u53ea\u6709\u5feb\u901f\u8fd0\u52a8\u7684\u5b57\u5e55\u8fb9\u7f18\u6709\u8f7b\u5fae\u6d82\u62b9\u611f\uff0c\u8017\u65f6\u7ea6\u5341\u4e00\u5206\u949f\uff08\u516b\u6838 CPU\uff09\u3002\u540c\u4e00\u6bb5\u7d20\u6750\u5207\u5230 NVENC \u786c\u4ef6\u7f16\u7801\uff0c\u4e24\u5206\u949f\u4e0d\u5230\u5c31\u8dd1\u5b8c\uff0c\u6587\u4ef6\u7565\u5927\u4e00\u4e9b\uff08\u7ea6 900MB\uff09\uff0c\u753b\u8d28\u5dee\u5f02\u5728\u653e\u5927\u5230 200% \u9010\u5e27\u5bf9\u6bd4\u65f6\u624d\u660e\u663e\u3002<\/p>\n<p>\u6279\u91cf\u573a\u666f\u66f4\u80fd\u4f53\u73b0\u4ef7\u503c\u3002\u6211\u628a\u4e00\u4e2a\u6587\u4ef6\u5939\u91cc\u4e09\u5341\u591a\u4e2a\u624b\u673a\u89c6\u9891\u7edf\u4e00\u8f6c\u6210 1080p\u300130fps \u7684 MP4\uff0c\u5199\u4e00\u6761\u5faa\u73af\u547d\u4ee4\uff0c\u53bb\u6ce1\u4e86\u676f\u5496\u5561\u56de\u6765\u5c31\u5168\u597d\u4e86\uff0c\u6587\u4ef6\u540d\u89c4\u5219\u7edf\u4e00\uff0c\u4e0d\u7528\u4e00\u4e2a\u4e2a\u70b9\u3002\u63d0\u53d6\u97f3\u8f68\u66f4\u7b80\u5355\uff0c\u4e00\u6761\u547d\u4ee4\u628a\u6574\u6bb5\u89c6\u9891\u7684\u97f3\u9891\u62bd\u6210 192kbps \u7684 MP3\uff0c\u51e0\u79d2\u949f\u5b8c\u6210\u3002\u552f\u4e00\u9700\u8981\u9002\u5e94\u7684\u662f\u62a5\u9519\uff1a\u53c2\u6570\u5199\u9519\u65f6\u5b83\u53ea\u56de\u4e00\u53e5 &quot;Invalid argument&quot;\uff0c\u5f97\u81ea\u5df1\u5bf9\u7740\u6587\u6863\u4e00\u884c\u884c\u6392\u67e5\u3002<\/p>\n<h2>\u9002\u5408\u8c01<\/h2>\n<ul>\n<li><strong>\u5185\u5bb9\u521b\u4f5c\u8005<\/strong>\uff1a\u6279\u91cf\u8f6c\u7801\u3001\u538b\u7f29\u4e0a\u4f20\u7d20\u6750\uff0c\u7701\u4e0b\u4ed8\u8d39\u8f6f\u4ef6\u7684\u8ba2\u9605\u8d39\u3002<\/li>\n<li><strong>\u8fd0\u7ef4\u4e0e\u5f00\u53d1\u8005<\/strong>\uff1a\u628a\u8f6c\u7801\u5d4c\u8fdb\u81ea\u52a8\u5316\u6d41\u7a0b\uff0c\u89c6\u9891\u4e0a\u4f20\u540e\u81ea\u52a8\u751f\u6210\u591a\u4e2a\u6e05\u6670\u5ea6\u3002<\/li>\n<li><strong>\u9700\u8981\u5904\u7406\u5927\u91cf\u7d20\u6750\u7684\u4eba<\/strong>\uff1a\u4f1a\u8bae\u5f55\u50cf\u3001\u8bfe\u7a0b\u89c6\u9891\u3001\u884c\u8f66\u8bb0\u5f55\uff0c\u7edf\u4e00\u89c4\u683c\u4e00\u6b21\u641e\u5b9a\u3002<\/li>\n<li><strong>\u60f3\u6446\u8131\u6c34\u5370\u7684\u4eba<\/strong>\uff1a\u514d\u8d39\u8f6f\u4ef6\u91cc\u5c11\u6709\u7684&quot;\u5b8c\u5168\u65e0\u529f\u80fd\u9650\u5236&quot;\u3002<\/li>\n<li><strong>\u6298\u817e\u6d3e<\/strong>\uff1a\u60f3\u641e\u6e05\u695a\u89c6\u9891\u6587\u4ef6\u5230\u5e95\u7531\u54ea\u4e9b\u90e8\u5206\u6784\u6210\uff0c\u5b83\u662f\u6700\u597d\u7684\u4e00\u672c\u6559\u79d1\u4e66\u3002<\/li>\n<\/ul>\n<h2>\u9700\u8981\u6ce8\u610f\u7684\u5730\u65b9<\/h2>\n<ul>\n<li><strong>\u7eaf\u547d\u4ee4\u884c\uff0c\u5b66\u4e60\u66f2\u7ebf\u9661<\/strong>\uff1a\u53c2\u6570\u6570\u91cf\u4ee5\u5343\u8ba1\uff0c\u65b0\u624b\u5efa\u8bae\u5148\u914d\u4e00\u4e2a\u56fe\u5f62\u754c\u9762\uff08\u5982 HandBrake\u3001Shutter Encoder\uff09\uff0c\u9700\u8981\u6279\u5904\u7406\u65f6\u518d\u56de\u6765\u5199\u547d\u4ee4\u3002<\/li>\n<li><strong>\u6709\u635f\u8f6c\u7801\u4e0d\u53ef\u9006<\/strong>\uff1a\u5df2\u7ecf\u538b\u8fc7\u7684\u6210\u54c1\u4e0d\u8981\u518d\u53cd\u590d\u8f6c\uff0c\u6bcf\u8f6c\u4e00\u6b21\u753b\u8d28\u90fd\u4f1a\u6389\u4e00\u5c42\u3002<\/li>\n<li><strong>CRF \u548c\u7801\u7387\u522b\u540c\u65f6\u8bbe<\/strong>\uff1a\u4e24\u4e2a\u53c2\u6570\u4e92\u76f8\u6253\u67b6\uff0c\u7ed3\u679c\u5f80\u5f80\u4e0d\u7b26\u5408\u9884\u671f\u3002<\/li>\n<li><strong>\u6ce8\u610f\u8bb8\u53ef\u8bc1<\/strong>\uff1a\u6838\u5fc3\u662f LGPL\uff0c\u4f46\u4e0d\u5c11\u9884\u7f16\u8bd1\u7248\u672c\u6253\u5305\u4e86 GPL \u7ec4\u4ef6\uff0c\u5546\u4e1a\u5206\u53d1\u8981\u770b\u6e05\u6388\u6743\u3002<\/li>\n<li><strong>\u786c\u4ef6\u7f16\u7801\u753b\u8d28\u7565\u900a<\/strong>\uff1a\u540c\u7801\u7387\u4e0b NVENC \u901a\u5e38\u4e0d\u5982 CPU \u8f6f\u7f16\uff0c\u8ffd\u6c42\u753b\u8d28\u5c31\u7528\u6162\u901f\u9884\u8bbe\u3002<\/li>\n<li><strong>Windows \u7248\u9700\u81ea\u5df1\u627e\u6784\u5efa<\/strong>\uff1a\u5b98\u65b9\u53ea\u63d0\u4f9b\u6e90\u7801\uff0c\u5efa\u8bae\u7528\u4fe1\u8a89\u597d\u7684\u7b2c\u4e09\u65b9\u6784\u5efa\u6216\u5305\u7ba1\u7406\u5668\u5b89\u88c5\u3002<\/li>\n<\/ul>\n<h2>\u5c0f\u7ed3<\/h2>\n<p>FFmpeg \u662f\u90a3\u79cd&quot;\u5e73\u65f6\u60f3\u4e0d\u8d77\u6765\uff0c\u9700\u8981\u65f6\u6551\u547d&quot;\u7684\u5de5\u5177\u3002\u5b83\u6ca1\u6709\u6f02\u4eae\u7684\u754c\u9762\uff0c\u4e5f\u4e0d\u80fd\u9760\u70b9\u9f20\u6807\u5b8c\u6210\u4efb\u52a1\uff0c\u4f46\u4e00\u65e6\u4f60\u628a\u5e38\u7528\u7684\u51e0\u6761\u547d\u4ee4\u5b58\u6210\u811a\u672c\uff0c\u4e4b\u540e\u6240\u6709\u91cd\u590d\u7684\u8f6c\u7801\u6d3b\u513f\u90fd\u53ef\u4ee5\u4ea4\u7ed9\u5b83\uff0c\u800c\u4e14\u4e0d\u82b1\u94b1\u3001\u4e0d\u52a0\u6c34\u5370\u3001\u4e0d\u9650\u6b21\u6570\u3002\u5bf9\u4e8e\u5076\u5c14\u5904\u7406\u89c6\u9891\u7684\u666e\u901a\u7528\u6237\uff0c\u914d\u4e2a\u56fe\u5f62\u754c\u9762\u5c31\u591f\uff1b\u5bf9\u4e8e\u7ecf\u5e38\u548c\u51e0\u5341\u4e0a\u767e\u4e2a\u6587\u4ef6\u6253\u4ea4\u9053\u7684\u4eba\uff0c\u65e9\u70b9\u5b66\u4f1a\u5b83\uff0c\u80fd\u7701\u4e0b\u5927\u91cf\u673a\u68b0\u52b3\u52a8\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u53e5\u8bdd\u5b9a\u4f4d\uff1aFFmpeg \u662f\u97f3\u89c6\u9891\u5904\u7406\u9886\u57df\u6700\u5e95\u5c42\u7684\u5f00\u6e90\u5de5\u5177\uff0c\u6ca1\u6709\u754c\u9762\u3001\u53ea\u6709\u547d\u4ee4\u884c\uff0c\u4f46\u683c\u5f0f\u8f6c\u6362\u3001\u538b\u7f29\u3001\u526a\u8f91\u3001\u5408\u5e76\u3001\u63d0\u53d6\u97f3\u8f68\u3001\u5f55\u5c4f\u3001\u52a0\u5b57\u5e55\u8fd9\u4e9b\u4e8b\u5b83\u5168\u80fd\u5e72\uff0c\u800c\u4e14\u514d\u8d39\u3001\u65e0\u6c34\u5370\u3001\u53ef\u6279\u91cf\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[2],"tags":[],"class_list":["post-132","post","type-post","status-publish","format-standard","hentry","category-2"],"_links":{"self":[{"href":"https:\/\/laoke.pw\/index.php?rest_route=\/wp\/v2\/posts\/132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/laoke.pw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/laoke.pw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/laoke.pw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/laoke.pw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=132"}],"version-history":[{"count":0,"href":"https:\/\/laoke.pw\/index.php?rest_route=\/wp\/v2\/posts\/132\/revisions"}],"wp:attachment":[{"href":"https:\/\/laoke.pw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/laoke.pw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/laoke.pw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}