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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
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.
And where i need to --enable-openssl, i do it in Android_configuration.mk files configuration string, but it gives me error.
I have successfully enable tls/openssl, thanks for your help :D