Menu

Openssl

sabbir
2013-12-24
2013-12-25
  • sabbir

    sabbir - 2013-12-24

    I have worked using your project, and it works fine. Now i want to tls from ffmpeg(you library), in normal ffmpeg it can be enabled by --enable-openssl in configuration. But if I enable it in your ffmpeg, then it gives me error (bad instraction). Android comes with libssl and libcrypto. Is it possible to enable-openssl in your project? If possible, then how? If not possible in current script, will you enable it in future rleases. Another thing is, will you update your project for current ffmpeg 2.1? Thanks

     
  • Obucina

    Obucina - 2013-12-24

    Yes, it is possible to enable it.

    First, add --enable-openssl to a configure command line. Because FFmpeg is configured against root filesystem from NDK (where you do not have openssl), and not against android root filesystem (where you have openssl), ./configure will not enable it, even if You have the --enable-openssl parameter, When ./configuration finishes, you have to manually change files config.h and config.mak to actually enable openssl and protocols You want.

    Basically You will want to change:
    in config.h CONFIG_OPENSSL and CONFIG_TLS_PROTOCOL to 1
    in config.mak remove ! in front of !CONFIG_OPENSSL=yes and !CONFIG_TLS_PROTOCOL=yes

     
  • sabbir

    sabbir - 2013-12-25

    I usually just run "mm" to built. If i change the files as u mentioned then it recreated with the original after running "mm". Can you please expain me more to build the ffmpeg using mm after changing the files.

     
  • sabbir

    sabbir - 2013-12-25

    And where i need to --enable-openssl, i do it in Android_configuration.mk files configuration string, but it gives me error.

     
  • sabbir

    sabbir - 2013-12-25

    I have successfully enable tls/openssl, thanks for your help :D

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.