LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-21-2011, 03:47 AM   #1
george-lappies
Member
 
Registered: May 2011
Location: Secunda, South Africa
Distribution: Slackware 13.37
Posts: 181

Rep: Reputation: 9
Question Playing asx radio stream


Hi all

I have been trying but to no avail to play a radio stream. I installed vlc from alienbob and this is the output:
Code:
VLC media player 1.1.10 The Luggage (revision exported)
Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
[0x804caf4] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Error: call to XSetErrorHandler((nil))
Error: call to XSetIOErrorHandler((nil))
Blocked: call to setlocale(6, "")
Error: call to XSetErrorHandler(0xb61028e0)
Error: call to XSetIOErrorHandler(0xb6103bc0)
Blocked: call to setlocale(6, "")
[0xb240092c] stream_out_transcode stream out error: cannot create chain
[0xb2400594] main stream output error: stream chain failed for `transcode{vcodec=h264,vb=0,scale=0,acodec=mp4a,ab=128,channels=2,samplerate=44100}'             
[0x847d3ec] main input error: cannot start stream output instance, aborting
the stream is:
Code:
http://www.antfarm.co.za/clients/rsg/rsg_22.asx
Any help will be much appreciated.
 
Old 07-21-2011, 03:51 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
Well ASX files are not actually streams, they are XML metadata that tells you where to go for a stream. If you curl that url you see this:

Code:
<ASX VERSION="3.0">
        <TITLE>RSG - live from Johannesburg</TITLE>
        <copyright>2010, SABC</copyright>
        <author>Powered by Antfarm & Internet Solutions</author>
        <abstract>Streaming radio, live from Johannesburg</abstract>
	<MOREINFO HREF="http://www.rsg.co.za" TARGET="_blank" />

	<ENTRY>
	        <TITLE>RSG - live from Johannesburg</TITLE>
        	<copyright>2010, SABC</copyright>
	        <author>Powered by Antfarm & Internet Solutions</author>
        	<abstract>Streaming radio, live from Johannesburg</abstract>
		<MOREINFO HREF="http://www.rsg.co.za" TARGET="_blank" />

	        <Ref href = "http://encryptant.antfarm.co.za/fifa/redivertor/default.aspx?id=8" />

	        <Ref href = "mms://196.35.64.36/rsg_22" />
	        <Ref href = "http://196.35.64.36/rsg_22" />

	        <Ref href = "mms://196.35.64.63/rsg_22" />
	        <Ref href = "http://196.35.64.63/rsg_22" />

	        <Ref href = "mms://196.35.68.110/rsg_22" />
	        <Ref href = "http://196.35.68.110/rsg_22" />

	</ENTRY>
</ASX>
those mms links play fine for me using mplayer
 
1 members found this post helpful.
Old 07-21-2011, 04:06 AM   #3
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 891

Rep: Reputation: 190Reputation: 190
MPlayer will parse the asx file for you with the -playlist option:

Code:
mplayer -cache 2048 -cache-min 80 \
        -playlist 'http://www.antfarm.co.za/clients/rsg/rsg_22.asx'

Last edited by andrew.46; 07-21-2011 at 04:07 AM.
 
Old 07-21-2011, 04:13 AM   #4
george-lappies
Member
 
Registered: May 2011
Location: Secunda, South Africa
Distribution: Slackware 13.37
Posts: 181

Original Poster
Rep: Reputation: 9
Thanks all, is working fine now
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Playing ASX Files felix001 Linux - Software 1 02-04-2011 07:21 PM
Playing an internet radio stream from a ssh connection lothario Linux - Software 1 01-17-2007 07:11 AM
how to stream media in firefox with .asx extension dr_zayus69 Linux - Software 5 10-04-2005 03:35 PM
how can i listen to this radio station .ASX file Santorres Linux - General 3 03-12-2005 08:28 PM
save radio stream SchwipSchwap Linux - Newbie 7 06-17-2004 12:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration