美文网首页
音视频-编译FFmpeg

音视频-编译FFmpeg

作者: li_礼光 | 来源:发表于2021-07-06 01:31 被阅读0次

    参考 : 【秒懂音视频开发】14_编译FFmpeg

    通过命令行查看FFmpeg目前集成的AAC编解码器。

    # windows
    ffmpeg -codecs | findstr aac
     
    # mac
    ffmpeg -codecs | grep aac
    
    C:\Users\Administrator> ffmpeg -codecs | findstr aac
    ffmpeg version 4.3.2-2021-02-27-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
      built with gcc 10.2.0 (Rev6, Built by MSYS2 project)
      configuration: --enable-gpl --enable-version3 --enable-shared --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
      libavutil      56. 51.100 / 56. 51.100
      libavcodec     58. 91.100 / 58. 91.100
      libavformat    58. 45.100 / 58. 45.100
      libavdevice    58. 10.100 / 58. 10.100
      libavfilter     7. 85.100 /  7. 85.100
      libswscale      5.  7.100 /  5.  7.100
      libswresample   3.  7.100 /  3.  7.100
      libpostproc    55.  7.100 / 55.  7.100
     DEAIL. aac                  AAC (Advanced Audio Coding) (decoders: aac aac_fixed )
     D.AIL. aac_latm             AAC LATM (Advanced Audio Coding LATM syntax)
    

    目前只有两个 DEAIL. aac 和 D.AIL. aac_latm。

    集成自己需要的编码器 libfdk_aac

    安装各种依赖包。这里比较耗时,可能一两小时。

    # 编译工具链
    pacman -S mingw-w64-x86_64-toolchain
     
    pacman -S mingw-w64-x86_64-yasm
     
    pacman -S mingw-w64-x86_64-SDL2
     
    pacman -S mingw-w64-x86_64-fdk-aac
     
    pacman -S mingw-w64-x86_64-x264
     
    pacman -S mingw-w64-x86_64-x265
     
    # 需要单独安装make
    pacman -S make
    

    最终打印

    相关文章

      网友评论

          本文标题:音视频-编译FFmpeg

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