How to find the stream behind a Flash player

349,498

Solution 1

Download and decompile the flash file. The source of the stream should be pretty easy to find.

It's possible that the player is generic, and the file/stream it is playing is being passed in as a param. Grep the webpage source code for "embed"/"swf" or text that's near the flash object on the page. Then look at the contents of "param name"/"param value"

Solution 2

Firebug for Firefox, and the Google Chrome Developer Tools (built-in to Chrome) can show every HTTP request performed by the browser. They sometimes reveal URLs such as these.

In Firefox, install Firebug (no restart), start the addon by clicking the bug icon (use customize to make it visible - but it should be by default), start the stream, and in the Firebug window click Net tab and then All, maybe refresh the video page. The url should appear when putting the mouse over the line that says something like "GET video", right click on the URL and Copy location.

enter image description here

In Chrome, open the Developer tools, check the Network tab and start playing the file.

Solution 3

Fiddler2 is a great tool for this. Think of it like Wireshark but for HTTP specifically. It will reveal exactly what your browser is doing. It works by setting itself up as a local HTTP proxy. Point your browser to it and it will reveal all of the connections that are made and what data is transmitted.

Solution 4

As seen from the many answers there must be many ways to do this, but maybe one of the easiest way to go is to take advantage of a Firefox addon like DownloadHelper addon, which has also the advantage of being available on all OSes.

  • Install the Firefox addon DownloadHelper,
  • run the flash stream in Firefox, the DownloadHelper button should start rolling,

(There are different ways to access this feature, but I will mention one that is clearly accessible no matter the configuration, as the addon has settings to hide or show buttons and options)

  • Go to Tools > Video Download Helper (or find is otherwise) > All Actions > [Name of video] > Copy URL.

enter image description here


Some troubleshooting.

Testing such links with VLC I notice that in some cases the player cannot play them or even crashes. But this can be fixed as follows:

The last part of such URLs is something like /video.flv?start=0. Changing that to /video.flv? might make it work.

I discovered this when using the other solution, presented below, Internet Download Manager, in order to capture a such video stream: it displays the link but when trying to select it by clicking on it, IDM selects the URL without the last part start=0 (as seen in the image below). But many URLs can be opened in VLC with that last part too.


In Windows, Internet Download Manager is able to sniff such streams and capture them. Again, I find it easier to use in combination with a Firefox addon, FlashGot, but IDM can also be used alone with any browser. When ready to get the video, IDM displays the URL:

enter image description here


Considering the edit:

"Edit: The player is streaming an RTMP stream, not an FLV video file."

RTMP (Real Time Messaging Protocol) uses either FLV or MP4 as video format.


Solution 5

I would recommend this extension for Chrome, Grab Any Media.

It's translated into English, Italian, French, German, Portuguese (click the language flags on the right).

Share:
349,498

Related videos on Youtube

Svish
Author by

Svish

Software Developer, Geek, HSP, SDA, ..., open, honest, careful, perfectionist, ... Currently into indoor rowing and rock climbing, just to mention something non-computer-related... Not the best at bragging about myself... so... not sure what more to write... 🤔

Updated on September 17, 2022

Comments

  • Svish
    Svish over 1 year

    I am watching a Flash stream. I can watch the same stream in two different players (set up by someone else), but I don't like any of them.

    Is there a way I can find/get/extract the direct link to the flash stream that those two players are playing? So that I can watch it using a different player?

    Edit: The player is streaming an RTMP stream, not an FLV video file.

    • Fake Name
      Fake Name about 14 years
      You should be able to packetsniff it with wireshark(wireshark.org/download.html), but I'm sure there must be an easier way. On the other hand, wireshark is a great tool to have installed anyways.
    • Svish
      Svish about 14 years
      Yeah, I have the feeling it is too, I just haven't been able to figure out how to use it.
    • Arjan
      Arjan about 14 years
      See "Download flv file from any video site?" at superuser.com/questions/41394/…
    • Svish
      Svish about 14 years
      @Arjan: That works when there is an FLV file that is played. Not when it is an RTMP stream (as far as I know anyways).
    • Admin
      Admin over 9 years
      I am confused that you have selected as definitive answer one that says to download the file. If that is done, it can be played with many players (what the question asks), and that offline, without the need for the URL! I am sure that all the interest and up-voting of the question comes from the how to find the real URL part, which makes sense only if the download part is left aside, although, as in my answer below, the easy way to see the URL is with a tool which is aimed at downloading.
    • Svish
      Svish over 9 years
      @cipricus: You wouldn't downloadthe actual video, but the SWF to then decompile and get the stream URL. Regarding your confusion, I recommend that you start looking at timestamps if you find accepted answers that look a bit weird. In this case the answer I accepted was the one that gave me what I wanted shortly after I asked the question. Most alternatives were posted long after, and in your case over 4 years after. I'm leaving it as it is since it'll probably still be correct and the answer most "raw". If I did it now, I'd probably use the Firebug version.
    • Admin
      Admin over 9 years
      Maybe useful: I noticed that the author of the answer on Firebug had used the word 'sometimes' not without reason: I found streams that neither Chrome nor Firebug were displaying the URL thereof, at least not where the answer points to look --, but that DownloadHelper was able to... etc
    • A__
      A__ about 6 years
      i don't have enough rep to answer this question but if you're looking at a .swf hosted on a specific livestreaming platform (say douyu.com), you can use the streamlink command line tool. provide the channel url and use the json output (-j) option to get the available urls for the .swf object on that page. ex: streamlink https://www.douyu.com/AMYL -j. this way you can easily automate the url capture process.
  • Svish
    Svish about 14 years
    Well, in this case it is a stream and I don't think there is a file behind it. It is real-time streaming. And I need to watch it in real-time too.
  • Simon Sheehan
    Simon Sheehan over 12 years
    What is it? What does it do? None of the page appears to be in English
  • slhck
    slhck over 12 years
    @Simon There are some flags which toggle a crappy automatic translation.
  • Dan D.
    Dan D. about 12 years
    I would recommend showmycode.com which is online swf decompiler as it is safer than installing any of the programs from the previous comment's search: "decompile swf".
  • dvb
    dvb over 11 years
    The Network tab in google chrome developer tools doesn't support non-http protocols (at least not rtmp)
  • Brad
    Brad almost 11 years
    Decompiling the SWF is probably the hardest way to do this. Simply opening up Wireshark reveals everything.
  • Rat-a-tat-a-tat Ratatouille
    Rat-a-tat-a-tat Ratatouille about 10 years
    @dvb thats true, i also faced the same
  • Admin
    Admin over 9 years
    @Svish - I guess there is a file behind it. What do you think after all these years? :)
  • Admin
    Admin over 9 years
    @Svish - What I do not understand is that you have selected as definitive answer one that says to download the file. If that is done, it can be played with many players offline without the need for the URL! I am sure that all the interest and up-voting of the question comes from the how to find the real URL part, which makes sense only if the download part is put aside.
  • Admin
    Admin over 9 years
    how to use Firebug to see the URL?
  • Admin
    Admin over 9 years
    got it and added the details with image for Firebug