help please

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
redqc
Blank Cone
Blank Cone
Posts: 17
Joined: 06 Dec 2007 07:26

help please

Postby redqc » 23 Dec 2007 18:28

im really in need of help. im trying to stream video from upload.redswoosh.net through vlc, it buffers for few seconds then stops. can someone please help me find out whats wrong. i have no problem streamming video from megaupload and other hosting websites.

please someone tell me which version is able to stream from a p2p file hosting network such as redswoosh.



can someone point me which version vlc is able to stream from redswoosh network ?

VLC Player 0.9.0 ? - tested it but same problem buffer starts then ends :cry:
VLC Player 0.8.6d (9 MB)> tested it but same problem buffer starts then ends :cry:
VLC Player 0.8.6c (9 MB)> tested it but same problem buffer starts then ends :cry:
VLC Player 0.8.6b (9 MB) > tested it but same problem buffer starts then ends :cry:
VLC Player 0.8.6a (9 MB)
VLC Player 0.8.6 (9 MB)
VLC Player 0.8.5 (8 MB)
VLC Player 0.8.4a (9 MB)
VLC Player 0.8.4 (9 MB)
VLC Player 0.8.2 (8 MB)
VLC Player 0.8.1 (7 MB)
VLC Player 0.8.0 (7 MB)
VLC Player 0.7.2 (8 MB)
VLC Player 0.7.1 (6 MB)
VLC Player 0.7.0 (5 MB)
VLC Player 0.6.2 (4 MB)
VLC Player 0.6.1 (5 MB)
VLC Player 0.6.0 (4 MB)
VLC Player 0.5.3 (3 MB)
VLC Player 0.5.2 (3 MB)
VLC Player 0.5.1 (5 MB)
VLC Player 0.5.0 (5 MB)
VLC Player 0.4.6 (1 MB)
VLC Player 0.4.5 (1 MB)
VLC Player 0.4.4 (1 MB)
VLC Player 0.4.2 (1016 KB)
VLC Player 0.4.1 (1 MB)
VLC Player 0.4.0 (973 KB)
VLC Player 0.3.1 (708 KB)
VLC Player 0.3.0 (717 KB)
VLC Player 0.2.92 (2 MB)
VLC Player 0.2.91 (2 MB)
VLC Player 0.2.83 (2 MB)
VLC Player 0.2.82 (2 MB)

just-do-it
Cone that earned his stripes
Cone that earned his stripes
Posts: 152
Joined: 08 Aug 2006 00:51
Operating System: 'does/Linux
Location: uk
Contact:

Re: help please

Postby just-do-it » 23 Dec 2007 19:35

