From: Cecil Watson <cwatson@xxxxxxxxxxxx>
Reply-To: "MPlayer user's list." <mplayer-users@xxxxxxxxxxxx>
To: "MPlayer user's list." <mplayer-users@xxxxxxxxxxxx>
Subject: Re: [MPlayer-users] Launch
Date: Mon, 28 Jul 2003 13:22:06 -0700
[Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
Tomas Groth wrote:
[Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
Has anyone been about to play music videos from launch.yahoo.com? I have
MPlayer installed with "Live" support, I also have the mplayerplugin.
Anyone know how I can accomplish this, MIME type, etc.?
I haven't found a way to play it in a browser on linux, but I have a small
script which can make it play.
You just add the video ID number (usually the 7 digit number in the link)
at the command line. It probably could be made smarter, but if it ain't
broken don't fix it ;-)
/Tomas
The script:
#!/bin/bash
videoid=$1
if [ -x $videoid ]; then
echo "No videoid entered!"
exit 0
fi
# 56 or 128 or 300
bandwidth=56
file1=$(wget
"http://launchtoday.launch.yahoo.com/player/medialog.asp?vid=$videoid&cid=1&pid=4&csid=396500550&p1=&p2=&p3=2&bw=$bandwidth&mf=1&origin=35&pguid=AA388C059C7849D99CCFBC72B6F51E37&uid=42&sk=bad551cd352143eb2da02&z=ms.asx"
-O -)
file2=$(wget "$file1" -O -)
mplayer -cache 150 -vo xv -ao alsa9 $file2
:) They is more than one way to skin a cat! The only problem is this cat
doesn't scream when being skinned.