PSX-SCENE Forum Discussion for Sony PlayStation/PsOne/PS2/PS3/PSP/PS VITA
  • Tutorial: Get RTMP links for TV Streams and others (Showtime)

    Hi, in this tutorial we will see how we can easily get a RTMP link from a simple page and then you may use it stream live TV channels. I alert that I'll not give examples of pages in this tutorial, if you understand this tutorial, you will be able to reproduce the steps correctly in any link that you may have in hands. This is not easy and should only be attempted by experienced people.


    *Please refer the original thread for more details and for help HERE*


    Very well, you'll need the following:
    - rtmpdump (it should include rtmpsuck)
    - A page with a flash based object with the stream that you want to get the rtmp link

    But before we start, do you know what is rtmp?
    Real Time Messaging Protocol (RTMP) was initially a proprietary protocol developed by Macromedia for streaming audio, video and data over the Internet, between a Flash player and a server.
    Have you read where it says "between a Flash player and a server" that it what you're thinking, it will only work with flash based objects, Media Player are not supported, by the way I can tell you already that there is a field of the rtmp link that is specifically for the SWF player.

    Getting a rtmp link is fairly easy but you should be alerted that some times you may face some erros while trying to play a rtmp link, it generally means or your rtmp link is incomplete or wrong or then it is offline at the moment of test.

    Let's start then our hunt for rtmp links, I'll use a Ubuntu 11.04 machine to do it, but it was confirmed to be working in Fedora 15.

    1. Open the console of your distribution and type the following command as root:
    Code:
    On Ubuntu:
    sudo iptables -t nat -A OUTPUT -p tcp --dport 1935 -m owner \! --uid-owner root -j REDIRECT
    Code:
    On Fedora (if you're not a sudoer):
    su -c 'iptables -t nat -A OUTPUT -p tcp --dport 1935 -m owner \! --uid-owner root -j REDIRECT'
    This command is used to redirect RTMP traffic to a proxy server (since RTMP links use the port 1935) so we can use rtmpsuck next to get the links
    2. Now that we are able to use rtmpsuck, let's use it, simply type the following command:
    Code:
    rtmpsuck
    Once you enter this command, if it is working properly it will show the following output:
    Code:
    RTMP proxy server 
    
    Streaming on rtmp://0.0.0.0:1935
    You'll notice that it will not allow you do run any command when rtmpsuck is running, that's normal, it means while it is running you're able to get the links. If for any case, you need to interrupt rtmpsuck to run other command, you may type on the same console CTRL+C and it will interupt the operation.

    3. Now it is time to visit a page with a stream using Flash (confirm rtmpsuck is running), once you are there wait a little to the video start reproduce, once it starts, go back to the console, you'll now have some new lines, the last ones will be talking about the audio and video, go up a little so you can read the lines (<something> means what is written in your console, these fields change according to the streams):
    Code:
    app: <something>
    flashVer: <something>
    swfUrl: <something>
    tcUrl: <something>
    pageUrl: <something>
    Playpath: <something>
    Sometimes between this lines it may appear lines starting with "ERROR:", if it appears to you it means that the stream you chose is not the best, but if you can watch the stream on the page normally, then you should not have problems with it.

    Let's explain briefly what is each field of the above (there other fields that may show you talking about the video and audio, but we don't need them for this):
    app: This is the name of the application to connecto in order to run the RTMP, it is needed sometimes since sometimes the RTMP URL link parser can not find it by itself;
    flashVer: This is the field that identifies the version of the Flash Player to run the RTMP - Probably you will not need to use it, since a default one is used - "LNX 10,0,32,18";
    swfUrl: This specifies the link where the Flash Player used to stream the RTMP link is hosted - Needed everytime;
    tcUrl: This specifies the link for the RTMP stream itself - Needed everytime;
    pageUrl: This specifies the link for the page where the stream can be watched (it should be a .htm or something like that page) - Sometimes needed;
    Playpath: This specifies the name of the file of the stream that is located in the tcUrl link (sometimes you will face this field as a complex name without a file format, that's normal) - Needed everytime;
    4. Break down the operation now with Ctrl+C

    5. Now we will write the final RTMP link that you need to stream it using Showtime, let's use the following form (it is the form that I used for me), the fields that are between < > is one of the above fiels value:
    Code:
    <tcUrl>/<Playpath> swfUrl=<swfUrl> pageUrl=<pageUrl> swfVfy=true live=true tcUrl=<tcUrl>
    Let's see a fictional example of it, imagine that with rtmpsuck we got the following values:
    Code:
    app: live
    flashVer: LNX 10,0,32,18
    swfUrl: http://example.com/player/player.swf
    tcUrl: rtmp://example.com/live
    pageUrl: http://otherexample.com/index.htm
    Playpath: file.flv
    With these values, our RTMP link would be:
    Code:
    rtmp://example.com/live/file.flv swfUrl=http://example.com/player/player.swf pageUrl=http://otherexample.com/index.htm
     swfVfy=true live=true tcUrl=rtmp://example.com/live
    When writing the RTMP link like this write it followed don't change lines

    Now we have the RTMP link! You may use it directly in a plugin of Showtime using it as a url for a video or put it in a remote xml file and inside a plugin of Showtime get access to that file and read the url and do the same thing as the statement before.

    I hope you enjoyed my tutorial, it will be updated when problems or new solutions are found. Thanks for reading this. Now that you know how to get the RTMP links, you have the power to stream TV channels, use it in your responsability, the author of the tutorial does not take any responsability for the use that the user may give to it.
    tthousand and damanptyltd like this.
    This article was originally published in forum thread: Tutorial: Get RTMP links for TV Streams and others started by facanferff View original post
    Comments 14 Comments
    1. tthousand's Avatar
      tthousand -
      Looks great! I want to try it out
    1. headsh0t95's Avatar
      headsh0t95 -
      Quote Originally Posted by tthousand View Post
      Looks great! I want to try it out
      Does this allow me to watch live tv on my ps3 slim ofw 3.66?
    1. damanptyltd's Avatar
      damanptyltd -
      Provided you know how to javascript showtime plugins, yes.
    1. dagrimmreepa's Avatar
      dagrimmreepa -
      Quote Originally Posted by damanptyltd View Post
      Provided you know how to javascript showtime plugins, yes.
      But you need Showtime for that... can you even install it on OFW?
    1. damanptyltd's Avatar
      damanptyltd -
      Sorry, misread his question. Yes you need CFW for this, not compatible with ANY OFW.

      Cheers for the correction
    1. Srachi's Avatar
      Srachi -
      Pity that you canceled the showtime live tv stream project. Its hard for us who dont know to embed this in showtime to make it work, you had a nice list of allready working live tv channels on the plugin and waited eagerly for that plugin.
    1. brittain72's Avatar
      brittain72 -
      Quote Originally Posted by Srachi View Post
      Pity that you canceled the showtime live tv stream project. Its hard for us who dont know to embed this in showtime to make it work, you had a nice list of allready working live tv channels on the plugin and waited eagerly for that plugin.
      Have it from a very reliable source they'll be more good news on this later today.
    1. phlak's Avatar
      phlak -
      Quote Originally Posted by brittain72 View Post
      Have it from a very reliable source they'll be more good news on this later today.
      Thats good to hear! PM me the plugin if it never goes public please, I would appreciate it greatly!
    1. facanferff's Avatar
      facanferff -
      Quote Originally Posted by phlak View Post
      Thats good to hear! PM me the plugin if it never goes public please, I would appreciate it greatly!
      The plugin is released here: http://psx-scene.com/forums/f254/sho...eleased-94875/ (Showtime TV: WatchTV and GameTrailers released)
    1. itzViolence's Avatar
      itzViolence -
      i still prefer url snooper/streamtransport..
      much faster and easier
    1. FreakAlchemist's Avatar
      FreakAlchemist -
      rtmplore worked really well for me all the others were impossible deal with.
    1. mculver's Avatar
      mculver -
      i have tv links but dont know how to put them into xml can someone help plz
    1. themuse's Avatar
      themuse -
      i know nothing about tv streaming, so what is this snooper thing? can you use it to get other peoples slingbox streams? are there still lists online of streaming tv stations? ,like from peple who share there slingbox streams? or people who have sites for tv streams that charge for advertising? or have they all got shut down?i know there was a crackdown here in the U.S. on that stuff im sure it still exists some place ,but is harder to find now, hopefull there are still some good U.S. based tv streams and sites with links to them, not that watching some forign tv wouldnt be cool too
    1. jeffrey92's Avatar
      jeffrey92 -
      Quote Originally Posted by mculver View Post
      i have tv links but dont know how to put them into xml can someone help plz
      pm me the links and i'll put them up on mine and give you the link. only if theyre good usa links
  • Daily Digest


    Want to receive the latest PSX info in your email?

    Sign up for our Daily Digest!



    Want to learn more about the team keeping you up to date with the latest scene news?

    Read about them now!

    Check out our Developer bios, too!

  • Recent Threads

    nokiajavi

    USBUtil 2.1 Ultimate.REV.1.2[UPDATE]

    Thread Starter: nokiajavi

    USBUtil 2.1 (rev 1.2) May 2010

    Due to bugs reported these last weeks, USBUtil has been revised.



    Quote ISEKO

    Last Post By: nokiajavi Today, 07:20 PM Go to last post
    Dante69

    THE DUPLEX VER OF Pixars UP Game is in French...Anyone know how to install in ENGLISH?

    Thread Starter: Dante69

    THE DUPLEX VER OF Pixars UP Game is in French...Anyone know how to install in ENGLISH?

    I installed this game called "Up (2009) "

    Last Post By: Dante69 Today, 07:07 PM Go to last post
    ncc2906

    error 80010017

    Thread Starter: ncc2906

    Hi,
    what does it means erro 80010017 ?
    This error occur only when I launch Sonic The Hedgehog (BLES00028).
    I have Regub 4.41.2 lite.

    Last Post By: ncc2906 Today, 06:06 PM Go to last post
    Tsukino Kaji

    I Just Want to Hack Games.

    Thread Starter: Tsukino Kaji

    I'm not big on online console gaming, that's what PCs were made for. lol
    I mostly just use my PS3 for RPGs and what not, the most online content

    Last Post By: nova89 Today, 07:50 PM Go to last post
    man1919

    how i can hear internet radio on ps2 linux?

    Thread Starter: man1919

    hi , i'm using the latest ps2 linux (ps2linux_live_v3_pal_large_no_modchip) on ps2 slim SCPH-77004.
    and i'm triyng to hear live stream internet

    Last Post By: man1919 Today, 04:47 PM Go to last post
    psxpetey

    content not available before start date ps2 on ps3

    Thread Starter: psxpetey

    downloaded aldstools and installed on rebug 3.55.4 converted tomb raider angel of death and it gives me the message in the title once I install it as

    Last Post By: psxpetey Today, 04:36 PM Go to last post
  • Recent Comments

    FrogDR

    3K3Y -- PS3 Blu Ray ODD Emulator

    there is one point. Nobody reporting BANING using 3k3y.... So we can assume that this is a safe way... Go to last post

    FrogDR Today 07:15 PM
    Gradius

    PS4 E3 Promo Video: June 10th be the first to see

    I don't care about ps4 at all. It never will be (read it as over 20 years at best) crackeable. Go to last post

    Gradius Today 07:13 PM
    diegsmoran

    PSIO Team Update To Project PlayStation Input Output - A PS1 SD Card Hack

    Yeah it would definatly be nice for not too expensive and also if the compatibility works good. As... Go to last post

    diegsmoran Today 05:27 PM
    Dante69

    UMSBuilder 1.5 -- Build the latest Revision of UMS

    Really Mac US CFW/Mac Users Get Minimum support. I know that we could use linux terminal byt not... Go to last post

    Dante69 Today 04:02 PM
    worrorfight

    New Multiman Themes by hcode123

    Beautiful themes hcode123 :) Go to last post

    worrorfight Today 03:40 PM
    seatle_94

    English Patch version for Dynasty Warriors Strikeforce 2 PSP.

    Thanks man!
    The Brazilian community is also grateful! Go to last post

    seatle_94 Today 03:37 PM
    NeverGoingBack

    PSIO Team Update To Project PlayStation Input Output - A PS1 SD Card Hack

    If this provides 90%+ compatibility, I would see it as being the easiest and most authentic way to... Go to last post

    NeverGoingBack Today 01:44 PM
    Tranced

    Simple PS3Updates v1.6 Build 2 Final

    Quakes69 has contributed well over here. I for one like his different GUI's. Although some are in... Go to last post

    Tranced Today 12:49 PM
    SwordOfWar

    Sony's Testing a Better, Faster Video Streaming Technology.

    stop crying. You got discounted movies. you're not going to buy a movie just to test it. you're... Go to last post

    SwordOfWar Today 12:42 PM
    xboxmods2977

    PSIO Team Update To Project PlayStation Input Output - A PS1 SD Card Hack

    Exactly what I was thinking. Sounds Expensive. I have an older model Playstation in my closet (one... Go to last post

    xboxmods2977 Today 12:16 PM