[MPlayer-users] Apple trailers and dumpstream

Heine Laursen zannvip at gmail.com
Fri Nov 24 11:01:57 CET 2006


2006/11/24, Royke <roykeak at yahoo.com>:
> my 2cent contribution for the skrip :
>
> #!/bin/sh
> echo $1 > temp
> dump=`awk -F'/' '{ print $NF }' temp`
> URL=`mplayer -v -frames 0 $@ |grep Filename|awk '{print
> $6}'|tail -n 1`
> mplayer -dumpstream $URL -dumpfile $dump
>
> so the name of the movie is "the_name_of_the_movie.mov"
> extracted from the URL. There should be more smarter way to
> do this.... :-)

#!/bin/sh

URL=`mplayer -v -frames 0 $@ 2>/dev/null |grep Filename| awk '{print
$6}'|tail -n 1`
wget -nc -nd $URL



More information about the MPlayer-users mailing list