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)

danturner 01-30-2013 09:02 AM

Re: Rtmpdump build for Android


 
Hi S74ck3r,

Have you managed to succesfully cross-compile librtmp with the librtmp.a archive included? I see you've managed to compile the librtmp.so.0 file, it seems. I'm trying to add librtmp support to ffmpeg for Android, and need a cross-compiled librtmp in order to do this.

danturner 01-30-2013 09:03 AM

Re: Rtmpdump build for Android


 
Thanks for all your hard work, by the way....

S74ck3r 01-31-2013 01:59 AM

Re: Rtmpdump build for Android


 
All the hard work has been done by people much cleverer than me.

I just wanted to find out a bit about how the android ndk worked and thought I'd share.

Anyway, I've put up an archive of all the build artefacts at the bitbucket link above (local.7z). Hopefully it contains the files that you need.

danturner 01-31-2013 04:43 AM

Re: Rtmpdump build for Android


 
Exactly what I was after! Thanks so much! Now to see if it works.....

elBradford 02-22-2013 03:10 PM

Re: Rtmpdump build for Android


 
Quote:

Originally Posted by danturner (Post 58686)
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

Dan,

Sorry for the long delay. I don't have email notifications turned on apparently.

Yes, I got it running properly. I confirmed through adb shell and saw the process. I even saw the logs as it started converting the stream. What you might be experiencing is a problem with ports. Check out "ephemeral ports" or something like that. You need a good port # otherwise it won't have the proper permissions. If you can get a root adb shell then you can troubleshoot as root.

Have you had any further luck since you last posted?

Bradford

thebearnecessities 02-22-2013 03:33 PM

Re: Rtmpdump build for Android


 
I'm trying to get rtmpdump working on android.

The reason is because I am using xbmc media centre and would like to use xbmc media centre to access a UK based video on demand service called 4OD (its channel 4's on demand service).

I know nothing about RTMPDUMP or what it does but i know that I need it in order to use 4OD no xbmc.

Is anyone able to point me in the right direction of how to get it working on android? have other people been using it successfully?

the addon simply wants to know where the rtmpdump.exe file is (on the windows version) but on android i don't know what to point it towards since i presume the exe file is no use on android.

i have been looking at your downloads page https://bitbucket.org/S74ck3r/rtmpdu...roid/downloads but i don't know which one is for me and where to put the files on my android box etc.

any help much appreciated.

also how come i cant subscribe to the thread? i click on thread tools and get taken t the main forum page. is it because i dont have enough posts maybe?

danturner 02-28-2013 02:03 PM

Re: Rtmpdump build for Android


 
Quote:

Originally Posted by elBradford (Post 59935)
Dan,

Sorry for the long delay. I don't have email notifications turned on apparently.

Yes, I got it running properly. I confirmed through adb shell and saw the process. I even saw the logs as it started converting the stream. What you might be experiencing is a problem with ports. Check out "ephemeral ports" or something like that. You need a good port # otherwise it won't have the proper permissions. If you can get a root adb shell then you can troubleshoot as root.

Have you had any further luck since you last posted?

Bradford

Kinda.... I thought my issue was that Vitamio uses an older version of ffmpeg, that doesn't support non-seekable http streams. When i corrected this in ffmpeg and tested it in Linux it seemed to work, but the recompiliation for Android never worked properly.

Are you using Vitamio in your app? I assume you are because videoview won't support flash streams. May i be so forthright as to ask for a brief overview of your exact process? This has been causing me quite a bit of grief recently.

Thanks,

Dan

elBradford 03-06-2013 10:21 AM

Re: Rtmpdump build for Android


 
Quote:

Originally Posted by danturner (Post 60138)
Kinda.... I thought my issue was that Vitamio uses an older version of ffmpeg, that doesn't support non-seekable http streams. When i corrected this in ffmpeg and tested it in Linux it seemed to work, but the recompiliation for Android never worked properly.

Are you using Vitamio in your app? I assume you are because videoview won't support flash streams. May i be so forthright as to ask for a brief overview of your exact process? This has been causing me quite a bit of grief recently.

Thanks,

Dan

I used both Vitamio and the native videoview, neither of them worked.

I got rtmpgw running by doing something like this: https://code.google.com/p/market-ena.../ShellCommands

I tested it by getting a root adb shell to make sure I could run it, then when I ran it in my app I made sure to use a ephemeral port so it could run without root permissions.

I think the issue is that rtmpgw creates a http stream, but what is the format of that stream? Is it a flv stream? I don't really understand how rtmpgw changes the rtmp stream, and what its output is besides it being a http stream.

danturner 03-07-2013 08:50 AM

Re: Rtmpdump build for Android


 
It's an flv stream, I believe. The native videoview won't ever play this format, while Vitamio will. The problem is, however, that the version of ffmpeg used to build Vitamio doesn't not support non-seekable streams (such as that given out by rtmpgw). This is why rtmpgw won't start streaming when sent an http GET request from Vitamio. The latest version of ffmpeg does support this, however, and hopefully a future build of Vitamio will include this too.

That's the reason for your (and my) pain.

ivied 03-13-2013 11:24 AM

Re: Rtmpdump build for Android


 
Quote:

Originally Posted by S74ck3r (Post 56681)
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.

..


8) Done.

Hello! thx for this instructions!
Sorry for my epic noobish question. i'm complete all instruction(it was really hard for me, near 8 hours for that) and cross compile files(on my PC). And so what i must doo for run this files on my android device:confused: How this program work? Give me direction for the study, realy thx for answer!
And one more question. Now I make an application for android, where I have to get rtmp stream from online flash player (player passed html code). I need read this stream for display in the my application as html code. will rtpmdump help me for that? or maybe you know a more efficient implementation?


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