美文网首页
Xcode安装配置ffmpeg开发环境

Xcode安装配置ffmpeg开发环境

作者: 亦猿非猿 | 来源:发表于2018-12-14 08:26 被阅读30次

    在Mac平台上,下载安装ffmpeg
    配置ffmpeg在Xcode的开发环境

    下载ffmpeg

    1. 下载ffmpeg

      ➜  ~ brew install ffmpeg
      
    2. 查看版本

      ➜  ~ ffmpeg -version
      ffmpeg version 3.4.2 Copyright (c) 2000-2018 the FFmpeg developers
      
    3. 查看ffmpeg详细资信息

      ➜  ~ brew info ffmpeg
      ffmpeg: stable 3.4.2 (bottled), HEAD
      Play, record, convert, and stream audio and video
      https://ffmpeg.org/
      /usr/local/Cellar/ffmpeg/3.4.2 (248 files, 50.9MB) *
        Poured from bottle on 2018-08-18 at 19:01:35
      From: https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git/Formula/ffmpeg.rb
      ==> Dependencies
      Build: nasm ✘, pkg-config ✔, texi2html ✘
      Recommended: lame ✔, x264 ✔, xvid ✔
      Optional: chromaprint ✘, fdk-aac ✘, fontconfig ✘, freetype ✘, frei0r ✘, game-music-emu ✘, libass ✘, libbluray ✘, libbs2b ✘, libcaca ✘, libgsm ✘, libmodplug ✘, librsvg ✘, libsoxr ✘, libssh ✘, libvidstab ✘, libvorbis ✘, libvpx ✘, opencore-amr ✘, openh264 ✘, openjpeg ✘, openssl ✔, opus ✘, rtmpdump ✘, rubberband ✘, sdl2 ✘, snappy ✘, speex ✘, tesseract ✘, theora ✘, two-lame ✘, wavpack ✘, webp ✘, x265 ✘, xz ✘, zeromq ✘, zimg ✘
      ==> Options
      --with-chromaprint
       Enable the Chromaprint audio fingerprinting library
      --with-fdk-aac
       Enable the Fraunhofer FDK AAC library
      --with-fontconfig
       Build with fontconfig support
      --with-freetype
       Build with freetype support
      --with-frei0r
       Build with frei0r support
       
      ......
      
      --without-xvid
       Disable Xvid MPEG-4 video encoder
      --HEAD
       Install HEAD version
      
    4. 查看下载后的路径,从上面看就可以做知道,默认路径为

      /usr/local/Cellar/ffmpeg
      

    导入到Xcode

    1. 新建Command Line Tool项目

    相关文章

      网友评论

          本文标题:Xcode安装配置ffmpeg开发环境

          本文链接:https://www.haomeiwen.com/subject/isigfqtx.html