PDA

View Full Version : I'm stuck at finding the file name of an RTMP stream


nefcanto
09-08-2015, 11:59 PM
Hi,

I want to find the information of an RTMP service. But I can't. Using WireShark I can find the server path, and even security token, and using URL Snooper I can find out that the protocol is actually RTMPE.

Yet I'm unable to find the "file name". One that looks like "mp4:filename.mp4" for example.

The website address is:

http://www1.iransima.ir/

Each link is a stream of a different channel.

The URL of the rtmp stream that I can find is:

rtmpe://edge5.iransima.ir/e-tv3?wmsAuthSign=c2VydmVyX3RpbWU9OS85LzIwMTUgNTo0Mz ozNyBBTSZoYXNoX3ZhbHVlPW8yekpUMkV0aWp0Ykx5aWZBdll2 NlE9PSZ2YWxpZG1pbnV0ZXM9MTA=

But as you can see, it doesn't contain the file-name part. How can I find the file name?

Any help is highly appreciated.

biezom
09-09-2015, 12:09 AM
Hi,

I want to find the information of an RTMP service. But I can't. Using WireShark I can find the server path, and even security token, and using URL Snooper I can find out that the protocol is actually RTMPE.

Yet I'm unable to find the "file name". One that looks like "mp4:filename.mp4" for example.

The website address is:

http://www1.iransima.ir/

Each link is a stream of a different channel.

The URL of the rtmp stream that I can find is:

rtmpe://edge5.iransima.ir/e-tv3?wmsAuthSign=c2VydmVyX3RpbWU9OS85LzIwMTUgNTo0Mz ozNyBBTSZoYXNoX3ZhbHVlPW8yekpUMkV0aWp0Ykx5aWZBdll2 NlE9PSZ2YWxpZG1pbnV0ZXM9MTA=

But as you can see, it doesn't contain the file-name part. How can I find the file name?

Any help is highly appreciated.

rtmpdump -r "rtmp://cdn.iransima.ir:1935/e-tv3?wmsAuthSign=c2VydmVyX3RpbWU9OS85LzIwMTUgNjowNj ozNyBBTSZoYXNoX3ZhbHVlPUtYcnVlZlE2QUtqck1TaE52SWxO S0E9PSZ2YWxpZG1pbnV0ZXM9MTA=/tv3-300k.stream" -T "4cb3b8d53539e241" -o "tv3-300k.stream.flv"

you can find all info in source page code

nefcanto
09-09-2015, 12:16 AM
Thank you for the reply. I tried rtmpdump command:


C:\Program Files\rtmpdump>rtmpdump -r "rtmp://cdn.iransima.ir:1935/e-tv3?wmsAuth
Sign=c2VydmVyX3RpbWU9OS85LzIwMTUgNjowNjozNyBBTSZoY XNoX3ZhbHVlPUtYcnVlZlE2QUtqck1
TaE52SWxOS0E9PSZ2YWxpZG1pbnV0ZXM9MTA=/tv3-300k.stream" -T "4cb3b8d53539e241" -o
"tv3-300k.stream.flv"
RTMPDump v2.3
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
ERROR: rtmp server sent error
ERROR: rtmp server requested close

C:\Program Files\rtmpdump>

Please help me understand how did you find token and file name? I'm still unable to find them. They're not in the source code, or at least I'm doing something wrong. F12 on Chrome, using Chrome's Developer Tools, and searching in HTML document, gives me no result.

biezom
09-09-2015, 12:32 AM
Thank you for the reply. I tried rtmpdump command:




Please help me understand how did you find token and file name? I'm still unable to find them. They're not in the source code, or at least I'm doing something wrong. F12 on Chrome, using Chrome's Developer Tools, and searching in HTML document, gives me no result.

first maybe you need update your version of rtmpdump with the last patched by KSV

https://github.com/K-S-V/Scripts/releases/download/v2.4/rtmpdump-2.4.zip

Ctrl+U to view source code

http://i.imgur.com/r4sESZZ.png

nefcanto
09-09-2015, 12:47 AM
Thank you again. So, the last question, how did you understand that it's an .flv file?

biezom
09-09-2015, 12:49 AM
Thank you again. So, the last question, how did you understand that it's an .flv file?

always see .flv with rtmpdump

nefcanto
09-09-2015, 12:57 AM
Now I'm stuck at redirects. It simply tries to follow the redirect, but ends up with this error:


Connecting ...
INFO: Connected...
INFO: rtmp server sent redirect
INFO: trying to connect with redirected url
WARNING: Trying different position for server digest!
ERROR: Closing connection: NetStream.Play.Failed


I truly fail to understand why streaming should be so complicated. Maybe it's because of copyright issues.

biezom
09-09-2015, 01:08 AM
Now I'm stuck at redirects. It simply tries to follow the redirect, but ends up with this error:



I truly fail to understand why streaming should be so complicated. Maybe it's because of copyright issues.


this part is dynamic and expires with time so maybe you need update it by view source page again

wmsAuthSign=c2VydmVyX3RpbWU9OS85LzIwMTUgNzowODo1OC BBTSZoYXNoX3ZhbHVlPTFjWUNsdk1oSEM3VE5FRDlhTTNVRHc9 PSZ2YWxpZG1pbnV0ZXM9MTA=