Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   rtmpdump (http://stream-recorder.com/forum/forumdisplay.php?f=54)
-   -  

Rtmpdump build for Android

(http://stream-recorder.com/forum/showthread.php?t=13466)

S74ck3r 11-23-2012 03:29 AM

Re: Rtmpdump build for Android


 
Howto compile Rtmpdump for Android

1) Get the Android ndk (http://developer.android.com/tools/sdk/ndk/index.html) and follow the instructions here (PATH_TO_NDK_INSTALL/../android-ndk-r7/docs/STANDALONE-TOOLCHAIN.html) to create a standalone android toolchain.

2) Download and install Mingw (http://sourceforge.net/projects/mingw/files/MinGW/).

3) Download PolarSSL source from (https://polarssl.org/download) and unzip it to your mingw/msys home directorys. For me this was C:\MinGW\msys\1.0\home\S74ck3r. Current builds are made with PolarSSL 1.2.0

If you're going to build with PolarSSL 1.2.0 you will need to download an additional header from (http://nuicode.com/projects/ccv-mult...e.h?format=raw) and copy it to your
mingw/include folder because it's not included in Mingw.


4) Open Mingw shell, add the path to the standalone android toolchain binaries to the path. On my system I did this, but it will depend on where you installed
the toolchain.

'export PATH=/c/tmp/android-toolchain/bin:$PATH'

5) CD to the unzipped PolarSSL directory and type;

'make CC=arm-linux-androideabi-gcc APPS='
'make install DESTDIR=/c/tmp/android-toolchain/sysroot'

(Obviously change the install destination directory if your toolchain is in a different location)

6) Get the Rtmpdump source. The following commands assume you have retrieved it from my repository (https://github.com/S74ck3r/rtmpdump.git).
You can obviously get the source directly from the official repository. There is no difference in the actual code (i.e. no added patches or additional functionality)
but I have added a target for android to the makefiles for convenience.

7) CD to the Rtmpdump source directory and type;

-- Shared library version
'make SYS=android CROSS_COMPILE=arm-linux-androideabi- INC="-I/c/tmp/android-toolchain/sysroot/include" CRYPTO=POLARSSL'
-- Static version
'make SYS=android CROSS_COMPILE=arm-linux-androideabi- INC="-I/c/tmp/android-toolchain/sysroot/include" CRYPTO=POLARSSL SHARED='

(Obviously change this if your toolchain is in a different location, make sure the include path is correct)


8) Done.

CyKiller 11-23-2012 05:43 PM

Re: Rtmpdump build for Android


 
Thank you so much, loaded up my ubunt virtual box session, and voila followed orders and all good with polarssl!! One major issue where I am completely lost, the librtmp.so.0 still maintains the .0 expression when I need it for librtmp.so, any tips on how to adjust the extension.

S74ck3r 11-24-2012 03:37 AM

Re: Rtmpdump build for Android


 
Maybe you could try renaming the file yourself, or running the install
target from the makefile which installs the shared library and creates a link to it with just the .so extension.

Dee Jay 12-08-2012 05:02 AM

Re: Rtmpdump build for Android


 
If i want watch "rtmpe" channels from android phone, or android TV Box, how i can do this, and make playlist of channel with names?
If this possible?
Thanks!

Dee Jay 12-12-2012 12:19 AM

Re: Rtmpdump build for Android


 
Somebody please help!

meddem 01-04-2013 03:46 PM

Re: Rtmpdump build for Android


 
has someone the updated librtmp.so file for android? :)

S74ck3r 01-05-2013 12:45 PM

Re: Rtmpdump build for Android


 
This should still work.

https://github.com/downloads/S74ck3r...-2012-11-13.7z

elBradford 01-15-2013 10:21 AM

Re: Rtmpdump build for Android


 
S74ck3r, thanks for your support in this thread.

I successfully got the rtmpgw static binary to work in my Android project. When I confirmed that the gateway is running, I try to view the video stream on the appropriate port and my video player crashes. I know the streams work in VLC, however they don't work correctly in the default VideoView OR the Vitamio Player (which is based on ffmpeg).

Do you have any insight into this problem? They are twitch.tv or justin.tv streams if that helps. Also, the streams in VLC say that the video codec is h264 and audio is usually mp3.

danturner 01-19-2013 06:19 PM

Re: Rtmpdump build for Android


 
ElBradford,

Are you saying that rtmpgw is successfully streaming out data with a http get request from inside your app, and simply not playing back in videoview? I have been trying to use vitamio as a streamer by including the rtmpgw info as part of the http get request from vitamio, with rtmpgw running on a different machine. All i am getting is 'range request not supported' errors in rtmpgw. Did you manage to circumvent this problem?

Regards


Dan

S74ck3r 01-30-2013 06:48 AM

Re: Rtmpdump build for Android


 
Moving downloads from github to bitbucket.

Current build is now here https://bitbucket.org/S74ck3r/rtmpdu...roid/downloads


All times are GMT -6. The time now is 08:55 AM.