Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > rtmpdump
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #31  
Old 11-23-2012, 04:29 AM
S74ck3r S74ck3r is offline
Junior Member
 
Join Date: Aug 2012
Posts: 27
S74ck3r is on a distinguished road
Default

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.
Reply With Quote
  #32  
Old 11-23-2012, 06:43 PM
CyKiller CyKiller is offline
Junior Member
 
Join Date: Nov 2012
Posts: 5
CyKiller is on a distinguished road
Default

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.
Reply With Quote
  #33  
Old 11-24-2012, 04:37 AM
S74ck3r S74ck3r is offline
Junior Member
 
Join Date: Aug 2012
Posts: 27
S74ck3r is on a distinguished road
Default

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.
Reply With Quote
  #34  
Old 12-08-2012, 06:02 AM
Dee Jay Dee Jay is offline
Junior Member
 
Join Date: Dec 2012
Posts: 13
Dee Jay is on a distinguished road
Default

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!
Reply With Quote
  #35  
Old 12-12-2012, 01:19 AM
Dee Jay Dee Jay is offline
Junior Member
 
Join Date: Dec 2012
Posts: 13
Dee Jay is on a distinguished road
Default

Re: Rtmpdump build for Android


Somebody please help!
Reply With Quote
  #36  
Old 01-04-2013, 04:46 PM
meddem meddem is offline
Junior Member
 
Join Date: Jan 2013
Posts: 1
meddem is on a distinguished road
Default

Re: Rtmpdump build for Android


has someone the updated librtmp.so file for android?
Reply With Quote
  #37  
Old 01-05-2013, 01:45 PM
S74ck3r S74ck3r is offline
Junior Member
 
Join Date: Aug 2012
Posts: 27
S74ck3r is on a distinguished road
Default

Re: Rtmpdump build for Android


This should still work.

https://github.com/downloads/S74ck3r...-2012-11-13.7z
Reply With Quote
  #38  
Old 01-15-2013, 11:21 AM
elBradford elBradford is offline
Junior Member
 
Join Date: Jan 2013
Posts: 4
elBradford is on a distinguished road
Default

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.
Reply With Quote
  #39  
Old 01-19-2013, 07:19 PM
danturner danturner is offline
Junior Member
 
Join Date: Dec 2012
Posts: 11
danturner is on a distinguished road
Default

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
Reply With Quote
  #40  
Old 01-30-2013, 07:48 AM
S74ck3r S74ck3r is offline
Junior Member
 
Join Date: Aug 2012
Posts: 27
S74ck3r is on a distinguished road
Default

Re: Rtmpdump build for Android


Moving downloads from github to bitbucket.

Current build is now here https://bitbucket.org/S74ck3r/rtmpdu...roid/downloads
Reply With Quote
Reply Post New Thread
Tags: ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 11:13 PM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons