Sign in to follow this  
Followers 0
AlexandreCruz

HTTP to RTMP

5 posts in this topic

Hi guys!

Im very sorry, but i need help with my script. Im not yet confortable with auto it, but im trying to make a script to convert http links to rtmp links. To simpifly, i want a script that when given, for example, the link "http://www.casadossegredos.tv/tvi" the script will return "rtmp://206.190.130.28/stream/TVI909090909?id=68969"

this is what i've done until now:

#include <Array.au3>
#include <file.au3>
#include <IE.au3>

Local $file = FileOpen("db.txt", 1)

If $file = -1 Then
    MsgBox(0, "Error", "Unable to open file.")
    Exit
EndIf

$oIE = _IECreate("http://www.casadossegredos.tv/tvi", 0, 0)

Local $link = _IEGetObjByName($oIE, "rtmp://(.*?)_definst_")
if $link == 0 then
   msgbox(0,"ERROR", "Null")
Else
   msgbox(0,"SUCCESS", $link.innertext)
EndIf
_IEQuit($oIE)

FileWriteLine($file, "Line1")
FileClose($file)

Share this post


Link to post
Share on other sites



No one?!

Share this post


Link to post
Share on other sites

How is that link you posted supposed to return the rtmp link?

Also, this is not a 24/7 support forum, it's support provided by other users and sometimes you have to wait for an answer, if you get one at all. Not everyone knows what you're attempting to do, and the person that might know might not log in for days.

Besides, your post is extremely vague as to what it is you're attempting to do, and your code is lacking any hints to it either.


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites

Very well! I'm terribly sorry, didn't mean to be arrogant or offensive, once again, terribly sorry.

Concerning the script, what im trying to do is somewhat what coojah6(or wireshark, ect) does, wich finds the videos playing with RTMProtocol and retrieve the request header. I don't want to capture the video it's just the link RTMP.

I've used Coojah6 to extract the rtmp link... i've tried to automate coojah but without any result. I looked into winpcap too, but without success as well.

If someone could help me, or guide to the correct path, i would appreciate.

Once more sorry, and thanks in advance.

Share this post


Link to post
Share on other sites

Very well! I'm terribly sorry, didn't mean to be arrogant or offensive, once again, terribly sorry.

Concerning the script, what im trying to do is somewhat what coojah6(or wireshark, ect) does, wich finds the videos playing with RTMProtocol and retrieve the request header. I don't want to capture the video it's just the link RTMP.

I've used Coojah6 to extract the rtmp link... i've tried to automate coojah but without any result. I looked into winpcap too, but without success as well.

If someone could help me, or guide to the correct path, i would appreciate.

Once more sorry, and thanks in advance.

Try URLHelper that will help you on most cases.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0