[MPlayer-users] Apple trailers and dumpstream
Dominik 'Rathann' Mierzejewski
dominik at rangers.eu.org
Fri Nov 24 11:43:42 CET 2006
On Friday, 24 November 2006 at 11:01, Heine Laursen wrote:
> 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
use awk '/Filename/ '{print $6}' instead of grep | awk. One process
call less. ;)
Regards,
R.
--
MPlayer developer and RPMs maintainer: http://rpm.greysector.net/mplayer/
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
-- from "Collected Sayings of Muad'Dib" by the Princess Irulan
More information about the MPlayer-users
mailing list