LinuxDevCenter.com

oreilly.comSafari Books Online.Conferences.

We've expanded our Linux news coverage and improved our search! Search for all things Linux across O'Reilly!

Search
Search Tips

advertisement

Listen Print Subscribe to Linux Subscribe to Newsletters

Streaming Media With Linux
Pages: 1, 2, 3, 4, 5, 6

Preparing Netscape for MP3 and Vorbis

To set up XMMS as Netscape's default streaming MP3 and Vorbis player, go to the browser's Edit menu and proceed to the Preferences > Navigator > Applications dialog box. Create the following new MIME type entries:

Description: MP3 Audio
MIMEType: audio/x-mpeg
Suffixes: mp3,mp2,mpa,abs,mpega
Application: xmms %s
 
       Description: Icecast Playlists
       MIMEType: audio/x-mpegurl
       Suffixes: m3u
       Application: xmms %s
 
       Description: Shoutcast Playlists
       MIMEType: audio/x-scpls
       Suffixes: pls
       Application: xmms %s
 
       Description: OggVorbis Audio 
       MIMEType: application/x-ogg
       Suffixes: ogg
       Application: xmms %s

These entries configure Netscape for playing single files or playlists of files at a given URL. You can now enjoy streaming audio from sites such as MP3.com or Shoutcast simply by clicking on any interesting broadcast link.

Preparing Lynx for MP3 and Vorbis

Preparing Lynx for streaming MP3s is similar to setting it up for RealAudio. Check your $HOME/lynx.cfg file and be sure to point your PERSONAL_EXTENSION_MAP and PERSONAL_MAILCAP settings to your $HOME/mime.type and $HOME/.personal_mailcap files (as described above for TRPlayer). Add these settings to your mime.types file:

audio/mpg               mp3 mp2 mpega MP3
audio/mpeg              mp3 mp2 mpega MP3
audio/x-mpeg            mp3 mp2 mpega MP3
audio/mpegurl  m3u
audio/mpeg-url  m3u
audio/x-mpegurl         m3u
audio/x-mpeg-url m3u
audio/m3u  m3u
audio/x-m3u  m3u

Now add these lines to your .personal_mailcap file:

audio/mpg;mpg123 %s
audio/mpeg;mpg123 %s
audio/x-mpeg;mpg123 %s
audio/mpegurl;mpg123 -@ %s
audio/mpeg-url;mpg123 -@ %s
audio/x-mpegurl;mpg123 -@ %s
audio/x-mpeg-url;mpg123 -@ %s
audio/m3u;mpg123 -@ %s
audio/x-m3u;mpg123 -@ %s

These settings will let you listen to M3U playlist streams and single MP3 files in Lynx at the Linux console (Shoutcast PLS playlists and Vorbis streams are not yet supported by mpg123). Incidentally, the abundance of essentially identical MIME types reflects my experience while doing research for this article. I've erred on the side of surplus; you are of course free to edit those settings to your own preferences.

Preparing Lynx for streaming Vorbis is equally straightforward. Add this line to your $HOME/mime.type file:

application/x-ogg ogg

and this one to your $HOME/.personal_mailcap file:

application/x-ogg;ogg123 -d oss %s

and you're all set. You now have Lynx configured for your listening pleasure in RealAudio, MP3, or streaming Vorbis.

This section concludes Part One of this article. In Part Two you will learn how to set up the RealServer and Icecast streaming audio servers, but for now let's take a break ... and listen to some music!

Dave Phillips maintains the Linux Music & Sound Applications Web site and has been a performing musician for more than 30 years.

Related Articles

Streaming Media With Linux (Part 2)

Creating Great Audio for the Web

Could Ogg Vorbis Replace MP3?

Linux Audio Plug-Ins: A Look Into LADSPA

Server-Side Considerations for Video Streaming

Shooting Digital Video PDA Style


Return to the Linux DevCenter.




Tagged Articles

Post to del.icio.us

This article has been tagged:

linux

Articles that share the tag linux:

Managing Disk Space with LVM (74 tags)

Use Your Digital Camera with Linux (60 tags)

mdadm: A New Tool For Linux Software RAID Management (59 tags)

Asterisk: A Bare-Bones VoIP Example (43 tags)

View All

streaming

Articles that share the tag streaming:

Streaming Media With Linux (11 tags)

Streaming QuickTime with Java (3 tags)

MP3 Sound Bites (3 tags)

View All

radio

Articles that share the tag radio:

Streaming Media With Linux (5 tags)

Hacking Radio on the Mac (4 tags)

View All

music

Articles that share the tag music:

Hacking Perl in Nightclubs (36 tags)

Unify and Synchronize Your iTunes Libraries (29 tags)

View All

media

Articles that share the tag media:

MP3 Sound Bites (11 tags)

Remixing Culture: An Interview with Lawrence Lessig (11 tags)

Movies of Software (7 tags)

View All

Sponsored Resources

  • Inside Lightroom
Advertisement

Sponsored by:

O'Reilly Media

©2009, O'Reilly Media, Inc.
(707) 827-7000 / (800) 998-9938
All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.
About O'Reilly
Academic Solutions
Authors
Contacts
Customer Service
Jobs
Newsletters
O'Reilly Labs
Press Room
Privacy Policy
RSS Feeds
Terms of Service
User Groups
Writing for O'Reilly
Content Archive
Business Technology
Computer Technology
Google
Microsoft
Mobile
Network
Operating System
Digital Photography
Programming
Software
Web
Web Design
More O'Reilly Sites
O'Reilly Radar
Ignite
Tools of Change for Publishing
Digital Media
Inside iPhone
O'Reilly FYI
makezine.com
craftzine.com
hackszine.com
perl.com
xml.com

Partner Sites
InsideRIA
java.net
O'Reilly Insights on Forbes.com