Livestreams often use Adobe’s Flash format and Shockwave Flash-Players to supply live content to their users. To play them on a machine that hasn’t flash installed, many pipe rtmpdump’s output to their favourite media player, making integration into home cinema systems complicated. If the URL of the stream you watch regularly does not change (e.g. a TV station’s official livefeed), you can easily play this in XBMC.
If you are watching a Flash stream (not youtube) then it is possible to save it to a FLV file.
At first you have to buffer the full stream that is the gray bar.
When it is full loaded, execute at first this to locate the flash buffer:
lsof | grep Flash