Antonius Misfit
Certifiable Linux Addict
Join date: 13 Jun 2006
Posts: 97
|
10-21-2006 18:19
Hi all! Since it may be awhile until we get video support for the Linux client, I'd like to share how I was able to get movies from SL externally. 1. Start SL from the Terminal. 2. Make sure in Preferences you have the streaming video checkbox marked. 3. Go someplace where a movie is playing. 4. Once you press the play button in the movie control box, look at the messages in the Terminal for something like this(the web address is fake and just an example, but it shows what to look for: 2006-10-22T00:57:49Z INFO: MEDIA> unable to load http://helloworld.com/hello.mov5. Fire up your favorite movie player(Xine, MPlayer, Totem, etc.) and pass the address into the "Open Location" or "Open URL" dialog box. 6. Enjoy your movie! P.S. - Since this is "poor man's" method of getting movies via SL, I'd like to know if there's any other solutions that are way more elegant, like the streaming music server script posted in this forum before Tofu came along and became our favorite Linden 
|
Leena Khan
Lasting Impressionist
Join date: 21 Apr 2004
Posts: 200
|
10-21-2006 18:34
Well, there is SL Stream, but I have not seen an updated version in a while.. It played movies, streaming music and opened a web browser when needed.
_____________________
SL was down, and all I got was this stupid signature...
|
Antonius Misfit
Certifiable Linux Addict
Join date: 13 Jun 2006
Posts: 97
|
I have SLstream, but...
10-21-2006 19:38
From: Leena Khan Well, there is SL Stream, but I have not seen an updated version in a while.. It played movies, streaming music and opened a web browser when needed. it was for music, not movies I believe. i suppose it could be adapted for video. Anyways, here's the script for convenience: From: someone #!/usr/bin/python import pcapy import os import re
#edit to add your username and mediaplayer: user='username' musicplayer='xmms' #
def recv_pkts(hdr, data): b=data.find('http') while b>-1: len=ord(data[b-1]) tag=ord(data[b-2]) d=data[b:b+len-1] if tag==1: print "launching ",d cmd='su '+user+' -c "'+musicplayer+' '+d+'&"' os.system(cmd) b=-1 else: b=data.find('http', b+1) dev='any' p = pcapy.open_live(dev, 1500, 0, 100) p.setfilter('udp') p.loop(-1, recv_pkts)
Note: I know there's no proper indentation in the posted script, just chalk it up to a lack of showing leading space in lines. 
|
Leena Khan
Lasting Impressionist
Join date: 21 Apr 2004
Posts: 200
|
10-22-2006 09:00
That is an ooold version.. the latest is 0.10, found here: http://stux.wikiinfo.org/ToolsI used to use it, and it did play movies. Unfortunately, the code for load_url handling stopped working a few months ago.
_____________________
SL was down, and all I got was this stupid signature...
|
Antonius Misfit
Certifiable Linux Addict
Join date: 13 Jun 2006
Posts: 97
|
Thanks Leena!
10-22-2006 12:08
I just downloaded and compiled it, but you shouldn't worry about the web page code, since Tofu put a URL loading script in the beta grid client.
|