[MPlayer-users] Apple trailers and dumpstream
Royke
roykeak at yahoo.com
Fri Nov 24 09:48:14 CET 2006
--- Heine Laursen <zannvip at gmail.com> wrote:
> 2006/11/23, Jeremy Hansen <jebrhansen at gmail.com>:
> > I don't know about a shortcut but it would be easy to
> create a script...
> >
> > mplayer -v http://some_trailer.mov
> > grep filename
> > mplayer -dumpstream `awk '{print $2}'`
>
> Thank you for your suggestion. I didn't think about
> scripting.
> I came up with the following which works for me.
>
> #!/bin/sh
>
> URL=`mplayer -v -frames 0 $@ |grep Filename|awk '{print
> $6}'|tail -n 1`
> mplayer -dumpstream $URL
> _______________________________________________
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.... :-)
regards
Send instant messages to your online friends http://uk.messenger.yahoo.com
More information about the MPlayer-users
mailing list