When I tried to open upload.redswoosh.net i got these messages
main debug: adding playlist item `http://upload.redswoosh.net' ( http://upload.redswoosh.net )
main debug: creating new input thread
main debug: waiting for thread completion
main debug: thread 4092 (input) created at priority 1 (input/input.c:265)
main debug: `http://upload.redswoosh.net' gives access `http' demux `' path `upload.redswoosh.net'
main debug: creating demux: access='http' demux='' path='upload.redswoosh.net'
main debug: looking for access_demux module: 0 candidates
main warning: no access_demux module matched "http"
main debug: creating access 'http' path='upload.redswoosh.net'
main debug: looking for access2 module: 7 candidates
access_http debug: http: server='upload.redswoosh.net' port=80 file='(null)
main debug: net: connecting to upload.redswoosh.net port 80
main debug: connection in progress
access_http debug: protocol 'HTTP' answer code 206
access_http debug: Server: Apache/2.0.52 (CentOS)
access_http debug: stream size=5011
access_http debug: Content-Type: text/html; charset=UTF-8
main debug: using access2 module "access_http"
main debug: pre-buffering...
main debug: received first data for our buffer
main debug: pre-buffering done 4139 bytes in 0s - 28 kbytes/s
main debug: creating demux: access='http' demux='' path='upload.redswoosh.net'
main debug: looking for demux2 module: 45 candidates
m3u debug: playlist type: 3 - 3
main debug: using demux2 module "m3u"
main debug: looking for a subtitle file in C:\Program Files\VideoLAN\VLC\
main debug: `http://upload.redswoosh.net' successfully opened
m3u debug: starting playlist playback
main debug: EOF reached
main debug: closing input
main debug: removing module "m3u"
main debug: removing module "access_http"
main debug: thread times: real 0m0.687504s, kernel 0m0.015625s, user 0m0.000000s
main debug: thread 4092 joined (input/input.c:412)
main: playlist is empty
which I take to mean vlc is trying to open a file but there is not one
if anybody has used upload.redswoosh.net then maybe they know how to get a file
I normaly use vlc to grab a particullar file as in
http://just-do-it.no-ip.org/audio/playlist.m3u
from which I can download the items I want from the playlist
Ahh Go on; Go on

redqc
Blank Cone
Blank Cone
Posts: 17
Joined: 06 Dec 2007 07:26

Re: help please

Postby redqc » 25 Jan 2008 02:23

looks very interesting just-do-it, i hope the dev can pick up on this :cry:

just-do-it , you need to install the redswoosh p2p client, to download from their network.

basicly

upload a video clip upload.redswoosh.net

install the p2p client

open vlc, and try to stream that video clip, thats how it suppost work, but vlc isnt reading the stream no idea whats wrong :cry: :?

redqc
Blank Cone
Blank Cone
Posts: 17
Joined: 06 Dec 2007 07:26

Re: help please

Postby redqc » 26 Jan 2008 08:13

text from redswoosh website how it works on windows media player, please somone can help why isnt vlc picking up the local file ? its not reading it

------------------------------------------------------------------------------------------------
How To Embed a Swooshed Media Player
One great thing about swooshed links is they behave just like regular links, and thus can be put anywhere a regular link goes -- such as into an embedded video player. To put an embedded video player on your website (whether or not it's powered by a swooshed link), follow along.


Step 1: Embed the original, unswooshed link
The first thing to do is to embed the video player itself into your page. To get started, just embed the original, unswooshed link (and thus make sure everything is working before bringing Red Swoosh into the equation). Though there are as many ways to do it as browsers in the sky, the best way we could figure out to do it follows:




<OBJECT width="320" height="287" id="MediaPlayer"
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
codebase=
"http://activex.microsoft.com/activex/co ... =6,4,5,715"
standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject">
<PARAM value="http://www.redswoosh.net/media/video/test.wmv" name="FileName"/>
<EMBED width="320" height="287"
src="http://www.redswoosh.net/media/video/test.wmv"
name="MediaPlayer" type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/Downlo ... diaPlayer/"/>
</OBJECT>Step 2: Swoosh the link
Next just take the original link (in this case our trusty, somewhat dusty test video http://www.redswoosh.net/media/video/test.wmv), and stick http://edn.redswoosh.net in front of it. Tah-dah! It's swooshed. The result looks like this:


http://edn.redswoosh.net/http://www.red ... ANinja.wmv

Step 3: Click the swooshed link
Click it. Come on, you know you want to. If you aren't already installed, you'll be prompted to do so now. Otherwise, when you click the link it should behave exactly like when you click on the original, unswooshed link above. Indeed, for a fun test, right-click on the properties of the video as it's playing and verify it's coming from http://127.0.0.1:9421 -- a clear sign that something magic is going on, and that magic is Red Swoosh.




Step 4: Embed the swooshed link
Now, to bring it all together, use the same embedded video code we have above, but replace the link with its swooshed equivalent. As you'll no doubt discover, it continues to work, just like before. But unlike before, the video is downloaded and streamed in realtime from peers -- taking the load of your servers. How's that for a neat trick?


Note: Now there is one picky detail that needs attending to. A normal swooshed link is just http://edn.redswoosh.net stuck in front of another http://whatever/blah.wmv link. But sometimes having two "http://" strings in a single URL freaks some programs out. Unfortunately, Windows Media Player is one of those. But not to worry -- the second "http://" is entirely optional for just this reason. Thus when embedding a swooshed link, be sure to take out the second "http://" and just make the link as follows: http://edn.redswoosh.net/www.redswoosh. ... o/test.wmv




Note: For this example to work, you need to have already installed Red Swoosh. To do this, just click on the swooshed link in step 3 and follow the on-screen instrutions.


<OBJECT width="320" height="287" id="MediaPlayer2"
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
codebase=
"http://activex.microsoft.com/activex/co ... =6,4,5,715"
standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject">
<PARAM value="http://edn.redswoosh.net/www.redswoosh. ... o/test.wmv" name="FileName"/>
<EMBED width="320" height="287"
src="http://edn.redswoosh.net/www.redswoosh. ... o/test.wmv"
name="MediaPlayer2" type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/Downlo ... diaPlayer/"/>
</OBJECT>Step 5: Reading the file straight from disk
But wait, there's more! You might have noticed in step 3 that the content is actually being downloaded from 127.0.0.1 (aka "localhost") rather than from the webserver. The details of why this is the case are so incredibly exciting that I won't bother you with them here. But you should know that because of this, Windows Media Player tends to think the file is coming from over the internet, even when in fact it's already been downloaded to your computer. (Remember how I said "it behaves exactly like a normal link?") What this means to you is that the video can take a moment to start playing, because it's "prebuffering" the file on the assumption that the network might hiccup -- a common occurance on the internet but unlikely when reading straight from disk.

To eliminate this slight delay and provide an experience that's even more instant, check out the 'rs_localURL' attribute of the JavaScript API. The specifics of this are outside the scope of this tutorial, but the basic process includes:


Call redswooshInitialize until you've verified that the client is running
Call redswooshDownloadFile to begin downloading the file (if it hasn't been already)
Call redswooshUpdateAttributes to get a list of files downloading in the rs_fileAttributes global variable
Wait until rs_fileAttributes['http://www.redswoosh.net/media/video/test.wmv']['rs_status'] equals 'COMPLETE', indicating that the file has completed downloading (else you'll begin playing a file from disk before it's been fully downloaded, and all sorts of bad things will happen).
Create an embedded player using the direct on-disk path, listed in rs_fileAttributes['http://www.redswoosh.net/media/video/test.wmv']['rs_localURL']

With this technique, the player will open the file and read straight from disk, bypassing the internal prebuffering algorithms and providing an instant playback experience. This is particularly valuable when combined with predelivered files, as you can do instant playback of enormous files at higher bitrates than can be streamed over the user's connection.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 7 guests