ijkplayer 之二:添加格式支持

Posted by DysaniazzZ on September 8, 2019

添加格式

  • https

    • 编译时加入 OpenSSL。

      ./init-android.sh
      
      # to support https
      ./init-android-openssl.sh
      
      cd android/contrib
          
      # to support https
      ./compile-openssl.sh clean
      ./compile-openssl.sh armv7a
          
      ./compile-ffmpeg.sh clean
      ./compile-ffmpeg.sh arm7a
      
      cd ..
          
      ./compile-ijk.sh armv7a
      
    • Ref: 一步步带你编译 ijkplayer so 支持 HTTPS

  • mp2

    • 在 module.sh 里添加支持:

      export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-decoder=mp2"
      
    • Ref: #36 / #878 / #3951

  • ac3

    • 在 module.sh 里添加支持:

      export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-decoder=ac3"
      

测试视频

  • https

    • https://media.w3.org/2010/05/sintel/trailer.mp4
  • mp2

    • http://117.139.20.20:6410/28000001/00000000000700000000000011176392
  • ac3

    • http://zb.j19o.cn/sc.php?scn=ys4kcq