Android FFMPEG Build with librtmp

I am pulling my hair out trying to compile FFMPEG for Android with librtmp enabled. I have successfully built FFMPEG using the Guardian Project here, but it does not have librtmp support. The only answer I found in this problem is the previous stack overflow question ( HERE ), but it does not want to work for me.

At the moment, I have the compiled librtmp.so.0 file from the official rtmpdump android build in the rtmpdump / librtmp folder located in the android-ffmpeg folder. The extract from my configure_ffmpeg.sh file looks like this:

 ./configure \ $DEBUG_FLAG \ --arch=arm \ --cpu=cortex-a8 \ --target-os=linux \ --enable-runtime-cpudetect \ --prefix=$prefix \ --enable-pic \ --disable-shared \ --enable-static \ --cross-prefix=$NDK_TOOLCHAIN_BASE/bin/$NDK_ABI-linux-androideabi- \ --sysroot="$NDK_SYSROOT" \ --extra-cflags="-I../x264 -mfloat-abi=softfp -mfpu=neon" \ --extra-ldflags="-L../x264" \ --extra-cflags="-I/home/dan/android-ffmpeg/rtmpdump" \ --extra-ldflags="-L/home/dan/android-ffmpeg/rtmpdump -lrtmp" \ --enable-version3 \ --enable-gpl \ \ --disable-doc \ --enable-yasm \ \ --enable-decoders \ --enable-encoders \ --enable-muxers \ --enable-demuxers \ --enable-parsers \ --enable-protocols \ --enable-filters \ --enable-avresample \ --enable-libfreetype \ \ --disable-indevs \ --enable-indev=lavfi \ --disable-outdevs \ \ --enable-hwaccels \ \ --enable-ffmpeg \ --disable-ffplay \ --disable-ffprobe \ --enable-ffserver \ --enable-network \ \ --enable-libx264 \ --enable-zlib \ --enable-librtmp \ 

When I try to compile this, it ultimately displays an error, and my config.log FFMPEG file tells me that it cannot find -lrtmp. I'm sure I am directing it to the right directory ... does anyone have any ideas?

Hello

Dan

+4
source share
1 answer

Dan,

This is somewhat old and maybe not very helpful, because it is not a complete answer, but I struggled with this for several months. My efforts were documented in one of the ffmpeg forums (here: http://ffmpeg.zeranoe.com/forum/viewtopic.php?f=29&t=1383 ), and I also did not succeed.

Ultimately, after creating librtmp and telling the script assembly where to find it (and disabling pkg-config for librtmp in the conf ffmpeg file), I always have a list of errors like

 libavformat/librtmp.o: in function rtmp_read:libavformat/librtmp.c:153: error: undefined reference to 'RTMP_Read' 
  • all of the various RTMP functions are listed, which he claims are undefined. But the header file is present along with the rest of the required files.

I just wanted to put this here to help you or other users still try to build ffmpeg using librtmp for Android.

Bradford

+2
source

All Articles