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 09-11-2012 09:12 AM

Re: Rtmpdump build for Android


 
this is the best I can come up with, but I'm no expert. Can't guarantee it will work as I don't have/can't get vlc on my phone but it does try and open the file once the download has started.

Basically you need to find the package and activity name of the application that you want to start (have a look here or google it http://simrandev.com/coding/launch-a...-adbterminal/). I just fired up adb logcat and started a video to find the activity.

The -d parameter is the location of your rtmpdump output file.

rtmpdump -r -W etc -o /sdcard/test.flv | am start -n com.cooliris.media/.MovieView -d /sdcard/test.flv

The standard android movie player doesn't handle flv so I just got an error saying the file couldn't be played.

andygr 09-12-2012 04:17 AM

Re: Rtmpdump build for Android


 
Thank you very much for your explanation. It worked but with rtmpgw. Its better for me cause it does not use temp files. I do like:

am start -a android.intent.action.VIEW -d http://127.0.0.1 -f 0x10000000 -n org.videolan.vlc.betav7neon/.gui.video.VideoPlayerActivity
rtmpgw -v -r etc

Only need to figure out how to start this terminal script through a widget.
Thank you very much for providing the port.

S74ck3r 09-12-2012 05:29 AM

Re: Rtmpdump build for Android


 
Glad you got it working and you find it useful.

flinki 09-16-2012 08:02 AM

Re: Rtmpdump build for Android


 
Great work guys! Thanks . About a year ago a thought it must pretty cool to watch streams on my galaxy s2 but i never managed to do so . I just had not much time to test it out either. A few days ago I got my nexus 7 tablet and I began to search in the internet and found this thread. Now everything is working and I can start to programm my app to watch my favourite streams. Thanks !!

S74ck3r maybe you could post the commands you used to compile rtmpdump for android on Windows. I'm very intrested in this. I guess you used cygwin win mingw compiler right?

S74ck3r 09-16-2012 02:56 PM

Re: Rtmpdump build for Android


 
hi flinki,

didn't use cygwin, just mingw. The build process is pretty much the same as a windows build once you've setup the android toolchain.

Basically cross compile polarssl then build rtmpdump as usual using
SYS=android.

flinki 09-17-2012 08:51 AM

Re: Rtmpdump build for Android


 
I'm currently working on my app and I'm trying to start rtmpgw or rtmpdump within the app . I placed the executables in the assets folder of my app so that i can access them and create the file :
Code:

InputStream inputStream = getAssets().open("rtmpgw");
                       
OutputStream out = new FileOutputStream(newFile(getFilesDir()+"/rtmpgw"));

Then I set the right permissions through :

Code:

Runtime.getRuntime().exec("/system/bin/chmod 777 "+"rtmpgw",getFilesDir());
that's also working . But when I try to start rtmpgw through:
Code:

Runtime.getRuntime().exec("./rtmpgw,getFilesDir());
nothing happens and I don't get output back.


I tried also to execute a shell first and then write to the Outputstream but nothing seems to work.

Maybe someone can provide me java code or shell script how to start rtmpgw within a app.

Ref:http://code.google.com/p/market-enab.../ShellCommands

http://gimite.net/en/index.php?Run%20native%20executable%20in%20Android %20App


Update :
Oh man , I forgot to read the error stream ..........
Now I get an Error message
rtmpdump doesn't start capturing because of a ERROR: Problem accessing the DNS. (addr: live.tv-kino.net) don't know why I'm getting this.
tried also other rtmp streams . But starting from adb shell works strange....

S74ck3r 09-17-2012 01:04 PM

Re: Rtmpdump build for Android


 
might be a stupid question but you have given your app the relevant permissions? (http://developer.android.com/referen...ermission.html)

S74ck3r 10-30-2012 11:24 AM

Re: Rtmpdump build for Android


 
updated build again, https://github.com/S74ck3r/rtmpdump/downloads

S74ck3r 11-02-2012 10:29 AM

Re: Rtmpdump build for Android


 
Ok, the builds I made previously weren't displaying the stream properties (codecs, length etc).

The new builds (Android and Windows) do.

S74ck3r 11-08-2012 03:51 AM

Re: Rtmpdump build for Android


 
New android and windows binaries available updated to PolarSSL 1.2.0.


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