Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
playing streams with username and password
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5910

PostPosted: Thu May 29, 2008 3:49 am    Post subject: playing streams with username and password Reply with quote

I got some channels that needs an input of username and password inorder to be played, tried with mplayer, vlc and xine but no luck
how can I play these streams?
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Fri May 30, 2008 12:11 am    Post subject: Reply with quote

Assuming these are http streams (or maybe even mms, I don't know), you can usually do a trick like:

http://username:password@someserver.com/mystream.asx

Hope this solves it :)
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5910

PostPosted: Fri Jun 20, 2008 7:08 pm    Post subject: Reply with quote

not working, vlc, mplayer and kaffeine report "no known plugin"

anything else that can help me?
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Sat Jun 21, 2008 1:10 am    Post subject: Reply with quote

One thing I can think of is running mplayer from a console window - it may give additional debugging information there that may help diagnosing what's going on. As far as I know, username and password are passed directly in the URL as I described, so there should be no reason it wouldn't work like that.

Sometimes a stream will initially return a file that specifies a new URL to follow to - I've found that many linux media players don't handle this properly and just fail. If this is the case, try using wget (described below) to download this first file, open it in a text editor, grab out the new URL, and try that.

Another possibility is that the stream server is set up to only serve the media stream to, eg, windows media player or other "known" media programs (via the http user agent), so you could as a debugging measure, use wget and specify it to send windows media player's user agent (and you should be able to for sure use this to specify the username and password). If you decide to use this method as a permanent solution, you can sometimes start playing a partially downloaded file (so it's a bit stream-ish), but ymmv. wget will only work for http style streams (not mms or any other weird things). The -U option of wget is used to set the user agent, such as:
Code:
wget -U "My Media Program User Agent" http://user:pass@someserver.com/media.asx


If you feel like sending me a link & username/pass, I could attempt to get it to work on my end, but I don't know if you'd want to give out that info or not.

Good luck :)
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5910

PostPosted: Sat Jun 21, 2008 4:12 am    Post subject: Reply with quote

but the question is, how much should I download when I try to play a live stream?
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Sun Jun 22, 2008 1:49 am    Post subject: Reply with quote

Hmm, I'm not sure exactly what you're asking?
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5910

PostPosted: Sun Jun 22, 2008 5:12 am    Post subject: Reply with quote

what should I put under "my favorite player"? the path?
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Thu Jun 26, 2008 2:45 pm    Post subject: Reply with quote

If you mean for wget, it's whatever user agent say, windows media player uses (I don't know it offhand). Otherwise I don't know what you mean.
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5910

PostPosted: Thu Jun 26, 2008 4:48 pm    Post subject: Reply with quote

BradN wrote:
If you mean for wget, it's whatever user agent say, windows media player uses (I don't know it offhand). Otherwise I don't know what you mean.


tried that, not working...
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum