Original is here



   
   

The "ready-to-go" Solaris Helpers Page

http://home1.swipnet.se/%7Ew-10694/helpers.html
Last modified: January 21

6803 visitors since October 1, 1996

What's wrong, what's missing? Send comments and
suggestions to Johan.Hagman@mailbox.swipnet.se


Optimized for speed: no advertisements, no animations, minimum images, no nonsense


W h a t ' s   N e w
A new, higher performance MPEG video player mtv (MpegTV player) is available from the company MpegTV, as a commercial alternative to mpeg_play.

To encourage improvements and ports to other systems, the mpeg3play 0.9 source code is available. mpeg3play can be found here.


Table of Contents  (links to page sections are in the left column)

Overview What is this page all about?
Disclaimer
Download gunzip
Supported file types
Browser interface About Netscape and MIME types
Installation Download mime.types
Download mailcap
Program index Browser utilities
Audio players
Video players
Image viewers
Document viewers
VRML browsers
Netscape plugins Tcl/Tk plugin from SunLabs
Acrobat Reader
CoolTalk
Tools & Utilities Additional Solaris programs
Setup & Configurations Web-related setup information

Netscape 2.x users: this page uses table background colors, which
are only supported in Netscape 3.x. Use version 3.x if possible.


History

Go here to view a listing of the page change history


Overview

Helper applications are programs that are assigned to handle multimedia file formats (audio, video, images etc) that a web browser itself does not understand. This page contains helper applications and set-up instructions for Solaris versions of Netscape Navigator. The helper programs are verified with Netscape 3.x, and I believe everything except plugins (and the HTML table background colors on this page) also works with the 2.x version.

"Ready-to-go" means that no source code for the helper applications can be downloaded from this page, only binaries and documentation. But most of the programs are freely available on the net as source code. They are copyrighted by their respective authors, who I have contacted to get permission for making only the binaries available here.

Disclaimer:
Except for a number of bug fixes and functionality or performance improvements, the binaries have been compiled directly from the source code pointed to by the "home" link for each application. The material placed on this page is provided "as is". I have verified the correctness of this information the best I can, but I do no take responsibility for any errors or damages that may result from the usage of this information.

The SPARC executables run on Solaris 2.4 or later releases, but because of their general nature, they can of course just as well be used standalone or as helpers for other HTML browsers. SPARC binaries are compiled and optimized for the sun4m architecture (SPARC V8) using the latest Sun compiler, SPARCompiler 4.0. SPARC audio applications are built for and tested on systems with 16-bit (CD quality) audio, but should also work with the older 8-bit (phone quality) audio interface. See the man pages for application-specific options.

Solaris/x86 binares are created with Sun ProCompiler 3.0.1 on Solaris/x86 version 2.5.

Each application is downloaded as a gzip-compressed tar file. If you don't have gunzip, get a binary from ftp.netscape.com, sunsite.unc.edu, ftp.quintus.com or smc.vnet.net.

This table is a summary of the multimedia file formats that become supported if all helper applications on this page are installed. Netscape will start the appropriate helper if the data arrives from an HTTP server (assuming that the server is properly configured), by FTP, as attachment in Netscape news or Netscape mail (by clicking the attachment) or when loaded from a local file.


The browser interface

When Netscape loads data by HTTP, it first checks if it can handle the MIME type in the protocol itself (HTML text, GIF or JPEG image, etc), then checks if a helper application is defined in the ~/.mailcap file for that MIME type. If there is one, the data is sent to the helper application as a temporary file, otherwise Netscape pops up a "Save As..." file selector. The extension of the file that is downloaded doesn't matter in this case.

