问题
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:
- Main Video URL: http://ijf10.ilcannocchiale.tv/video/2263
- Link Only To Video: http://ijf10.ilcannocchiale.tv/js/mediaplayer.swf?...
- XML File: http://ijf10.ilcannocchiale.tv/xml/video/2263
- Actual File Name:
20100425_mother.flv
回答1:
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:
- (root)
iptables -t nat -A OUTPUT -p tcp --dport 1935 -m owner \! --uid-owner root -j REDIRECT
- (root)
rtmpsuck
- browser, go to relevant page, play video
- in the root terminal you should get the needed options for
rtmpdump
- (root)
iptables -t nat -D OUTPUT -p tcp --dport 1935 -m owner \! --uid-owner root -j REDIRECT
- run
rtmpdump
with the relevant options
Note that if it's a live stream you might need to give the --live
option to rtmpdump
.
回答2:
try using this firefox extension: https://addons.mozilla.org/en-US/firefox/addon/3006?src=api it lets you save most flv, or other video files on the net.
回答3:
If you can find the url, and the m3u8 playlist, then you can use VLC to save the stream.
- Media -> Convert/Save
- Network [tab]
- Past url "http://example.com/video_6.mp4/playlist.m3u8
- Click "Convert/Save" button at bottom.
- Browse for local save target path. Include extension, .mp4
- In Settings/Profile section on same tab,
- Create new
- Name it "Original MP4 Content"
- Encapsulation: Select "MP4/MOV"
- Video Codec: Select Video. Select Keep original...
- Codec: H-264
- bitrate, framerate, scale, width, height = 0.
- Audio Codec: Select Audio. Select Keep original...
- Codec: MPEG Audio
- Bitrate: 128kbps
- Channels: 2
- Sample Rate: 44100
- Click the Save button.
- Select "Original MP4 Content" that you just created.
- Click the Start button at the bottom of the form.
... wait. It will download the video and assemble it. ...enjoy.
回答4:
RTMPdump works perfectly.
http://www.nirsoft.net/utils/rtmp_dump_helper.html allows you to easily use RTMPdump with Windows.
回答5:
This file is actually being streamed over RTMP, so there isn't any FLV to download per-se.
Unfortunately, unless you use some sketchy tools like RTMPdump, there's no way to download it.
来源:https://stackoverflow.com/questions/2792862/how-to-extract-flv-stream-from-jw-player-5-1