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
  #11  
Old 09-11-2012, 10:12 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


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.
Reply With Quote
  #12  
Old 09-12-2012, 05:17 AM
andygr andygr is offline
Junior Member
 
Join Date: Apr 2012
Posts: 2
andygr is on a distinguished road
Default

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.
Reply With Quote
  #13  
Old 09-12-2012, 06: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


Glad you got it working and you find it useful.
Reply With Quote
  #14  
Old 09-16-2012, 09:02 AM
flinki flinki is offline
Junior Member
 
Join Date: Sep 2012
Posts: 5
flinki is on a distinguished road
Default

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?
Reply With Quote
  #15  
Old 09-16-2012, 03:56 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


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.
Reply With Quote
  #16  
Old 09-17-2012, 09:51 AM
flinki flinki is offline
Junior Member
 
Join Date: Sep 2012
Posts: 5
flinki is on a distinguished road
Default

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....

Last edited by flinki : 09-17-2012 at 12:46 PM.
Reply With Quote
  #17  
Old 09-17-2012, 02:04 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


might be a stupid question but you have given your app the relevant permissions? (http://developer.android.com/referen...ermission.html)
Reply With Quote
  #18  
Old 10-30-2012, 12:24 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


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

Last edited by S74ck3r : 10-31-2012 at 03:57 AM.
Reply With Quote
  #19  
Old 11-02-2012, 11: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


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

The new builds (Android and Windows) do.
Reply With Quote
  #20  
Old 11-08-2012, 04:51 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


New android and windows binaries available updated to PolarSSL 1.2.0.
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 12:26 PM.


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