Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
#11
|
|||
|
|||
Re: Rtmpdump build for Androidthis 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. |
#12
|
|||
|
|||
Re: Rtmpdump build for AndroidThank 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. |
#13
|
|||
|
|||
Re: Rtmpdump build for AndroidGlad you got it working and you find it useful.
|
#14
|
|||
|
|||
Re: Rtmpdump build for AndroidGreat 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? |
#15
|
|||
|
|||
Re: Rtmpdump build for Androidhi 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. |
#16
|
|||
|
|||
Re: Rtmpdump build for AndroidI'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")); Code:
Runtime.getRuntime().exec("/system/bin/chmod 777 "+"rtmpgw",getFilesDir()); Code:
Runtime.getRuntime().exec("./rtmpgw,getFilesDir()); 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. |
#17
|
|||
|
|||
Re: Rtmpdump build for Androidmight be a stupid question but you have given your app the relevant permissions? (http://developer.android.com/referen...ermission.html)
|
#18
|
|||
|
|||
Re: Rtmpdump build for Androidupdated build again, https://github.com/S74ck3r/rtmpdump/downloads
Last edited by S74ck3r : 10-31-2012 at 03:57 AM. |
#19
|
|||
|
|||
Re: Rtmpdump build for AndroidOk, the builds I made previously weren't displaying the stream properties (codecs, length etc).
The new builds (Android and Windows) do. |
#20
|
|||
|
|||
Re: Rtmpdump build for AndroidNew android and windows binaries available updated to PolarSSL 1.2.0.
|
Tags: android, rtmpdump |
Thread Tools | |
Display Modes | |
|
|