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 08-23-2012 07:35 AM

Rtmpdump build for Android


 
So I've been struggling for a while to get Rtmpdump to build for Android on windows.

If anyone wants to try it I've uploaded the binaries here https://github.com/S74ck3r/rtmpdump/downloads

It's built from the latest code, again with no patches or additions. Don't know if it works properly as I haven't tested it yet but it does appear to load.

Shared library version not working.. will look at it later but don't bother downloading that one. --Update, rename the shared library to "librtmp." (without the quotes but with the fullstop at the end that's the important bit) and it will work.

I'm not responsible if it bricks your phone...

Richard

S74ck3r 08-24-2012 03:52 AM

Re: Rtmpdump build for Android


 
Mistake on shared library naming now fixed, new binaries uploaded (see first post for link).



Richard

dextor 09-09-2012 01:49 PM

Re: Rtmpdump build for Android


 
hi richard,

i would like to know more about making rtmpdump work on android. i tried to run it via terminal emulator but it keeps telling me "permission denied" even with root access.

how did you manage to make it run? does it require root?

thanks

S74ck3r 09-10-2012 01:53 AM

Re: Rtmpdump build for Android


 
Hi dextor,

I copied the lib file to /system/lib and the application files to /system/xbin.

After that you to set the application files as executable, just use adb shell, remount the file system as r/w and chmod them using 755.

Alternatively get es file explorer (it's free), make sure it has root access and set the file system as writeable, find the file and view it's properties.
From there you can make it executable by ticking a checkbox.

hope that helps
Richard

dextor 09-10-2012 03:18 AM

Re: Rtmpdump build for Android


 
thanks so much for your answer, that definitely helps me out.

i was wondering why rtmpdump needs root access though.. do you know the reason behind this?

S74ck3r 09-10-2012 03:57 AM

Re: Rtmpdump build for Android


 
I don't think it does, you just need root access to copy the files into the correct places.

It works find from a shell without requesting root access first.

dextor 09-10-2012 06:15 AM

Re: Rtmpdump build for Android


 
yes, but the library must be placed mandatory into the system directory in order for rtmpdump to work, right?

i'm looking for a completely non-root solution: since i need to execute rtmpdump from an Android application, i don't care if the libraries are installed, my only need is to launch an instance of rtmpdump

EDIT: thanks for your time :)

S74ck3r 09-10-2012 06:37 AM

Re: Rtmpdump build for Android


 
ah sorry, I see what you mean now..

Try the other download from my github (https://github.com/downloads/S74ck3r...-rtmpdump.zip), it is a static build so doesn't need the library (just make sure the binaries are executable).

If you need any testers for your app I'd be interested.

dextor 09-10-2012 10:28 AM

Re: Rtmpdump build for Android


 
that did the trick. i found out that executing from /sdcard/ is not possible if it is mounted just with r/ permissions. i copied your rtmpdump executable in /data/local/tmp and it totally works.

i love you, really :) once i integrate this solution on my application i will send a copy for you to test!

andygr 09-11-2012 06:42 AM

Re: Rtmpdump build for Android


 
Works great. Thanks you. Does somebody figured out how to launch vlc in Android like...
rtmpdump blabla | vlc -


All times are GMT -6. The time now is 07:40 PM.