On the other hand, if a local file is opened or a file is downloaded by FTP, Netscape uses the ~/.mime.types file to look up the MIME type for the file, identified by the file extension. Unlike some earlier browsers, Netscape has a long list of built-in MIME types (the complete list can be found in http://home.netscape.com/assist/helper_apps/mimedefault.html), and doesn't normally need any mime.types file at all. But this page defines helpers for a number of file types it doesn't know about (mid, fli, flc, wrl and all the module audio file types mod, xm, s3m, stm, mtm, ult, uni and it), and a ~/.mime.types file must therefore be installed. To better document the setup and make things work with other browsers, it contains the complete list of types.

It is still possible to save file types that have had helper applications defined for them by shift-clicking the left mouse button or selecting "Save Link As.." from the menu (right button).


Installation

The applications are divided into categories (audio, video, ...) and the structure of each application that can be downloaded as a binary from this page is identical: first a short description with usage hints, then four links:

  • Download Solaris/SPARC gets you a gzipped tar file that contains the SPARC binary and documentation for that application. Once you have the archive, unzip it and extract the files. Put the binary in the search path (preferably /usr/local/bin) to make it accessible to Netscape, and put the man page somewhere in MANPATH (i.e. /usr/local/man). The file extension of man pages in the archives is .1 or .man.
  • Download Solaris/x86 is as similar link as above, but the archive contains an Intel binary. The SPARC and x86 archives are otherwise identical.
  • Home is the author's home page or ftp site where source code and more information can be found.
  • Author sends mail to the author (this is where bug reports should go :^)).
  • Setup information for applications that can be downloaded as Solaris binaries from other sites (Adobe Acrobat Reader, VRweb, etc) have three links: Download, Home, Vendor. The Download link should lead to the vendor's download page or anonymous ftp site.

    Below the links are additional installation instructions (which are only necessary for a few programs), and then a table listing the mime.types and mailcap definitions for the application. To make it possible to verify that the programs really work after the installation, most applications also have one or more test files (located below the table). All test files are believed to be in the public domain, but I will remove any files that are not such at the copyright owner's request.

    Let's install

    Start the installation by downloading the mime.types and mailcap files and copy them to $HOME/.mime.types and $HOME/.mailcap, respectively.

    Open the Options->General Preferences window and click "Ok" to close it again. This makes Netscape read the new mime.types and mailcap files.

    Then download the helpers applications you are interested in and install the binaries and manual pages. The only program that includes files that must be installed in a specific location is TiMidity (but there's a workaround, see the TiMidity installation instructions).

    Click each "test" link to verify that the helpers applications work as expected.


    Program index

    Setup instructions and download information are currently available for the following programs (links to the application categories are in the left column).

    The programs on a red background can be downloaded as Solaris binaries from this page, and the programs on a white background are already part of Solaris or can be downloaded as binaries from other sites, with links from this page.

    Sorry Netscape 2.x users, you can't see the colors. But to make life easier, the binaries that are available for download from this page are marked with an asterisk.


    Browser utilities

    XPlayGizmo 1.0  is a utility that was written for use with NCSA Mosaic. It is a small control panel that pops up after the browser invokes an external sound player or movie viewer, and makes it possible to play sound and movie files multiple times without multiple data transfers. Downloaded sounds/movies can also be saved to local files.

    Note: XPlayGizmo must be installed if you intend to use the maplay (MPEG audio player) or mikmod (MOD player) helpers with the default mailcap file provided on this page.


    Audio players

    xplay 0.7  is a utility for playing audio files of type .au (Sun audio files), .wav (Windows 3.0 WAVE format) and .aiff (Apple/SGI AIFF file). It opens a small audio control window with pause/rewind/save/volume controls, much like xplaygizmo. The popup window automatically exits after 3 seconds of inactivity.

    The program has restrictions: compressed AIFF and WAVE files are not supported and the number of WAVE formats that can be played are limited, but it adapts the input to the available hardware, doing rate-conversion and converting stereo to mono as required for the older 8-bit harware, while taking advantage of the 16-bit CD-quality audio interface on newer machines.


    maplay 1.3 beta  is the second release of an MPEG audio player/decoder that decodes layer I and II MPEG audio streams and plays them using the CD-quality Sun audio device. The player supports all modes (single channel, stereo, joint stereo and dual channel) and all bit rates except free mode. MPEG audio compression uses a lossy compression algorithm that achieves a compression rate of 1:3 up to 1:24 compared to raw PCM data.


    mikmod 2.13  is a portable module player written originally by Jean-Paul Mikkers (MikMak). It plays the XM, MOD, MTM, S3M, STM, ULT and UNI module formats, and IT support is currently being worked on. The Unix version of the player is controllable via an ncurses interface and extracts and plays modules from a variety of archive formats. As of version 1.90 and higher, mikmod is shareware. This only means that you have to give the author a one-time $25 US registration fee if you want to use mikmod commercially. See register.frm included in the archive for more information.

    The following keyboard commands are recognized when files are played from the command line

        Key             Action
        ---             ------
        x,e,q           quit
        <space>         pause (also releases sound device until needed again)
        n, down, CR     next mod
        p, up           restart current/previous mod
        >, right        next pattern
        <, left         restart current/previous pattern
        ,               down tempo
        .               up tempo
        /               normal tempo
        -               down volume
        +               up volume
        *               normal volume
        d               toggle deletion marking on/off
        y               delete current mod if marked
    

    The Solaris binary that can be downloaded here includes three performance enhancements and a new "quiet mode" command line option -q which makes it possible to use mikmod as a helper application.


    TiMidity 0.2i  is a MIDI to WAVE converter that uses Gravis Ultrasound-compatible patch files to generate digital audio data from General MIDI files. The audio data can be played through any sound device or stored to disk. On fast machines, music can be played in real time. TiMidity runs under Linux, FreeBSD, HP-UX, SunOS, Solaris and Win32.

    The default mailcap file starts up TiMidity to output audio data in real-time, mono mode, at a sample rate of 22.05 kHz. It is possible to increase the sampling frequency and switch to stereo to get even better sound quality (and consume more CPU). Take a look at the midiplay script (see below) for a list of valid sampling frequencies and the stereo/mono flag.

    The TiMidity volume control may be a little confusing. It controls the volume of the sound that is generated and not the volume control of the workstation. Because the output is buffered, volume changes are delayed. It's easier to use /usr/openwin/bin/audiocontrol as volume control instead.


    raplayer 3.0  is the popular RealAudio player that plays audio in real time over 14.4 or 28.8 modems. Version 3.0 supports broadcast-quality audio, including stereo at 28.8 kbps speeds and near-CD quality at ISDN and LAN speeds. Solaris 2.4 users must currently still download the 2.0 version.

    The player is free for individual use.


    Video players

    Netscape includes built-in support for GIF89 animations, but many sites misuse this feature by putting dozens of animations on a single HTML page, which may slow down the browser too much. Here is a simple, lightweight example: a beating heart. Press the Stop button to stop the animation (this only works in Netscape 3.x).

    XAnim 2.70.6.3  is a well-known program on Unix systems for displaying animations, video and audio files of various formats. It also provides many options that allow the user to alter colormaps, playback speed, looping modes and it can provide on-the-fly scaling of animiations.


    mpeg_play 2.0 MI  is a public domain MPEG video decoder, that displays an MPEG-1 video stream in an X window. This particular version (MI) has an improved Motif user interface. It plays only MPEG-1 video streams, and can not handle multiplexed MPEG or video+audio streams.

    mtv 0.9  (MpegTV player) is a real time software-only MPEG-1 video player with audio/sync for Unix/X-Windows platforms with 8-bit, 16-bit, 24-bit or 32-bit frame buffers. The MpegTV player plays MPEG-1 video and systems streams with Layer I and II audio in realtime. Audio is played in sync with video and graceful degradation is achieved with frame dropping if necessary.

    Free demo versions of the player can be downloaded for Solaris (SPARC/UltraSPARC) or Linux (x86 ELF), but the demo versions are time limited and the audio is disabled after 30 seconds.

    To install the MpegTV player as the MPEG video helper application (as a replacement for mpeg_play), follow the installation instructions on the home page and simply edit ~/.mailcap and replace the startup command for the video/mpeg MIME type "mpeg_play -quiet %s" (see mpeg_play above) with "mtv %s".


    Image viewers

    Solaris Netscape supports the most popular web image types GIF, JPEG and X bitmaps, but doesn't have built-in support for other formats. Therefore, some external image viewers might be useful.

    xli 1.16  is a version of xloadimage that can view several image types under X11, or load images onto the root window. A variety of options are available to modify images prior to viewing. These options include clipping, dithering, depth reducing, zoom, brightening or darkening, input gamma correction and image merging.

    The default mailcap configuration starts xli with the -fit -colordither options to avoid colormap flashing, but to get the best possible color quality the options can be removed if colormap flashing is acceptable.

    Type xli -support to see the supported image types.


    xtiff 2.0  is a tool for viewing TIFF files. The xtiff source release contains two user interfaces: an Xlib and an Athena widgets version. This is the Xlib version with one enhancement: the q key can be used to exit the viewer (like xli and xv). xtiff has two major limitations: it always installs a private colormap (which results in colormap flashing) and it cannot dither images that are deeper than the available visuals.


    Document viewers

    pageview  is a PostScipt viewer that is part of the OpenWindows deskset. It should always be available in a CDE and OpenWindows environment in /usr/openwin/bin. No installation or special configuration is necessary for this application.


    acroread 3.0  (Acrobat Reader) is the latest version of a free utility for viewing, navigating, and printing Adobe Acrobat PDF files. It also offers new features like progressive display, font blitting and antialiased text.

    The 3.0 version also runs as a Netscape plugin.


    VRML browsers

    Both VRML 1.0 and 2.0 worlds have the same MIME type. Because there aren't any VRML browsers that can load both the 1.0 and 2.0 file formats, I have written a generic startup script dispatch-vrml that determines the version number by looking at the first "magic" line, and starts the appropriate browser. The script starts VRweb to view VRML 1.0 files, and for VRML 2.0 files, it first builds a temporary HTML file in /tmp which references the VRML file. The Java appletviewer is then called to visualize the VRML object using the Liquid Reality Java toolkit.

    Begin the VRML installation by downloading the script, and install it in the search path.


    VRML 1.0


    VRweb 1.3  is a browser for 3D worlds and objects modeled in the Virtual Reality Modeling Language (VRML). VRweb is the only VRML browser which is freely available in complete source code (under the GNU General Public License). It does not require commercial packages such as Inventor or Motif, and is capable of running on many platforms.

    The VRweb project began as a joint project between IICM, NCSA and the University of Minnesota.

    VRML 2.0


    Liquid Reality 1.0  is a VRML toolkit from Dimension X. The toolkit is a set of Java class libraries that offers VRML 2.0 functionality. With the toolkit, it is possible to create viewers, tools, and solutions that are VRML 2.0 compliant. In addition, the toolkit is extensible using Java.


     Netscape plugins

    Tcl/Tk plugin 1.1  from SunLabs. The 1.1 version supports the following platforms: Solaris/SPARC, Solaris/Intel, SunOS, Windows 95, Windows NT, Macintosh, Linux, IRIX, Digital Unix and HP/UX. The scripts (or "Netscape Tcl tclets") that can be executed with this plugin are normal Tcl/Tk scripts, but they run in a slightly more restricted "Safe Tcl" environment (it's not allowed to read or write to local files by default, for example).

    The 2.0 version of the plugin is also available as an alpha release.

    Acrobat Reader 3.0  is the latest version of the free PDF reader from Adobe. The 3.0 version makes it possible to view PDF documents inside HTML browsers (since the reader can be installed as a plug-in) and offers new features like progressive display, font blitting and antialiased text.

    CoolTalk  is an Internet telephone tool that provides high-quality audio conferencing, a full-featured whiteboard, and text-based communications using the chat tool. With CoolTalk you can talk and work collaboratively with friends and colleagues via the Internet. Because CoolTalk works seamlessly with Navigator 3.x, calls can be sent and received directly from web pages.


     Tools & Utilities

    The following programs are not assigned as helper applications in the default mailcap file.


    mpeg3play 0.9 is an MPEG audio layer 2 and layer 3 audio decoder/player based on public ISO/MPEG audio decoder source code. The original software is a slow but portable MPEG to AIFF decoder, impossible to use as a real-time player. I have optimized the source code to the point where it becomes possible to use the decoder for real-time playback, and have modified it for output to the Solaris audio device. Version 0.9 is the first release to appear on this page.

    MPEG layer 3 is a powerful audio encoding format. It can serve as an efficient compression format (with a compression ratio of around 12:1) for storage and playback of local files, but more interestingly, it can handle compressed audio at bit rates low enough to stream over the Internet. Even bit rates of 16 kbit/s, suitable for 28.8 modem connections, are supported. It's also ideal for Usenet postings, because you don't have to download all parts of a song to hear it - just download one of the parts and listen to it!

    But it certainly isn't necessary to write a complete MPEG layer 3 tutorial here, such information already exists on the Web. See this small MPEG layer 3 information page where I have collected some pointers to more information.

    mpeg3play is not yet defined as a helper application on this page (as a replacement for maplay) because version 0.9 is the first, experimental release. See below instructions for how to install it as a streaming audio player for Netscape 3.x by editing the .mime.types and .mailcap files. First download the Solaris/SPARC binary and install it in your search path


    sox 11.12  (SOund eXchange) is a universal sound sample translator that can convert between a number of audio file formats and apply sound effects to audio samples.

    This release understands "raw" files in various binary formats, raw textual data, Microsoft Windows .WAV files, MAUD files, Sound Blaster .VOC files, IRCAM SoundFile files, Sun .au files, mutant DEC .au files, Apple/SGI AIFF files, CD-R (music CD format), Macintosh HCOM files, Sounder files, NeXT .snd files, Sun ADPCM (compressed) .au files, Soundtool (DOS) files, and Psion (palmtop) A-law files.

    The sound effects include changing the sample rate, adding echo delay lines, applying low, high, and band-pass filtering, examining sample loops and grabbing the looped parts, translating between stereo and monophonic channels, reversing a sample, adding masking noise to avoid buzzing voices, and the infamous Fender Vibro effect.


    xautolock 1.10  monitors console activity, and fires up a program of you choice if nothing happens during a user configurable period of time. You can use xautolock to automatically start up a screen locker in case you tend to forget to do so manually.

    It is also possible to tell xautolock to take special actions when you move the mouse pointer into one of the screen corners and leave it there.


    xv 3.10a  displays images in the GIF, JPEG, TIFF, PBM, PGM, PPM, X11 bitmap, Utah Raster Toolkit RLE, PDS/VICAR, Sun Rasterfile, BMP, PCX, IRIS RGB, XPM, Targa, XWD, possibly PostScript, and PM formats on workstations and terminals running the X Window System

    xv is shareware for personal use only, but commercial, government and institutional users must register their copies. Please read the licensing issues in the README file and send licensing questions to xvbiz@devo.dccs.upenn.edu.

    xv is great for interactively displaying, cropping, converting and color correcting images, but it is not defined as a helper on this page because the size of the program makes the startup time longer than for the other, smaller image viewers.


     Setup & Configurations

    Background sounds on HTML pages

    Both Netscape and Microsoft Internet Explorer provide a way to automatically play background sounds after a page is loaded. Unfortunately, MSIE uses the <BGSOUND> tag for background sounds while Netscape uses the <EMBED> tag. Page authors should use both if the page is intended to work with both browsers [side note: MSIE 3.01 will apparently also recogize <EMBED> tags if Active-X (or movie?) stuff is installed].

    Pages with background sounds should therefore include tags like these in the body of the page (the .wav format is probably most portable and should play on most platforms):

       <EMBED SRC="bgsound.wav" TYPE="audio/x-wav" AUTOSTART=TRUE HIDDEN=TRUE>
       <BGSOUND SRC="bgsound.wav" LOOP=INFINITE>
    
    However, the above does not work for the Solaris version of Netscape, since the <EMBED> tag is only for plug-ins, and no MIDI/au/wav/aiff plug-ins are currently available for Solaris.

    To enable background sounds for Solaris, a HTML page can define a main frame where the text is shown and a tiny frame that just loads the audio file that should play as a background sound. Pages authored this way work with both audio plug-ins and audio helper applications.

    Try this background sound test page that uses a .wav file as background sound. The page sets up its frames like this

       <FRAMESET ROWS="99%,*">
       <NOFRAMES>
         This document must be viewed using a frame-enabled browser.
       </NOFRAMES>
         <FRAME SRC="mainframe.html">
         <FRAME SRC="audio/bgsound.wav">
       </FRAMESET>
    


    [Overview | Browser | Installation | Index | Plugins | Utilities | My home page]

    Most of the programs on this page are copyrighted by their authors.
    See the home and author links for more information.

    This page copyright © 1996, 1997 by Johan Hagman.

    Hosted by Tele2


    Популярность: 25, Last-modified: Mon, 27 Jan 1997 09:45:06 GMT