{"id":67,"date":"2024-09-13T01:10:09","date_gmt":"2024-09-12T17:10:09","guid":{"rendered":"https:\/\/a.li6.cc\/?p=67"},"modified":"2024-09-13T01:10:09","modified_gmt":"2024-09-12T17:10:09","slug":"php-thinkphp-%e6%89%a7%e8%a1%8cffmpeg%e6%8c%87%e4%bb%a4%e7%9a%84%e8%b7%af%e5%be%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/a.li6.cc\/index.php\/2024\/09\/13\/php-thinkphp-%e6%89%a7%e8%a1%8cffmpeg%e6%8c%87%e4%bb%a4%e7%9a%84%e8%b7%af%e5%be%84%e9%97%ae%e9%a2%98\/","title":{"rendered":"php thinkphp \u6267\u884cffmpeg\u6307\u4ee4\u7684\u8def\u5f84\u95ee\u9898"},"content":{"rendered":"<p>\u4f8b\u5b50\uff1a<\/p>\n<pre><code>$command = &#039;ffmpeg -y  -i  ..\/runtime\/cache\/&#039;.$TEMP_Gif_path.&#039; -vf &quot;ass=..\/runtime\/cache\/&#039;. $CACHE_ASS_PATH.&#039;&quot; ..\/runtime\/cache\/&#039;.$timeStr.&#039;.gif&#039;;\n\n                system($command, $error);\n                var_dump($error);<\/code><\/pre>\n<p>tp\u6846\u67b6\u91cc\u8fd0\u884c\u8fd9\u4e2a\u6307\u4ee4 \u4e0d\u80fd\u4f7f\u7528\u7edd\u5bf9\u8def\u5f84\uff0c\u53ea\u80fd\u4f7f\u7528public\u4e0b\u7684\u76f8\u5bf9\u8def\u5f84\uff0c\u9000\u51fa\u4e00\u5c42\u540e \u627e\u5230cache\u8def\u5f84<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f8b\u5b50\uff1a $command = &#039;ffmpeg -y -i ..\/run &hellip; <a href=\"https:\/\/a.li6.cc\/index.php\/2024\/09\/13\/php-thinkphp-%e6%89%a7%e8%a1%8cffmpeg%e6%8c%87%e4%bb%a4%e7%9a%84%e8%b7%af%e5%be%84%e9%97%ae%e9%a2%98\/\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/posts\/67"}],"collection":[{"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/comments?post=67"}],"version-history":[{"count":1,"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/posts\/67\/revisions"}],"predecessor-version":[{"id":68,"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/posts\/67\/revisions\/68"}],"wp:attachment":[{"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/media?parent=67"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/categories?post=67"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/a.li6.cc\/index.php\/wp-json\/wp\/v2\/tags?post=67"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}