Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Video stream recording (http://stream-recorder.com/forum/forumdisplay.php?f=4)
-   -  

How to properly format RTMP links without using "File" property

(http://stream-recorder.com/forum/showthread.php?t=11240)

avirex 03-14-2012 09:06 PM

How to properly format RTMP links without using "File" property


 
Hi guys. Ok this is going to sound a little different, but here goes.

Essentially we are trying to play RTMP live streams in our Android application that we're developing. The API we're using to play RTMP streams only seems to accept addresses like rtmp://server/file but majority of RTMP streams out there also require the "File" as a separate parameter.

So how would we format all the RTMP links so that we can pass it as one RTMP address without using the "File" as a separate parameter? Sometimes rtmp://server/file works but most of the time it doesn't.

Here is an example, this works fine with JWPlayer.

rtmp://russiatoday.fms.visionip.tv/rt/Russia_al_yaum_1000k_1
File: 1000k_1.flv

When we try it as:

rtmp://russiatoday.fms.visionip.tv/rt/Russia_al_yaum_1000k_1/1000k_1

or

rtmp://russiatoday.fms.visionip.tv/rt/Russia_al_yaum_1000k_1/1000k_1.flv

... it doesn't work.

I'm hoping we can just format the URL differently so that the RTMP server will accept it. Any ideas?

Thanks.

svnpenn 03-15-2012 08:59 AM

Re: How to properly format RTMP links without using "File" property


 
You can try putting two forward slash between file and URL, but even that is not a guarantee.

A problem is that RtmpDump does not go from slash to slash if the connection fails.

lists.mplayerhq.hu/pipermail/rtmpdump/2011-December/001771.html

KSV 03-15-2012 09:15 AM

Re: How to properly format RTMP links without using "File" property


 
and what's the problem in specifying space separated options to RTMP_SetupURL.

Code:

"rtmp://russiatoday.fms.visionip.tv app=rt/Russia_al_yaum_1000k_1 playpath=1000k_1"
http://rtmpdump.mplayerhq.hu/librtmp.3.html


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