how to download a video?

Asked by Pavel

Dear Ubuntu friends,
I would like to download this small video to a local file.
I can only play the video opening the following file in Firefox:

<param name="movie" value="http://g.idnes.cz/swf/flv/player.swf"></param>
</param>
<param name="allowfullscreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://g.idnes.cz/swf/flv/player.swf"
flashvars="configURL=http://servis.idnes.cz/stream/flv/data.asp?idvideo=V091118_145504_tv-filmy_sha"
type="application/x-shockwave-flash"
allowscriptaccess="always"
allowfullscreen="true"
>
</embed>
</object>

Can you, please, tell me how to use mplayer or youtube-dl or wget to store the video to a local file?
Thanks for any help
Pavel

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu yelp Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ryan Dwyer (ryandwyer) said :
#1

My method involves install the Live HTTP Headers extension for Firefox, then capturing the headers as you load the page. Then find the .flv file in the headers and copy and paste the URL.

Revision history for this message
Pavel (pavel-pokorny) said :
#2

Dear Ryan,
thank you for the answer. I have installed Live HTTP Headers extension
and I have captured the headers. But I cannot find any .flv file there.
The string "flv" appears in these two lines only:

http://servis.idnes.cz/stream/flv/data.asp?idvideo=V091118_145504_tv-filmy_sha&rnd=111
GET /stream/flv/data.asp?idvideo=V091118_145504_tv-filmy_sha&rnd=111 HTTP/1.1

Now I do not know how to find the video file.

I can do
wget 'http://servis.idnes.cz/stream/flv/data.asp?idvideo=V091118_145504_tv-filmy_sha&rnd=111'
and I get a 6kB text file, but I cannot see any .flv file there.

It looks like the player
  http://g.idnes.cz/swf/flv/player.swf
is downloaded first, that then plays the video.
Can I make the player to store the video in a local file
instead of playing it?

Thanks for any help
Pavel

Revision history for this message
Ryan Dwyer (ryandwyer) said :
#3

In the Live HTTP Headers output, look for Content-Type: application/x-shockwave-flash or Content-Type: application/octet-stream. A search for the word application should find it.

Make sure you're capturing the headers before the video starts loading. If you start capturing even a second after the video has started loading you'll miss it.

Can you help with this problem?

Provide an answer of your own, or ask Pavel for more information if necessary.

To post a message you must log in.