{"id":530,"date":"2022-02-06T17:15:36","date_gmt":"2022-02-06T09:15:36","guid":{"rendered":"http:\/\/124.223.94.246\/?p=530"},"modified":"2022-02-07T20:48:48","modified_gmt":"2022-02-07T12:48:48","slug":"ffmpeg-configure%e7%bc%96%e8%af%91%e5%88%86%e6%9e%90-2","status":"publish","type":"post","link":"https:\/\/www.xianwaizhiyin.net\/?p=530","title":{"rendered":"ffmpeg-configure\u7f16\u8bd1\u5206\u6790"},"content":{"rendered":"\n<p>\u672c\u6587\u4ee5 ffmpeg-n4.4.1 \u7684\u7248\u672c\u4e3a\u51c6\uff0c\u4e3b\u8981\u5206\u6790 ffmpeg \u9879\u76ee\u4e2d configure \uff08shell\u811a\u672c\uff09\u7684\u903b\u8f91\u3002<\/p>\n\n\n\n<p>configure \uff08shell \u811a\u672c\uff09\u7684\u4ee3\u7801\u91cc\u9762\u6709\u4e9b\u4e0d\u592a\u5bb9\u6613\u7406\u89e3\u7684shell\u8bed\u6cd5\uff0c\u5728\u672c\u6587\u5f00\u5934\u5148\u8fdb\u884c\u4e00\u4e0b\u8bb2\u89e3\u3002<\/p>\n\n\n\n<p>1\uff0c: ${ncols:=72} \uff0c\u9996\u5148\u524d\u9762\u9996\u5b57\u6bcd\u662f : \u5192\u53f7\u7684shell\u7528\u6cd5\u662f\u8fd9\u6837\u7684\uff0c\u9632\u6b62\u628a ncols \u672c\u8eab\u4f5c\u4e3a\u4e00\u4e2a\u547d\u4ee4\u6765\u6267\u884c\uff0c\u8bf7\u770b\u6587\u7ae0\u5206\u6790<a href=\"https:\/\/blog.csdn.net\/honghuzhilangzixin\/article\/details\/7073312\">\u300ashell \u547d\u4ee4\u4ee5 : \u5f00\u5934\u300b<\/a><\/p>\n\n\n\n<p>2\uff0c${ncols:=72} \uff0cconfigure\u91cc\u9762\u7ecf\u5e38\u80fd\u89c1\u5230 ${xx:=yy} \u8fd9\u79cd\u7528\u6cd5\uff0c\u8fd9\u5176\u5b9e\u662f\u4e00\u79cd\u53d8\u91cf\u7684\u7528\u6cd5\uff0c\u5927\u62ec\u53f7\u62ec\u8d77\u6765\u662f\u4e00\u4e2a\u53d8\u91cf\uff0c\u8bf7\u770b\u6587\u7ae0\u5206\u6790 <a href=\"https:\/\/handerfly.github.io\/shell\/2019\/04\/03\/shell%E7%BC%96%E7%A8%8B%E5%86%92%E5%8F%B7%E5%8A%A0-%E7%AD%89%E5%8F%B7-%E5%8A%A0%E5%8F%B7-%E5%87%8F%E5%8F%B7-%E9%97%AE%E5%8F%B7\/\">\u300ashell \u7f16\u7a0b\uff1a\u5192\u53f7 \u540e\u9762\u8ddf \u7b49\u53f7\uff0c\u52a0\u53f7\uff0c\u51cf\u53f7\uff0c\u95ee\u53f7\u7684\u610f\u4e49\u300b<\/a> <\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>configure \u7684\u4ee3\u7801\u67097500\u884c\u5de6\u53f3\u3002\u4e0d\u8fc7\u903b\u8f91\u5e76\u4e0d\u590d\u6742\uff0c\u4e3b\u8981\u662f\u6709\u5927\u91cf\u7684\u53d8\u91cf\u5b9a\u4e49\u3002<\/p>\n\n\n\n<p>\u7b2c 1~4013 \u884c\uff0c\u57fa\u672c\u5168\u662f\u53d8\u91cf\uff0c\u4ee5\u53ca\u4e00\u4e9b\u57fa\u672c\u51fd\u6570\u7684\u5b9a\u4e49\uff0c\u6ca1\u6709\u4ec0\u4e48\u597d\u5206\u6790\uff0c\u81ea\u884c\u770b\u4ee3\u7801\u5373\u53ef\u3002<\/p>\n\n\n\n<p>\u7b2c 1~4013 \u884c \u91cc\u9762\u7684\u91cd\u70b9\u6709\u4ee5\u4e0b5\u70b9\uff1a<\/p>\n\n\n\n<p>1\uff0c\u7b2c 1~ 55\u884c\u7684 <code class=\"prettyprint\" >LC_ALL<\/code> \u7b49\u4ee3\u7801\u662f shell\u7684\u672c\u5730\u5316\u5904\u7406\uff0c\u7136\u540e\u7528 try_exec() \u5224\u65ad shell\u662f\u4e0d\u662f POSIX-compatible shell \uff0c\u4f30\u8ba1\u662f\u65e9\u671f\u6bd4\u8f83\u591a\u7684\u4eba\u7684shell\u73af\u5883\u4e0d\u662f POSIX \u517c\u5bb9\u7684\u73af\u5883\uff0cconfigure\u901a\u4e0d\u8fc7\uff0c\u63d0\u4e86issue\uff0c\u6240\u4ee5 ffmpeg \u4f5c\u8005\u5728configure\u52a0\u4e86\u8fd9\u4e2a\u68c0\u6d4b\uff0c\u544a\u8bc9\u522b\u4eba\u4e0d\u662fbug\uff0c\u4e0d\u8981\u63d0issue\u3002\u8fd9\u6bb5\u4ee3\u7801\u5176\u5b9e\u4e0d\u91cd\u8981\uff0c\u4e0d\u7528\u7ea0\u7ed3\u91cc\u9762\u7684\u7ec6\u8282\uff0c\u60f3\u4e86\u89e3\u7ec6\u8282\u53ef\u4ee5\u770b\u8fd9\u7bc7\u6587\u7ae0<a href=\"https:\/\/blog.csdn.net\/happyhorizion\/article\/details\/80529301\">\u300ashell\u811a\u672c\u4e2d LC_ALL=C \u7684\u542b\u4e49\u300b<\/a><\/p>\n\n\n\n<p>2\uff0cenable() \u8ddf disable() \u51fd\u6570\uff0c\u628a\u53d8\u91cf\u8bbe\u7f6e\u6210 yes \u6216\u8005 no\u3002\u4f8b\u5982 \u6267\u884c configure\u7684\u65f6\u5019\u6307\u5b9a --enable-sdl2 \u5c31\u4f1a \u628a $sdl2 \u8bbe\u7f6e\u4e3ayes\u3002<\/p>\n\n\n\n<p>3\uff0c#3786\u884c \uff0c\u6211\u4eecconfigure\u7684\u65f6\u5019\u53ef\u4ee5\u6307\u5b9a --arch=xxx\uff0c \u6307\u5b9acpu\u7684\u67b6\u6784\uff0c\u4f46\u5927\u591a\u6570\u60c5\u51b5\u4e0d\u7528\u6307\u5b9a\uff0cconfigure\u91cc\u9762\u4f1a\u7528 uname \u547d\u4ee4\uff0c\u67e5\u8be2\u51fa\u5f53\u524d\u73af\u5883\u662f\u4ec0\u4e48\u6837\u7684cpu\u67b6\u6784\uff0c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint\" >#3786\u884c\n# machine\nif test &quot;$target_os_default&quot; = aix; then\n    arch_default=$(uname -p)\n    strip_default=&quot;strip -X32_64&quot;\n    nm_default=&quot;nm -g -X32_64&quot;\nelse\n    arch_default=$(uname -m)\nfi<\/code><\/pre>\n\n\n\n<p>4\uff0c#3893\u884c \u4e3b\u8981\u662f\u63d0\u53d6\u547d\u4ee4\u884c\u53c2\u6570\uff0c\u7136\u540e\u7528sh_quote\u8f6c\u4e49\uff0c\u540e\u9762\u518d \u628aFFMPEG_CONFIGURATION\u5199\u56de\u53bb \u65e5\u5fd7\u91cc\u9762\uff0cFFMPEG_CONFIGURATION \u53ea\u662f\u4e00\u4e2a\u65e5\u5fd7\u4e34\u65f6\u53d8\u91cf\uff0c\u8fd9\u8fb9\u8fd8\u6ca1\u5f00\u59cb\u5904\u7406\u547d\u4ee4\u884c\u53c2\u6570\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint\" ># 3893\u884c\n#\u5f00\u59cb\u89e3\u6790\u547d\u4ee4\u884c\u53c2\u6570\nfor v in &quot;$@&quot;; do\n    r=${v#*=}\n    l=${v%&quot;$r&quot;}\n    r=$(sh_quote &quot;$r&quot;)\n    FFMPEG_CONFIGURATION=&quot;${FFMPEG_CONFIGURATION# } ${l}${r}&quot;\ndone<\/code><\/pre>\n\n\n\n<p>5\uff0c#3913 \u884c \u4ece c \u4ee3\u7801\u63d0\u53d6\u4e86 \u5f88\u591a LIST\uff0c<strong>\u8fd9\u91cc\u6211\u4eec\u53ef\u4ee5\u770b\u5230 ffmpeg \u628a\u6240\u6709\u7684\u8bbe\u5907\uff0c\u5c01\u88c5\u683c\u5f0f(formats)\uff0c\u7f16\u7801\u5668(codec)\uff0c\u90fd\u5199\u5728 allxxx.c \u6587\u4ef6\u91cc\u9762\u3002<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint\" >#3913\u884c\nINDEV_LIST=$(find_things_extern demuxer AVInputFormat libavdevice\/alldevices.c indev)\nMUXER_LIST=$(find_things_extern muxer AVOutputFormat libavformat\/allformats.c)\nDEMUXER_LIST=$(find_things_extern demuxer AVInputFormat libavformat\/allformats.c)\nENCODER_LIST=$(find_things_extern encoder AVCodec libavcodec\/allcodecs.c)\nDECODER_LIST=$(find_things_extern decoder AVCodec libavcodec\/allcodecs.c)<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u4ece \u7b2c4020 \u884c\uff0c\u6b63\u5f0f\u5f00\u59cb\u89e3\u6790\u547d\u4ee4\u884c\u53c2\u6570\uff0c\u8fd9\u4e2a\u662f\u91cd\u4e2d\u4e4b\u91cd\uff0c\u8fd9\u91cc\u51b3\u5b9a\u4e86\uff0c configure \u540e\u9762\u7684\u53c2\u6570\uff0c\u662f\u5982\u4f55\u89e3\u6790\u6210shell\u91cc\u9762\u7684\u53d8\u91cf\u7684\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint\" >#\u7b2c4020 \u884c\nfor opt do\n    optval=&quot;${opt#*=}&quot;\n    case &quot;$opt&quot; in\n        --extra-ldflags=*)\n            add_ldflags $optval\n        ;;\n        # \u7701\u7565\u4ee3\u7801 ...\n        --enable-*=*|--disable-*=*)\n            eval $(echo &quot;${opt%%=*}&quot; | sed &#039;s\/--\/action=\/;s\/-\/ thing=\/&#039;)\n            is_in &quot;${thing}s&quot; $COMPONENT_LIST || die_unknown &quot;$opt&quot;\n            eval list=\\$$(toupper $thing)_LIST\n            name=$(echo &quot;${optval}&quot; | sed &quot;s\/,\/_${thing}|\/g&quot;)_${thing}\n            list=$(filter &quot;$name&quot; $list)\n            &#091; &quot;$list&quot; = &quot;&quot; ] &amp;&amp; warn &quot;Option $opt did not match anything&quot;\n            test $action = enable &amp;&amp; warn_if_gets_disabled $list\n            $action $list\n        ;;\n        # \u7701\u7565\u4ee3\u7801 ...\n        --enable-?*|--disable-?*)\n            eval $(echo &quot;$opt&quot; | sed &#039;s\/--\/action=\/;s\/-\/ option=\/;s\/-\/_\/g&#039;)\n            if is_in $option $COMPONENT_LIST; then\n                test $action = disable &amp;&amp; action=unset\n                eval $action \\$$(toupper ${option%s})_LIST\n            elif is_in $option $CMDLINE_SELECT; then\n                $action $option\n            else\n                die_unknown $opt\n            fi\n        ;;\n        # \u7701\u7565\u4ee3\u7801 ...\n        *)\n            optname=&quot;${opt%%=*}&quot;\n            optname=&quot;${optname#--}&quot;\n            optname=$(echo &quot;$optname&quot; | sed &#039;s\/-\/_\/g&#039;)\n            if is_in $optname $CMDLINE_SET; then\n                eval $optname=&#039;$optval&#039; \n            elif is_in $optname $CMDLINE_APPEND; then\n                append $optname &quot;$optval&quot;\n            else\n                die_unknown $opt\n            fi\n        ;;\n    esac\ndone<\/code><\/pre>\n\n\n\n<p>\u4e0a\u9762\u7684\u4ee3\u7801\u5c55\u793a\u4e86 configure \u547d\u4ee4\u884c\u53c2\u6570 --extra-ldflags=\"-L\/home\/loken\/ffmpeg\/build32\/libfdk-aac\/lib\" \uff0c--enable-libx264 \u4e4b\u7c7b\u7684\u53c2\u6570\u662f\u5982\u4f55\u89e3\u6790\u6210 shell \u53d8\u91cf\u7684\u3002\u975e\u91cd\u70b9\u4ee3\u7801\u6211\u5df2\u7ecf\u7701\u7565\u4e86\u3002<\/p>\n\n\n\n<p>\u4e0a\u9762\u662f\u7528\u4e00\u4e2a for \u5faa\u73af\u6765\u5904\u7406\u547d\u4ee4\u884c\u53c2\u6570\u4e86\uff0c\u547d\u4ee4\u884c\u53c2\u6570\u4e00\u4e2a\u4e00\u4e2a\u90fd\u4f1a \u8d4b\u503c \u7ed9 opt \u53d8\u91cf\uff0cshell \u8fd9\u79cd\u8bed\u6cd5\u6bd4\u8f83\u7b80\u6d01\uff0c\u65b0\u624b\u53ef\u80fd\u4e00\u4e0b\u5b50\u6ca1\u770b\u51fa\u6765 opt \u662f\u4ece\u54ea\u4e2a\u6570\u7ec4\u63d0\u53d6\u51fa\u6765\u7684\uff0c\u5176\u5b9e\u5c31\u662f\u547d\u4ee4\u884c\u53c2\u6570 $1 $2 $3 \u7b49\u7b49\uff0c\u90fd\u4f1a\u4e00\u4e2a\u4e00\u4e2a\u8d4b\u503c\u7ed9 opt \u53d8\u91cf\u3002opt \u53ea\u662f\u4e00\u4e2a\u540d\u5b57\uff0c\u53ef\u4ee5\u7528\u5176\u4ed6\u7684\u540d\u5b57\uff0c\u4f8b\u5982 v\uff0c\u901a\u8fc7 for v do {...} \u7684\u65b9\u5f0f\u904d\u5386\u547d\u4ee4\u884c\u53c2\u6570\u3002<\/p>\n\n\n\n<p>for \u5faa\u73af\u7684\u7b2c\u4e00\u53e5\u4ee3\u7801\u5c31\u662f optval=\"${opt#*=}\"\uff0c\u53c8\u662f\u7528\u8fd9\u79cd\u5927\u62ec\u53f7\u7684\u65b9\u5f0f \u63d0\u53d6\u51fa\u6765 ----extra-cflags=\"xxx\" \u7b49\u4e8e\u53f7\u540e\u9762\u7684value \u8d4b\u503c\u7ed9 optval\u3002<\/p>\n\n\n\n<p>\u4e3b\u8981\u903b\u8f91\u5c31\u662f\u4e00\u4e2a switch case\uff0c\u505a\u6b63\u5219\u5339\u914d\u5b57\u7b26\u4e32\uff0c\u54b1\u4eec\u7528\u7684\u6bd4\u8f83\u591a\u7684\u5c31\u662f --prefix=\/xxx\uff08\u5b9a\u4e49\u76ee\u5f55\uff09\uff0c--extra-cflags\uff08\u5b9a\u4e49gcc.exe \u7684\u53c2\u6570\uff09, --extra-ldflags\uff08\u5b9a\u4e49 link.exe \u7684\u53c2\u6570\uff09\uff0c--enable-xxx \uff08\u5f00\u542f\u67d0\u4e2a\u9009\u9879\uff09\u3002<\/p>\n\n\n\n<p>\u54b1\u4eec\u5c31\u4ee5\u4e0b\u9762\u8fd9\u6761\u7f16\u8bd1\u547d\u4ee4\u505a\u8bb2\u89e3\uff0c\u5206\u6790 \u547d\u4ee4\u884c\u7684\u53c2\u6570\u662f\u5982\u4f55\u89e3\u6790\u5230 shell \u53d8\u91cf\u7684\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint\" >.\/configure.sh \\\n--prefix=\/home\/loken\/ffmpeg\/build32\/ffmepg-4.4 \\\n--enable-gpl \\\n--enable-sdl2 \\\n--enable-zlib \\\n--enable-shared \\\n--enable-nonfree \\\n--enable-libx264 \\\n--enable-libfdk-aac \\\n--enable-libmp3lame \\\n--enable-libvpx \\\n--extra-cflags=&quot;-I\/home\/loken\/ffmpeg\/build32\/libfdk-aac\/include&quot; \\\n--extra-ldflags=&quot;-L\/home\/loken\/ffmpeg\/build32\/libfdk-aac\/lib&quot; \\\n--extra-cflags=&quot;-I\/home\/loken\/ffmpeg\/build32\/libvpx\/include&quot; \\\n--extra-ldflags=&quot;-L\/home\/loken\/ffmpeg\/build32\/libvpx\/lib&quot; \\\n--extra-cflags=&quot;-I\/home\/loken\/ffmpeg\/build32\/libx264\/include&quot; \\\n--extra-ldflags=&quot;-L\/home\/loken\/ffmpeg\/build32\/libx264\/lib&quot; \\\n--extra-cflags=&quot;-I\/home\/loken\/ffmpeg\/build32\/libmp3lame\/include&quot; \\\n--extra-ldflags=&quot;-L\/home\/loken\/ffmpeg\/build32\/libmp3lame\/lib&quot; <\/code><\/pre>\n\n\n\n<p>1\uff0c--prefix \u8ddf --extra-cflags \u90fd\u662f\u5728 <code class=\"prettyprint\" >*)<\/code> \u903b\u8f91\u4e2d\u5904\u7406\uff0c\u628a optval \u9644\u52a0\u7ed9 $extra_cflags \u53d8\u91cf\u3002<\/p>\n\n\n\n<p>\u8fd9\u91cc\u6ce8\u610f\uff0cconfigure \u91cc\u9762\u7684shell \u53d8\u91cf\u4e3b\u8981\u6709\u4e24\u79cd\uff0c\u4e00\u79cd\u662f\u76f4\u63a5 set\uff0c\u4f8b\u5982 $prefix=\/usr \uff0c\u628a prefix \u53d8\u91cf\u8bbe\u7f6e\u6210 \/usr \uff0c\u7b2c\u4e8c\u79cd\u662f \u9700\u8981\u6267\u884c append \u7684\u53d8\u91cf\uff0c\u5c31\u662f\u53d8\u91cf\u672c\u8eab\u662f\u5df2\u7ecf\u6709\u503c\u7684\uff0c\u540e\u9762\u7684\u503c\uff0c\u53ea\u80fd\u9644\u52a0 append\u5230\u540e\u9762\uff0c\u4e0d\u80fd\u6e05\u9664\u4e4b\u524d\u7684\u5185\u5bb9\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint\" > *)\n    optname=&quot;${opt%%=*}&quot;\n    optname=&quot;${optname#--}&quot;\n    optname=$(echo &quot;$optname&quot; | sed &#039;s\/-\/_\/g&#039;)\n    if is_in $optname $CMDLINE_SET; then\n        eval $optname=&#039;$optval&#039;\n    elif is_in $optname $CMDLINE_APPEND; then\n        append $optname &quot;$optval&quot;\n    else\n         die_unknown $opt\n     fi\n;;<\/code><\/pre>\n\n\n\n<p>$CMDLINE_SET \u91cc\u9762 \u5c31\u662f\u53ef\u4ee5\u76f4\u63a5\u8bbe\u7f6e\u7684\u53d8\u91cf\uff0c$CMDLINE_APPEND\u91cc\u9762\u5c31\u662f\u53ea\u80fd append \u7684\u53d8\u91cf\u3002<\/p>\n\n\n\n<p>\u4ece\u4e0b\u56fe\u53ef\u4ee5\u770b\u5230 prefix \u8fd9\u4e2a\u53d8\u91cf\u7684\u5b9a\u4e49\uff0c\u5c31\u5728 $CMDLINE_SET \u7684 $PATHS_LIST \u91cc\u9762\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"302\" height=\"407\" src=\"\/wp-content\/uploads\/2022\/02\/config-1-1.png\" alt=\"\" class=\"wp-image-531\"\/><\/figure>\n\n\n\n<p>2\uff0c --extra-ldflags \u5728 <code class=\"prettyprint\" >--extra-ldflags=*<\/code>) \u903b\u8f91\u4e2d\u5904\u7406\uff0c\u7528 add_ldflags \u628a optval \u90fd append\uff08\u9644\u52a0\uff09 \u5230\u53d8\u91cf $LDFLAGS \u91cc\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint\" >--extra-ldflags=*)\n    add_ldflags $optval\n;;<\/code><\/pre>\n\n\n\n<p>3\uff0c--enable-libx264 \u5728 <code class=\"prettyprint\" >--enable-?*|--disable-?*)<\/code> \u903b\u8f91\u4e2d\u5904\u7406\uff0c\u8fd9\u91cc\u9762\u7684\u903b\u8f91\u4e5f\u6bd4\u8f83\u7b80\u5355\uff0c\u5c31\u662f\u628a $libx264 \u53d8\u91cf\u8bbe\u7f6e\u4e3ayes\u3002<\/p>\n\n\n\n<p>enable \u8fd8\u6709\u4e00\u4e2a\u903b\u8f91\u5904\u7406\u662f <code class=\"prettyprint\" >--enable-*=*|--disable-*=*)<\/code> \u5904\u7406\u540e\u9762\u6709\u7b49\u4e8e\u53f7\u7684\u547d\u4ee4\u884c\u53c2\u6570\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u4e0a\u9762\u547d\u4ee4\u884c\u53c2\u6570\u89e3\u6790\u5b8c\u6bd5\u4e4b\u540e\uff0c\u540e\u7eed\u7684\u903b\u8f91\u4e3b\u8981\u5c31\u662f Check \u3002<\/p>\n\n\n\n<p>\"\u4ee5\u4e0b\u90e8\u5206\u5185\u5bb9\u5f15\u7528\u96f7\u795e\u6587\u7ae0\uff1a\"<\/p>\n\n\n\n<p>Check\u90e8\u5206\u662fConfigure\u4e2d\u6700\u91cd\u8981\u7684\u90e8\u5206\u3002\u8be5\u90e8\u5206\u7528\u4e8e\u68c0\u67e5\u7f16\u8bd1\u73af\u5883\uff08\u4f8b\u5982\u6570\u5b66\u51fd\u6570\uff0c\u7b2c\u4e09\u65b9\u7c7b\u5e93\u7b49\uff09\u3002\u8fd9\u4e00\u90e8\u5206\u6d89\u53ca\u5230\u5f88\u591a\u7684\u51fd\u6570\u3002\u5305\u62ec check_cflags()\u3001require()\u3001check_lib()\u3001check_func_headers()\u3001check_mathfunc() \u7b49\u7b49\u3002\u8fd9\u4e9b\u51fd\u6570\u4e4b\u95f4\u7684\u8c03\u7528\u5173\u7cfb\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1248\" height=\"984\" src=\"\/wp-content\/uploads\/2022\/02\/config-1-2.png\" alt=\"\" class=\"wp-image-532\"\/><\/figure>\n\n\n\n<p>\u4ece\u4e0a\u56fe\u53ef\u4ee5\u770b\u5230\uff0c\u975e\u5e38\u591a\u7684\u51fd\u6570\u662f\u5b58\u5728\u4e92\u76f8\u8c03\u7528\u7684\u60c5\u51b5\u7684\u3002\u4f8b\u5982 test_ld() \u91cc\u9762\u8c03\u7528\u4e86 test_cc() \u8ddf test_cmd()\uff0c\u4e0b\u9762\u9610\u8ff0\u4e00\u4e0b\u8fd9\u4e9b\u51fd\u6570\u7684\u4f5c\u7528\u3002<\/p>\n\n\n\n<p>1\uff0ctest_cmd() \u8fd9\u4e2a\u662f\u6700\u57fa\u7840\u7684\u51fd\u6570\uff0c\u57fa\u672c\u6240\u6709\u7684\u51fd\u6570\u90fd\u4f1a\u8c03\u8fd9\u4e2a test_cmd \uff0c\u8fd9\u4e2a\u51fd\u6570\u5c31\u662f\u5c1d\u8bd5\u6267\u884c\u4e00\u4e2a \u547d\u4ee4\uff0c\u7b2c\u4e00\u4e2a\u53c2\u6570($1) \u5c31\u662f\u8981\u6267\u884c\u7684\u547d\u4ee4\u3002<\/p>\n\n\n\n<p>2\uff0ctest_cc() \u7528 $cc \u7f16\u8bd1\u5668\u628a .c \u7684\u6587\u4ef6\u7f16\u8bd1\u6210 .o \u6587\u4ef6\uff0c$cc \u53d8\u91cf\u4e00\u822c\u662f gcc\uff0c\u6240\u4ee5\u7f16\u8bd1\u5668\u662f gcc\u3002<\/p>\n\n\n\n<p>3\uff0ctest_ld() \u5c1d\u8bd5\u7528\u7f16\u8bd1\u5668\u628a .c \u7684\u6587\u4ef6\u7f16\u8bd1\u6210 .o \u6587\u4ef6\uff0c\u7136\u540e\u7528\u94fe\u63a5\u5668\u628a .o \u6587\u4ef6\u641e\u6210 .exe \u53ef\u6267\u884c\u6587\u4ef6\u3002\u8fd9\u91cc\u9700\u8981\u6ce8\u610f\u4e00\u4e0b\uff0c\u5bf9\u4e8e gcc \u6765\u8bf4\uff0c\u7f16\u8bd1\u5668\u8ddf\u94fe\u63a5\u5668\u90fd\u662fgcc.exe \u3002\u6240\u4ee5 $ld \u8ddf $cc \u53d8\u91cf\u90fd\u662fgcc\u3002\u6211\u8fd9\u91cc\u53ea\u662f\u8bb2\u89e3\u4e86\u5176\u4e2d\u4e00\u79cd\u60c5\u51b5\uff0c\u4fbf\u4e8e\u7406\u89e3\uff0c\u5b9e\u9645\u4e0a test_ld() \u91cc\u9762\u8c03\u7528\u7684 \u662ftest_$type\uff0c$type \u53d8\u91cf\u662f cc \u53ea\u662f\u5176\u4e2d\u4e00\u79cd\u60c5\u51b5\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u4ee5\u4e0a3\u4e2a\u51fd\u6570\uff0ctest_cmd\uff0ctest_cc\uff0ctest_ld \u662f\u57fa\u7840\u51fd\u6570\u3002\u540e\u9762\u7684\u51fd\u6570\u90fd\u662f\u57fa\u4e8e\u4ed6\u4eec\u5c01\u88c5\uff0c\u51b3\u5b9a\u8981\u4e0d\u8981 add_cflags \uff08\u6dfb\u52a0\u67d0\u4e2a\u7f16\u8bd1\u5668\u9009\u9879\uff09\u6216\u8005 enable \u5f00\u542f\u67d0\u4e2a\u9009\u9879\u3002<\/p>\n\n\n\n<p>\u8fd9\u91cc\u57cb\u4e2a\u5751\uff0c\u4ed6\u90a3\u4e9b check_matchfunc() \u6210\u529f \u4e4b\u540e\uff0cenable $funcs \uff0c\u5f00\u542f\u7684\u8fd9\u4e9b\u51fd\u6570\uff0c\u8bbe\u7f6e\u6210yes\uff0c\u6211\u4e5f\u4e0d\u77e5\u9053\u5177\u4f53\u7528\u5728\u54ea\u4e9b\u5730\u65b9\uff0c\u4e0b\u9762\u8fd8\u6709\u51e0\u4e2a\u51fd\u6570\u9700\u8981\u8bb2\u89e3\u4ee5\u4e0b\uff1a<\/p>\n\n\n\n<p>1\uff0ccheck_cflags() \uff1a\u68c0\u67e5\u67d0\u4e2a\u7f16\u8bd1\u5668\u9009\u9879\u662f\u5426\u53ef\u4ee5\u4f7f\u7528\uff0c\u80fd\u7528\u5c31\u8c03 add_cflags \u52a0\u8fdb\u53bb CFLAGS \u53d8\u91cf\u3002<\/p>\n\n\n\n<p>2\uff0ccheck_lib() \uff1a\u8fd9\u4e9b true \u4e4b\u540e\u6267\u884c enable \u7684\u51fd\u6570 \u9700\u8981\u6ce8\u610f\u4e00\u4e0b\uff0c\u4ed6\u4e00\u5f00\u59cb\u5c31\u4f1a disable \u67d0\u4e2a\u9009\u9879\uff0c\u7136\u540e\u68c0\u6d4b\u901a\u8fc7\u624d\u4f1a enable\u3002<\/p>\n\n\n\n<p>3\uff0c\u5176\u4ed6\u7684\u51fd\u6570\u90fd\u662f\u7c7b\u4f3c\u7684\u539f\u7406\uff0ctrue \u4e4b\u540e\u6267\u884c enable \u6216\u8005 add \u52a0\u5165\u67d0\u4e9b\u4e1c\u897f\u3002<\/p>\n\n\n\n<p>\u91cd\u70b9\u77e5\u8bc6\uff1a<\/p>\n\n\n\n<p>1\uff0cenable_sanitized\uff0csanitized \u7684\u4f5c\u7528\u662f\u53ef\u4ee5\u8f6c\u79fb\u7279\u6b8a\u5b57\u7b26\uff0c\u4f8b\u5982\u628a\u7a7a\u683c\u8f6c\u6210_ \u4e0b\u5212\u7ebf\u3002<\/p>\n\n\n\n<p>2\uff0ctest_cflags() \u51fd\u6570\u91cc\u9762\u6709\u4e2a\u6bd4\u8f83\u9690\u6666\u7684\u5199\u6cd5\uff0c<code class=\"prettyprint\" >set -- $($cflags_filter &quot;$@&quot;)<\/code><\/p>\n\n\n\n<p>set -- \u8fd9\u4e2a\u5176\u5b9e\u6ca1\u6709\u4ec0\u4e48\u7279\u522b\u7684\u610f\u601d\uff0c\u5c31\u662f\u628a\u53c2\u6570\u8f6c\u4e49\u4e00\u4e0b\uff0c\u63a8\u8350\u9605\u8bfb\u300a<a href=\"https:\/\/unix.stackexchange.com\/questions\/308260\/what-does-set-do-in-this-dockerfile-entrypoint\">What does \"set --\" do in this Dockerfile entrypoint?<\/a>\u300b<\/p>\n\n\n\n<p>3\uff0c\u5728 check_mathfunc() \u91cc\u9762\u6709\u4ee5\u4e0b\u4ee3\u7801\uff0c\u4e5f\u6bd4\u8f83\u96be\u61c2\uff0c&lt;&lt;EOF \u540e\u9762\u76f4\u63a5 &amp;&amp; \u4e86\uff0c\u76f4\u89c9\u4e0d\u662f\u5e94\u8be5\u5148\u628a\u5185\u5bb9\u5bfc\u5165\u8fdb\u53bb\u518d\u6267\u884c &amp;&amp;\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint\" >test_ld &quot;cc&quot; &quot;$@&quot; &lt;&lt;EOF &amp;&amp; enable $func\n#include &lt;math.h&gt;\nfloat foo(float f, float g) { return $func($args); }\nint main(void){ return (int) foo; }\nEOF<\/code><\/pre>\n\n\n\n<p>\u89e3\u7b54\uff1a\u8fd9\u5c31\u662fshell\u7684\u4e00\u79cd\u4e0d\u592a\u5bb9\u6613\u7406\u89e3\u7684\u8bed\u6cd5\uff0c&amp;&amp; \u4e0d\u80fd\u653e\u5728\u6700\u540e\u4e00\u4e2aEOF\u540e\uff0c\u4f8b\u5982 <code class=\"prettyprint\" >&lt;&lt;EOF xxx EOF &amp;&amp; enable $func<\/code>\uff0c\u5982\u679c\u8fd9\u6837\u5199\uff0c\u540e\u9762\u7684 &amp;&amp; \u80af\u5b9a\u4e0d\u4f1a\u6267\u884c\u4e86\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>Check\u90e8\u5206\u68c0\u67e5\u5b8c\u6bd5\u4e4b\u540e\uff0c\u73af\u5883\u6ca1\u6709\u95ee\u9898\uff0c\u5c31\u4f1a\u7ee7\u7eed\u8dd1\u3002\u751f\u6210 config.h\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint\" >cat &gt; $TMPH &lt;&lt;EOF\n\/* Automatically generated by configure - do not modify! *\/\n#ifndef FFMPEG_CONFIG_H\n#define FFMPEG_CONFIG_H\n#define FFMPEG_CONFIGURATION &quot;$(c_escape $FFMPEG_CONFIGURATION)&quot;\n# \u7701\u7565\u4ee3\u7801....\n#define HAVE_MMX2 HAVE_MMXEXT\n#define SWS_MAX_FILTER_SIZE $sws_max_filter_size\nEOF\n\n# \u7701\u7565\u4ee3\u7801....\n\nprint_config ARCH_   &quot;$config_files&quot; $ARCH_LIST\nprint_config HAVE_   &quot;$config_files&quot; $HAVE_LIST\nprint_config CONFIG_ &quot;$config_files&quot; $CONFIG_LIST       \\\n                                     $CONFIG_EXTRA      \\\n                                     $ALL_COMPONENTS    \\\necho &quot;#endif \/* FFMPEG_CONFIG_H *\/&quot; &gt;&gt; $TMPH\necho &quot;endif # FFMPEG_CONFIG_MAK&quot; &gt;&gt; ffbuild\/config.mak\n\n# Do not overwrite an unchanged config.h to avoid superfluous rebuilds.\u3001\n# \u6ce8\u610f\u8fd9\u91cc\ncp_if_changed $TMPH config.h<\/code><\/pre>\n\n\n\n<p>\u91cd\u70b9\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint\" >cp_if_changed $TMPH config.h<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u95ee\u9898\uff1a\u5728 configure\u7684\u65f6\u5019\u5982\u679c\u6211\u4eec\u6ca1\u6307\u5b9a --toolchain\uff0c\u90a3 toolchain \u7684\u9ed8\u8ba4\u503c\u662f\u4ec0\u4e48\uff1f<\/p>\n\n\n\n<p>\u89e3\u7b54\uff1a$toolchain \u7684\u9ed8\u8ba4\u503c\u662f\u7a7a\u3002\u5728\u4ee5\u4e0bswitch case\u4ee3\u7801\uff0c\u4e0d\u4f1a\u8dd1\u8fdb\u53bb\u4efb\u4f55\u4e00\u4e2a\u6761\u4ef6\uff0c\u5305\u62ec *)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"prettyprint\" ># \u91cd\u70b9\u4ee3\u7801\ncase &quot;$toolchain&quot; in\n    *-asan)\n        #\u7701\u7565..\n    ;;\n    *-msan)\n       #\u7701\u7565..\n    ;;\n    *-tsan)\n       #\u7701\u7565..\n    ;;\n    *-usan)\n       #\u7701\u7565..\n    ;;\n    valgrind-*)\n        #\u7701\u7565..\n    ;;\n    msvc)\n        #\u7701\u7565..\n    ;;\n    icl)\n       #\u7701\u7565..\n    ;;\n\t#\u7701\u7565..\n    ?*)\n        die &quot;Unknown toolchain $toolchain&quot;\n    ;;\nesac<\/code><\/pre>\n\n\n\n<p>\u91cd\u8981\u77e5\u8bc6\u70b9\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>check_64bit() \u91cc\u9762\u7528 sizeof(void *) \u6765\u5224\u65ad\u662f 64 \u4f4d\u73af\u5883\u8fd8\u662f 32\u4f4d\u73af\u5883\u300232\u4f4d void * \u6307\u9488\u662f 4\u4e2a\u5b57\u8282\uff0c64\u4f4d\u662f 8\u4e2a\u5b57\u8282\u3002<\/li><li>Makefile \u6587\u4ef6\u672c\u8eab\u5c31\u5b58\u5728\u7684\uff0c\u4e0d\u662f configure \u811a\u672c\u751f\u6210\u7684\u3002\u7f51\u4e0a\u6709\u4e9b\u6587\u7ae0\u8bb2\u89e3\u9519\u8bef\uff0cconfigure\u5e76\u4e0d\u4f1a\u751f\u6210 Makefile\uff0c\u9664\u975e\u6e90\u7801\u6ca1\u6709 Makefile\u3002<\/li><\/ol>\n\n\n\n<p>\u76f8\u5173\u9605\u8bfb\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><a href=\"https:\/\/handerfly.github.io\/shell\/2019\/04\/03\/shell%E7%BC%96%E7%A8%8B%E5%86%92%E5%8F%B7%E5%8A%A0-%E7%AD%89%E5%8F%B7-%E5%8A%A0%E5%8F%B7-%E5%87%8F%E5%8F%B7-%E9%97%AE%E5%8F%B7\/\">shell \u7f16\u7a0b\uff1a\u5192\u53f7 \u540e\u9762\u8ddf \u7b49\u53f7\uff0c\u52a0\u53f7\uff0c\u51cf\u53f7\uff0c\u95ee\u53f7\u7684\u610f\u4e49<\/a><\/li><li><a href=\"https:\/\/blog.csdn.net\/mozun1\/article\/details\/53857416\">linux\u547d\u4ee4-strip-nm<\/a><\/li><li><a href=\"https:\/\/blog.csdn.net\/honghuzhilangzixin\/article\/details\/7073312\">shell \u547d\u4ee4\u4ee5 : \u5f00\u5934<\/a><\/li><li><a href=\"http:\/\/senlinzhan.github.io\/2017\/12\/31\/valgrind\/\">\u4f7f\u7528 Valgrind \u68c0\u6d4b C++ \u5185\u5b58\u6cc4\u6f0f<\/a><\/li><li><a href=\"https:\/\/avaminzhang.wordpress.com\/2012\/02\/13\/%E5%A6%82%E4%BD%95%E5%B0%86linux%E4%B8%8B%E7%9A%84-a%E5%BA%93%E8%BD%AC%E5%88%B0windows%E4%B8%8B-lib%E5%BA%93\/\">\u5982\u4f55\u5c06linux\u4e0b\u7684.a\u5e93\u8f6c\u5230windows\u4e0b.lib\u5e93<\/a><\/li><li><a href=\"http:\/\/blog.csdn.net\/leixiaohua1020\/article\/details\/44587465\">\u96f7\u795eFFmpeg\u6e90\u4ee3\u7801\u7b80\u5355\u5206\u6790\uff1aconfigure<\/a><\/li><\/ol>\n\n\n\n<p>\u8d44\u6e90\u4e0b\u8f7d\uff1a<\/p>\n\n\n\n<p>1\uff0c\u6709\u6ce8\u91ca\u7684 configure.sh \u4e0b\u8f7d\u5730\u5740\uff1a <a href=\"https:\/\/pan.baidu.com\/s\/1N-cpap3OMWLkhYNdLaaqGw\">\u767e\u5ea6\u7f51\u76d8<\/a>\uff0c\u63d0\u53d6\u7801\uff1adifz<\/p>\n\n\n\n<p>TODO<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u8bd5\u4e00\u4e0b --arch=x86_32 \u8ddf --arch=x86_64 \u6709\u4ec0\u4e48\u533a\u522b\uff1f<\/li><li>--enable-cross-compile \u7814\u7a76\u8de8\u5e73\u53f0\u7f16\u8bd1\u3002<\/li><\/ol>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u7248\u6743\u6240\u5c5e\uff1a\u77e5\u8bc6\u661f\u7403\uff1a\u5f26\u5916\u4e4b\u97f3\uff0cQQ\uff1a2338195090\u3002 \u7531\u4e8e\u7b14\u8005\u7684\u6c34\u5e73\u6709\u9650\uff0c \u52a0\u4e4b\u7f16\u5199\u7684\u540c\u65f6\u8fd8\u8981\u53c2\u4e0e\u5f00\u53d1\u5de5\u4f5c\uff0c\u6587\u4e2d\u96be\u514d\u4f1a\u51fa\u73b0\u4e00\u4e9b\u9519\u8bef\u6216\u8005\u4e0d\u51c6\u786e\u7684\u5730\u65b9\uff0c\u6073\u8bf7\u8bfb\u8005\u6279\u8bc4\u6307\u6b63\u3002\u5982\u679c\u8bfb\u8005\u6709\u4efb\u4f55\u5b9d\u8d35\u610f\u89c1\uff0c\u53ef\u4ee5\u52a0\u6211\u5fae\u4fe1 Loken1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u4ee5 ffmpeg-n4.4.1 \u7684\u7248\u672c\u4e3a\u51c6\uff0c\u4e3b\u8981\u5206\u6790 ffmpeg \u9879\u76ee\u4e2d configure \uff08shel [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,6],"tags":[],"class_list":["post-530","post","type-post","status-publish","format-standard","hentry","category-ffmpeg","category-ffmpeg-env-build"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>ffmpeg-configure\u7f16\u8bd1\u5206\u6790 - \u5f26\u5916\u4e4b\u97f3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.xianwaizhiyin.net\/?p=530\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ffmpeg-configure\u7f16\u8bd1\u5206\u6790 - \u5f26\u5916\u4e4b\u97f3\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6587\u4ee5 ffmpeg-n4.4.1 \u7684\u7248\u672c\u4e3a\u51c6\uff0c\u4e3b\u8981\u5206\u6790 ffmpeg \u9879\u76ee\u4e2d configure \uff08shel [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.xianwaizhiyin.net\/?p=530\" \/>\n<meta property=\"og:site_name\" content=\"\u5f26\u5916\u4e4b\u97f3\" \/>\n<meta property=\"article:published_time\" content=\"2022-02-06T09:15:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-07T12:48:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.xianwaizhiyin.net\/wp-content\/uploads\/2022\/02\/config-1-1.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"loken\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.xianwaizhiyin.net\/#website\",\"url\":\"https:\/\/www.xianwaizhiyin.net\/\",\"name\":\"\u5f26\u5916\u4e4b\u97f3\",\"description\":\"FFmpeg\u3001WebRTC\uff0cSRS \u97f3\u89c6\u9891\u3001\u6d41\u5a92\u4f53\u6280\u672f\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.xianwaizhiyin.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.xianwaizhiyin.net\/?p=530#primaryimage\",\"inLanguage\":\"zh-Hans\",\"url\":\"\/wp-content\/uploads\/2022\/02\/config-1-1.png\",\"contentUrl\":\"\/wp-content\/uploads\/2022\/02\/config-1-1.png\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.xianwaizhiyin.net\/?p=530#webpage\",\"url\":\"https:\/\/www.xianwaizhiyin.net\/?p=530\",\"name\":\"ffmpeg-configure\u7f16\u8bd1\u5206\u6790 - \u5f26\u5916\u4e4b\u97f3\",\"isPartOf\":{\"@id\":\"https:\/\/www.xianwaizhiyin.net\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.xianwaizhiyin.net\/?p=530#primaryimage\"},\"datePublished\":\"2022-02-06T09:15:36+00:00\",\"dateModified\":\"2022-02-07T12:48:48+00:00\",\"author\":{\"@id\":\"https:\/\/www.xianwaizhiyin.net\/#\/schema\/person\/6605a70af752697df6b62f77c53298a3\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.xianwaizhiyin.net\/?p=530#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.xianwaizhiyin.net\/?p=530\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.xianwaizhiyin.net\/?p=530#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.xianwaizhiyin.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ffmpeg-configure\u7f16\u8bd1\u5206\u6790\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.xianwaizhiyin.net\/#\/schema\/person\/6605a70af752697df6b62f77c53298a3\",\"name\":\"loken\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.xianwaizhiyin.net\/#personlogo\",\"inLanguage\":\"zh-Hans\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f6320b5256dc36ef4243e0acf26144b8ac2668b478302ad154e95ce3202bc421?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f6320b5256dc36ef4243e0acf26144b8ac2668b478302ad154e95ce3202bc421?s=96&d=mm&r=g\",\"caption\":\"loken\"},\"sameAs\":[\"https:\/\/www.xianwaizhiyin.net\/\"],\"url\":\"https:\/\/www.xianwaizhiyin.net\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ffmpeg-configure\u7f16\u8bd1\u5206\u6790 - \u5f26\u5916\u4e4b\u97f3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.xianwaizhiyin.net\/?p=530","og_locale":"zh_CN","og_type":"article","og_title":"ffmpeg-configure\u7f16\u8bd1\u5206\u6790 - \u5f26\u5916\u4e4b\u97f3","og_description":"\u672c\u6587\u4ee5 ffmpeg-n4.4.1 \u7684\u7248\u672c\u4e3a\u51c6\uff0c\u4e3b\u8981\u5206\u6790 ffmpeg \u9879\u76ee\u4e2d configure \uff08shel [&hellip;]","og_url":"https:\/\/www.xianwaizhiyin.net\/?p=530","og_site_name":"\u5f26\u5916\u4e4b\u97f3","article_published_time":"2022-02-06T09:15:36+00:00","article_modified_time":"2022-02-07T12:48:48+00:00","og_image":[{"url":"https:\/\/www.xianwaizhiyin.net\/wp-content\/uploads\/2022\/02\/config-1-1.png"}],"twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"loken","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/www.xianwaizhiyin.net\/#website","url":"https:\/\/www.xianwaizhiyin.net\/","name":"\u5f26\u5916\u4e4b\u97f3","description":"FFmpeg\u3001WebRTC\uff0cSRS \u97f3\u89c6\u9891\u3001\u6d41\u5a92\u4f53\u6280\u672f","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.xianwaizhiyin.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"ImageObject","@id":"https:\/\/www.xianwaizhiyin.net\/?p=530#primaryimage","inLanguage":"zh-Hans","url":"\/wp-content\/uploads\/2022\/02\/config-1-1.png","contentUrl":"\/wp-content\/uploads\/2022\/02\/config-1-1.png"},{"@type":"WebPage","@id":"https:\/\/www.xianwaizhiyin.net\/?p=530#webpage","url":"https:\/\/www.xianwaizhiyin.net\/?p=530","name":"ffmpeg-configure\u7f16\u8bd1\u5206\u6790 - \u5f26\u5916\u4e4b\u97f3","isPartOf":{"@id":"https:\/\/www.xianwaizhiyin.net\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.xianwaizhiyin.net\/?p=530#primaryimage"},"datePublished":"2022-02-06T09:15:36+00:00","dateModified":"2022-02-07T12:48:48+00:00","author":{"@id":"https:\/\/www.xianwaizhiyin.net\/#\/schema\/person\/6605a70af752697df6b62f77c53298a3"},"breadcrumb":{"@id":"https:\/\/www.xianwaizhiyin.net\/?p=530#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.xianwaizhiyin.net\/?p=530"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.xianwaizhiyin.net\/?p=530#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.xianwaizhiyin.net\/"},{"@type":"ListItem","position":2,"name":"ffmpeg-configure\u7f16\u8bd1\u5206\u6790"}]},{"@type":"Person","@id":"https:\/\/www.xianwaizhiyin.net\/#\/schema\/person\/6605a70af752697df6b62f77c53298a3","name":"loken","image":{"@type":"ImageObject","@id":"https:\/\/www.xianwaizhiyin.net\/#personlogo","inLanguage":"zh-Hans","url":"https:\/\/secure.gravatar.com\/avatar\/f6320b5256dc36ef4243e0acf26144b8ac2668b478302ad154e95ce3202bc421?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f6320b5256dc36ef4243e0acf26144b8ac2668b478302ad154e95ce3202bc421?s=96&d=mm&r=g","caption":"loken"},"sameAs":["https:\/\/www.xianwaizhiyin.net\/"],"url":"https:\/\/www.xianwaizhiyin.net\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/www.xianwaizhiyin.net\/index.php?rest_route=\/wp\/v2\/posts\/530","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xianwaizhiyin.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xianwaizhiyin.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xianwaizhiyin.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xianwaizhiyin.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=530"}],"version-history":[{"count":12,"href":"https:\/\/www.xianwaizhiyin.net\/index.php?rest_route=\/wp\/v2\/posts\/530\/revisions"}],"predecessor-version":[{"id":564,"href":"https:\/\/www.xianwaizhiyin.net\/index.php?rest_route=\/wp\/v2\/posts\/530\/revisions\/564"}],"wp:attachment":[{"href":"https:\/\/www.xianwaizhiyin.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=530"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xianwaizhiyin.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=530"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xianwaizhiyin.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}