Error Playing .wav file on RHEL 4 using JMF

Hi,
We are using jmf api to play wav files on our application deployed on rhel version 4. But we are receiving the following error
**"Cannot find a Processor for: myfolder/myAudio.wav" --->
this exception is comming from javax.media.Manager
throw new NoProcessorException("Cannot find a Processor for: " + source);"**.
Any ideas what could be issue with this, am I missing some drivers/processor for wav files? I did a default jmf studio installation.
Thanks and Regards
Vikram Pancholi
Edited by: vpancholi on Sep 8, 2009 8:51 AM

If we take a look at the supported formats page...
[http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/formats.html]
And the WAV file is supported by the cross-platform pack, AKA, jmf.jar.
If you're unable to open a WAV file, I'd say it's most likely because you don't have JMF.jar on your library path. You can fix that at runtime with the switch -djava.library.path=<whatever>
That's what I would say the issue is.

Similar Messages

  • Play wav file on PDA using JMF

    Hi all,
    I need to play wav files on a PDA so I installed J9 on the PDA and downloaded either JMF crossplatform and JMF for windows (version jmf 2.1.1.e for both of them).
    I included in the classpath the jmf.jar from JMF crossplatform and sound.jar from JMF for windows (the JMF crossplatform doesn't have the sound.jar and jmf.jar requires some classes contained in it).
    When I run my testing application I have such an error:
    Unable to handle format: LINEAR, 8000.0 Hz, 8-bit, Mono, Unsigned, 8000.0 frame rate, Framesize=8 bits
    Failed to prefetch: com.sun.media.PlaybackEngine@287a287a
    Error: Unable to prefetch com.sun.media.PlaybackEngine@287a287a
    I have the same error playing wav files with different features (8 or 16KHz, 8 or 16 bits ).
    Can anyone help me?
    Any suggestion is welcome. Thanks in advance!
    Message was edited by:
    pirascrs

    not really I have seen it. The only buyable version left is IBM j9. All the rest basically are sold to handset manufacturers.
    Its hectic out there. I still cant play audio on J9 to build a simple tourist guide!!!!
    javajoom is for wtk21 - hello its 2007.
    Oh well lets toss pda's out of the window along with Microsoft's OS and use smart phone OS - or should I toss J2me and start on C# to be on the safe side???
    Has anyone an answer?

  • Playing a wav file (byte array) using JMF

    Hi,
    I want to play a wav file in form of a byte array using JMF. I have 2 classes, MyDataSource and MyPullBufferStream. MyDataSource class is inherited from PullStreamDataSource, and MyPullBufferStream is derived from PullBufferStream. When I run the following piece of code, I got an error saying "EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c9108b2, pid=3800, tid=1111". Any idea what might be the problem? Thanks.
    File file = new File(filename);
    byte[] data = FileUtils.readFileToByteArray(file);
    MyDataSource ds = new MyDataSource(data);
    ds.connect();
    try
        player = Manager.createPlayer(ds);
    catch (NoPlayerException e)
        e.printStackTrace();
    if (player != null)
         this.filename = filename;
         JMFrame jmframe = new JMFrame(player, filename);
        desktop.add(jmframe);
    import java.io.IOException;
    import javax.media.Time;
    import javax.media.protocol.PullBufferDataSource;
    import javax.media.protocol.PullBufferStream;
    public class MyDataSource extends PullBufferDataSource
        protected Object[] controls = new Object[0];
        protected boolean started = false;
        protected String contentType = "raw";
        protected boolean connected = false;
        protected Time duration = DURATION_UNKNOWN;
        protected PullBufferStream[] streams = null;
        protected PullBufferStream stream = null;
        protected final byte[] data;
        public MyDataSource(final byte[] data)
            this.data = data;
        public String getContentType()
            if (!connected)
                System.err.println("Error: DataSource not connected");
                return null;
            return contentType;
        public void connect() throws IOException
            if (connected)
                return;
            stream = new MyPullBufferStream(data);
            streams = new MyPullBufferStream[1];
            streams[0] = this.stream;
            connected = true;
        public void disconnect()
            try
                if (started)
                    stop();
            catch (IOException e)
            connected = false;
        public void start() throws IOException
            // we need to throw error if connect() has not been called
            if (!connected)
                throw new java.lang.Error(
                        "DataSource must be connected before it can be started");
            if (started)
                return;
            started = true;
        public void stop() throws IOException
            if (!connected || !started)
                return;
            started = false;
        public Object[] getControls()
            return controls;
        public Object getControl(String controlType)
            try
                Class cls = Class.forName(controlType);
                Object cs[] = getControls();
                for (int i = 0; i < cs.length; i++)
                    if (cls.isInstance(cs))
    return cs[i];
    return null;
    catch (Exception e)
    // no such controlType or such control
    return null;
    public Time getDuration()
    return duration;
    public PullBufferStream[] getStreams()
    if (streams == null)
    streams = new MyPullBufferStream[1];
    stream = streams[0] = new MyPullBufferStream(data);
    return streams;
    import java.io.ByteArrayInputStream;
    import java.io.IOException;
    import javax.media.Buffer;
    import javax.media.Control;
    import javax.media.Format;
    import javax.media.format.AudioFormat;
    import javax.media.protocol.ContentDescriptor;
    import javax.media.protocol.PullBufferStream;
    public class MyPullBufferStream implements PullBufferStream
    private static final int BLOCK_SIZE = 500;
    protected final ContentDescriptor cd = new ContentDescriptor(ContentDescriptor.RAW);
    protected AudioFormat audioFormat = new AudioFormat(AudioFormat.GSM_MS, 8000.0, 8, 1,
    Format.NOT_SPECIFIED, AudioFormat.SIGNED, 8, Format.NOT_SPECIFIED,
    Format.byteArray);
    private int seqNo = 0;
    private final byte[] data;
    private final ByteArrayInputStream bais;
    protected Control[] controls = new Control[0];
    public MyPullBufferStream(final byte[] data)
    this.data = data;
    bais = new ByteArrayInputStream(data);
    public Format getFormat()
    return audioFormat;
    public void read(Buffer buffer) throws IOException
    synchronized (this)
    Object outdata = buffer.getData();
    if (outdata == null || !(outdata.getClass() == Format.byteArray)
    || ((byte[]) outdata).length < BLOCK_SIZE)
    outdata = new byte[BLOCK_SIZE];
    buffer.setData(outdata);
    byte[] data = (byte[])buffer.getData();
    int bytes = bais.read(data);
    buffer.setData(data);
    buffer.setFormat(audioFormat);
    buffer.setTimeStamp(System.currentTimeMillis());
    buffer.setSequenceNumber(seqNo);
    buffer.setLength(BLOCK_SIZE);
    buffer.setFlags(0);
    buffer.setHeader(null);
    seqNo++;
    public boolean willReadBlock()
    return bais.available() > 0;
    public boolean endOfStream()
    return willReadBlock();
    public ContentDescriptor getContentDescriptor()
    return cd;
    public long getContentLength()
    return (long)data.length;
    public Object getControl(String controlType)
    try
    Class cls = Class.forName(controlType);
    Object cs[] = getControls();
    for (int i = 0; i < cs.length; i++)
    if (cls.isInstance(cs[i]))
    return cs[i];
    return null;
    catch (Exception e)
    // no such controlType or such control
    return null;
    public Object[] getControls()
    return controls;

    Here's some additional information. After making the following changes to MyPullBufferStream class, I can play a wav file with gsm-ms encoding with one issue: the wav file is played many times faster.
    protected AudioFormat audioFormat = new AudioFormat(AudioFormat.GSM, 8000.0, 8, 1,
                Format.NOT_SPECIFIED, AudioFormat.SIGNED, 8, Format.NOT_SPECIFIED,
                Format.byteArray);
    // put the entire byte array into the buffer in one shot instead of
    // giving a portion of it multiple times
    public void read(Buffer buffer) throws IOException
            synchronized (this)
                Object outdata = buffer.getData();
                if (outdata == null || !(outdata.getClass() == Format.byteArray)
                        || ((byte[]) outdata).length < BLOCK_SIZE)
                    outdata = new byte[BLOCK_SIZE];
                    buffer.setData(outdata);
                buffer.setLength(this.data.length);
                buffer.setOffset(0);
                buffer.setFormat(audioFormat);
                buffer.setData(this.data);
                seqNo++;
        }

  • Blackberry 8330 - can't play wav files - Red X and "unknown error occured"

    I have a client that started having an issue with her blackberry after we moved to BES Express 5.02.  Her .wav file association on her computer was changed so she couldn't play .wav files on her PC.  Then she stated getting a red X on her phone when trying to listen to the Cisco unity voice mail messages that are attached to emails.   
    I was able to correct the issue on her PC by re-associating the .wav file with windows media player.   However on the blackberry, the .wav file still will not play.  Is there a file association section on a blackberry device?  If not what else might be the issue?   she is the only person having the issue.  I don't use a blackberry so i don't know the menu options very well.
    Thanks
    Steve.
    P.S.
    Oh, The phone was factory reset before being added to the new BES, Service books and IT policy Applied correctly.   I could pull the phoen and reset it again but I don't know if that would correct the issue. 

    Hi - I am now having this same exact problem on my Mac laptop.   I have many Breaking Bad, etc TV shows that I purchased through itunes & have watched over the years & now all of those, as well as, any new shows I purchase will not play on my laptop.    Just same as above person -- a black screen that appears to be playing movie (the timer is actually playing)  but no video or sound.    Shows / Movies all work fine on my home computer.  
    On my laptop it keeps saying .. "Not authorized to play .... & then says  "Sign into Itunes.. "   - but I  do sign out & sign  back in & still nothing happens.   Very annoying and frustrating as I  can ususlly figure things out with perserverence and trial & error. 

  • Pre does not play WAV file when received as an attachment via email

    I get my office voicemails emailed to me as an attachment but when I click on the attachment it goes to open the file to play but then it says that there was an error playing the file. Do i have to change a setting? Please help. Thank you!
    Post relates to: Pre p100eww (Sprint)

    I spoke to palm support they say they are aware of the problem at this time the pre doesn't support the wav file for voice mail . It is very important to me and I have been using this feature on my blackberry and my palm 755p I don't under stand why they would release a phone and not have the needed software for it .

  • How to fix problem "PYLR2000 error playing a file. Try again or contact your Monitoring and Recording administrator"

    Hi,
    I'm using qm 8.5.2 (endpoint recording) most of customer PCs cannot play recording file in application.
    When I launch application and try to play recoding file, it is stuck and show error message "PYLR2000 error playing a file. Try again or contact your Monitoring and Recording administrator." I've install all cilent requirements (validate pc is pass). The error still occur. Even though all requirements are complete .
    So, How to fix this problem.
    Thank in advance
    Namkhao

    Hi bsetexast,
    I'm fix this problem by using Java(TM) version 6.0.200.2 that can be download from UCCX when first run CSD (supervisor desktop). Even other higher java version is valid but this problem still occur. If you install higher version, you should uninstall it first and install this version as well.
    If you cannot find them, I will send you via email.

  • Play WAV files into the .jar

    Hello,
    I'm doing small application Java with Netbeans.
    I need is to play .wav file sounds are incorporated into the jar.
    I do not want to use external libraries or external sound files, etc.. I want to go with my .JAR to the office, home, etc ... just need the JAR to hear the sounds.
    I've created a folder "Sounds" in "src" and in that place I have my sounds. (Project / src / sounds). It's a way to incorporate a JAR file, or am I wrong?? Run independently of the sound files.
    At the time of reproducing the sound I do the following:
    Clip sonido = AudioSystem.getClip();
    File f = new File(getClass().getResource(/Sonidos/alarma.wav).toURI());
    sonido.open(AudioSystem.getAudioInputStream(f));
    sonido.start();
    If I run the program with netbeans, I play sounds, but which only transfer my .JAR to another computer, does not play ...
    Any ideas?
    Thank's.

    I don't understand, before I had done as you have written me, but did not work, but now it works.
    Problem solved. Thank's.
    Posting the code here:
    InputStream path = getClass().getResourceAsStream("/Sonidos/alarma.wav");
    try
    sonido = AudioSystem.getClip();
    sonido.open(AudioSystem.getAudioInputStream(path));
    sonido.start();
    }catch(Exception fail)
    System.out.println(fail);
    Edited by: 892291 on 19-oct-2011 10:37

  • How to play .wav files

    hi all..
    can i play '.wav' files using other than the AudioClip method?
    how ever i have tried to use the method as below but it still isn't working..please help me out...thanks

    I had same problem,wouldn,t play waves convert to .au using goldwave(freeware... www.goldwave.com)then it will play
    p.

  • Pure Music software player is not working with iTunes 10.4 and Lion 10.7 playing wav. files.

    Pure Music player from Channel D software will not work when playing wav. files after updating to Lion OS. I can open the application as usual but after playing one song it will not advance to the next track either on its own or manually. The scrolling track name goes dim and I cannot get the play button to respond. Has anyone else experienced this problem?
    Ron

    Thanks Limnos, but unfortunately the same error still remains.
    The disk was OK.  Permissions had errors along the lines of groups should be 0, is 80.  I repaired that.  Tried again to open, then reinstalled (new download again), but again the same problem.
    I checked permissions again and some of the 0-80 errors came again, but no clear reason from there I think
    Was also a SUID warning on ARDAgent but I see online that doesn't appear to be something abnormal.
    I tried reloading Lion but the installation came back with software appears to have been tampered with (I think the dmg file is gone as I couldn't find it).  I then went to email to report a problem so I could download again but of course that whole process doesn't work because itunes wont open.
    So Stuck
    if there is anything else I might be missing?

  • Can my muvo tx fm play WAV fil

    my question is my problem and if it can what ccan i be doing wrong? plz im trying to get a song i really like but it wont show up on my mp3

    well...i used to have an MuVo TX FM, and i know everything about it !! but now it's broken.
    Anyway, it can play mp3, wma and wav files encoded only in a unique way !
    but i don't think it can play wav files except in the recordings folder, but i don't really encourage that you play wav files in it !
    you can convert wav to mp3 by any converter you get, or download, but for faster conversion use the creative mediasource, it's in any cd you get with any creative mp3 player !!!!
    tell me if it works.
    cheer to all !!!!

  • Cmus doesn't play .wav files and pulseaudio isn't working properly

    The first problem I noticed was that Chromium was using about 90% of my CPU while I wasn't connected to the internet. So I deleted Chromium because I couldn't fix the problem any other way. After deleting Chromium the CPU problem was fixed but after checking htop again I noticed this message with -11 being in red:
    (http://pastie.org/4234521)
    I started using cmus and noticed that .wav files aren't playing anymore but I am not sure if that has anything to do with this issue. Cmus played .wav files just fine when I had Chromium however. Also, RAM is steadily increasing at about 700 MB which never happened before. I think maybe the problem with cmus and the RAM increase could be caused by pulseaudio not working properly?
    Also, when I run "pulseaudio" in the terminal I get this message in red:
    $ pulseaudio
    E: [pulseaudio] pid.c: Daemon already running.
    E: [pulseaudio] main.c: pa_pid_file_create() failed.
    Last edited by rg_arc (2012-07-10 23:56:41)

    I have stopped using cmus and I am currently using moc(Music On Console). I found out that for some reason pulseaudio is taking up alot of RAM.
    Here is a picture of what is going on in htop:
    (http://i48.tinypic.com/1217mtk.jpg)

  • Can not play wav file on envy touchsmart

    can not play wav files from my emails on my hp envy touchsmart. have tried to download other apps, but nothing is working. help!

    Hi terrylyn11,
    What media player apps have you tried to use to play these files? Are other music file formats playing ok?
    Please click the thumbs up button to say "Thanks!"
    Clicking "Accept as Solution" on a reply that solves your problem makes it easier for other people to find solutions.
    I am an HP employee.

  • [Solved] Thunderbird don't play *.wav files.

    Hi, I'm new on the forum. Thunderbird don't play *.wav file on new mail sound notification. How can I fix it? System is fully updated. Below there is some info:
    [marcin@archlinux ~]$ lspci | grep audio
    00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 50)
    [marcin@archlinux ~]$ lsb_release -a && uname -r
    LSB Version: n/a
    Distributor ID: Arch
    Description: Arch Linux
    Release: n/a
    Codename: n/a
    3.0-ARCH
    [root@archlinux marcin]# pacman -Qs thunderbird
    local/thunderbird 6.0-1
    Standalone Mail/News reader
    local/thunderbird-i18n-pl 6.0-1
    Polish language pack for Thunderbird
    Last edited by Fixxer (2011-08-29 19:16:12)

    Fixxer wrote:
    satanselbow wrote:Have you turned it on - or selected the correct sound file in Thunderbird -> Edit -> Preferences ?
    Yes, file is correct. Audacious plays it.
    oboedad55 wrote:I had to install "esound" form the AUR to get it to work.
    Built a package as the instruction says:
    https://wiki.archlinux.org/index.php/AU … g_packages
    I've installed the package:
    esound-0.2.41-2-i686.pkg.tar.xz
    Daemon was added to /etc/rc.conf and run from console:
    /etc/rc.d/esd start
    Here is my /etc/esd.conf file:
    [esd]
    # autospawning is not recommended, since it can't really be done
    # right. If you want your login session to be using a sound daemon,
    # you should start it from the session controller, not some random
    # app inside.
    auto_spawn=0
    #Linijka poniżej zhaszowana - dodanie opcji z PCLinuxOS 2011
    #spawn_options=-terminate -nobeeps -as 2
    spawn_options=-terminate -nobeeps
    #Linijka poniżej zhaszowana - dodanie opcji z PCLinuxOS 2011
    #spawn_wait_ms=100
    spawn_wait_ms=300
    # default options are used in spawned and non-spawned mode
    default_options=-as 1
    oboedad55
    Could you show your file /etc/esd.conf?
    [esd]
    # autospawning is not recommended, since it can't really be done
    # right. If you want your login session to be using a sound daemon,
    # you should start it from the session controller, not some random
    # app inside.
    auto_spawn=0
    spawn_options=-terminate -nobeeps -as 2
    spawn_wait_ms=100
    # default options are used in spawned and non-spawned mode
    default_options=
    FWIW, I'm using pulseaudio and I've done nothing else besides installing esound from the AUR.

  • I thought the Style 100 could play .wav files !!

    which is why I bought one!
    !!! Just deli'vered. I've tried all the suggestions in the forum messages. None work.
    I have used drag and drop into the music folder and the recordings folder. The files don't show up in the Zen folders although they are visible when I explore the Zen like a thumb dri've. What's up!!!
    Your specifications say it plays .wav files thiis is apparently incorrect information. Creative Centrale does not recognize .wav files either.
    Are you going to change the spec or provide support for playing .wav *as advertised?*
    Thanks

    Hi,
    There are many different kinds of compression formats for wav files. The ZEN Style 00 supports IMA-ADPCM compression. Please check the compression format of your wav files.

  • How to Play .wav files in Safari?

    Hi:
    I need a little help.
    I would like Safari to play wav files instead of downloading those file to my Downloads folder. Can this be done.
    Thanks,
    -AstraPoint

    Greetings,
    I would like Safari to play wav files instead of downloading those file to my Downloads folder.
    Can this be done?
    Maybe. First, what is the URL for a .wav file you're trying to play in Safari? I want to test this before I say whether or not it will work.

Maybe you are looking for

  • Disengaging Time Machine and external HD backup

    I recently transferred my files and applications to a new computer from my iMac5 by using the Firewire cable that went from my iMac5 to the external HD as the conduit between the two computers and now, whenever I turn on the iMac5 both Super Duper an

  • Profit center group wise balance sheet and trading account report req

    Hi. We are using Profit ceter accounting for one of our clients.its ECC 6.0 therefore New GL is activated. FSV is not configured. Now I want to get the reports - Profit center group wise balance sheet and trading a/c. Can anyone help me in this regar

  • To work with Pro Tools 9 . Wicht Mac mini should i use?

    To work with Pro Tools 9 . With Mac mini should i use. Intel Core i7 2.0GHz Quad-Core Processor or Intel Core i7 2.7GHz Dual-Core Processor.

  • AP 2602 Problem with Code 7.4.100.60

    Hi at all, I have problems with the code 7.4.100.60 and 2602 AP´s. The AP´s stops delivering services and no client can connected to them. After a reboot all problems are solved, but this problem comes back every ten days. In the logs are only shown

  • Import Integration Interface

    Hi, I have requirement to load data for the combination of Item, Organization, Qty, Date. For e.g. ABC Org1 100 01-01-2009 ABC Org1 200 01-04-2009 Here the Qty and Date are for each quarter.(My lowest time bucket is Week). 1. How can I load Quarterly