How To Extract .flv Stream from JW Player 5.1?

Catfish picture Catfish · May 8, 2010 · Viewed 80k times · Source

The problem is I've a slow internet connection, and the video doesn't buffer like in YouTube. Therefore I was wondering weather I can extract the url of the .flv file which is being streamed in JW Player and directly download it. Doing some preliminary research, I've found the following info:

Answer

ariddell picture ariddell · Mar 16, 2012

rtmpdump and rtmpsuck worked well for me. The trick is finding the relevant options for rtmpdump

Detailed instructions can be found here: http://pclosmag.com/html/issues/201104/page19.html

It comes down to this:

  1. (root) iptables -t nat -A OUTPUT -p tcp --dport 1935 -m owner \! --uid-owner root -j REDIRECT
  2. (root) rtmpsuck
  3. browser, go to relevant page, play video
  4. in the root terminal you should get the needed options for rtmpdump
  5. (root) iptables -t nat -D OUTPUT -p tcp --dport 1935 -m owner \! --uid-owner root -j REDIRECT
  6. run rtmpdump with the relevant options

Note that if it's a live stream you might need to give the --live option to rtmpdump.