Compressing the wav file  with JMF

Hi Guys,
Any one of you know about how to compress a wav file with jmf.Please its very urgent.
Thnaks
Jast

Specify a compressed encoding for the audio output format. You'll have to enumerated the supported formats on the output track to finds out what's available to you. In Windows, JMF should be able to use the available system codecs. First try transcoding a wave file in JMStudio to see what works.

Similar Messages

  • Play sdp file with JMF

    Hi,
    I have a Darwin Streaming Server(DSS) running on a machine, that reflects several broadcasts from other machines (I'm broadcasting to the DSS with JMF).
    I can see all the videos and audio without any problem with Quick Time, but I can't find a way to play the sdp files with jmf. I've searched the web for jmf and sdp, and there isn't much information, i've also tried to play with JMStudio..no luck. In the JMF solution there aren't any samples for SDP files....
    If I can't find a way to do it, I'll use Quick Qime 4 Java, the only problem is that there isn't a linux implementation :(
    Thanks in advance.
    Best regards,
    ANeto

    Hi,
    I have read all the mails on the JMF interest group regarding the Broadcaster and DSS.
    Well i too am trying to do a similar application. This is an Application
    Casting program basically to share my desktop with the other person sitting
    across the network using my client. And in order to multicast this, i am
    looking at using Darwin Streamng Server.
    The whole idea here is that i break the desktop image up into frames and
    then compress them and then send it over, protocol used here is TCP/RTP/UDP.
    I am trying to hit this stream of packets to DSS so that it can be accessed
    else where over the internet. I'm trying to under stand the basic
    authentication mechanism DSS uses, so that i can create the .sdp file and
    transfer it over to the DSS, which can further be accessed by any client
    that can understands sdp.
    As i read in the mail some of you were able to create the .sdp file with your custom built boradcaster and send it to DSS if i am not wrong.
    I have tried this with Mpegable Broad caster as you said.
    Now the problem i had was to create .sdp file with my application and push it to the DSS.
    So have you made some kind of a documentation or can you give me an idea as
    to how i can go about this. Or it will be even better if you can share the code with me.

  • Play audio file with jmf on linux?

    a simple audio player as flow:
    import javax.media.*;
    import java.io.File;
    import java.net.URL;
    public class SimpleAudioPlayer {
        private Player audioPlayer = null;
        public SimpleAudioPlayer(URL url) throws Exception {
            audioPlayer = Manager.createRealizedPlayer(url);
        public SimpleAudioPlayer(File file) throws Exception {
            this(file.toURL());
        public void play() {
            audioPlayer.start();
        public void stop() {
            audioPlayer.close();
        public static void main(String[] args) throws Exception {
            File file = new File("/usr/local/download/1.wav");
            SimpleAudioPlayer sap = new SimpleAudioPlayer(file);
            sap.play();
    }when run the program
    javac -cp jmf.jar SimpleAudioPlayer.java
    java -cp .:jmf.jar SimpleAudioPlayer
    the output as flow:
    Unable to handle format: ima4/ms, 8000.0 Hz, 4-bit, Mono, Unsigned, 4027.0 frame rate, FrameSize=4096 bits
    Failed to prefetch: com.sun.media.PlaybackEngine@defa1a
    Error: Unable to prefetch com.sun.media.PlaybackEngine@defa1a
    How can I play wav file with jmf on linux?(OS is debian5 and jmf cross-platform pack)

    thanks for your reply.
    I tried to replace the wav file "1.wav" with the linear encoded WAV download from pscode.org,and run the code again,but
    BasicTrackControl:prefetchTrack():96 1 bm = com.sun.media.BasicRendererModule@1186fab
    BasicRendererModule.doPrefetch:155 Render : true
    Render buffer size: 32768
    BasicRenderModule.doPrefetch:159
    javax.media.ResourceUnavailableException: Cannot intialize audio device for playback
    at com.sun.media.renderer.audio.JavaSoundRenderer.open(JavaSoundRenderer.java:93)
    at com.sun.media.BasicRendererModule.doPrefetch(BasicRendererModule.java:158)
    at com.sun.media.BasicTrackControl.prefetchTrack(BasicTrackControl.java:99)
    at com.sun.media.PlaybackEngine.doPrefetch1(PlaybackEngine.java:682)
    at com.sun.media.PlaybackEngine.doPrefetch(PlaybackEngine.java:658)
    at com.sun.media.PrefetchWorkThread.process(BasicController.java:1430)
    !!!!!!!§§§§§§§§§§§ BasicTrackControl:prefetchTrack():96
    at com.sun.media.StateTransitionWorkThread.run(BasicController.java:1339)
    Unable to handle format: LINEAR, 16000.0 Hz, 16-bit, Mono, LittleEndian, Signed, 32000.0 frame rate, FrameSize=16 bits
    Failed to prefetch: com.sun.media.PlaybackEngine@26e431
    Error: Unable to prefetch com.sun.media.PlaybackEngine@26e431

  • Want to replace Wav Files with Apple Lossless in the same folder...Scripts?

    Hello!
    I have about 4,000 wav files (wow) that I digitized from Vinyl. I organize my media folder myself (I have the organize option unchecked in preferences) and most of the songs are not properly tagged. I would love to convert the wav files to apple lossless and have Itunes save the file in the same folder from where it originated. I havent found a way to do this yet. Its weird to me that I can select a song in a playlist and hit "Show in Finder" and it knows exactly where it is yet when I convert files to apple lossless they end up in the "unknown artist-unknown album" folder. Anyone have any ideas or is there any scripts that can do this for me ? thanks so much!!
    I had found one script that deletes the original wav files but still the new apple lossless are still put in the unknown album folder.....
    Zeke

    When iTunes converts a file, it does not allow you to direct the location of the output file, but rather places it according to the Artist/Album tags, which in your case are unknown.
    Almost every other conversion tool allows you to direct the location of the output. There are not a huge choice that run on the Mac and support Apple Lossless, but a good one is Max.

  • Why is the .wav file removed from text messages?

    Why is my IPhone removing the .wav file that is being sent via text message to my phone? If I send it via an email it comes in but not via a text message sent to my phone number.

    I see that there have been 212 views but no replies. I'd love to know if anyone has any thoughts. I ahve voicemails from an outside company forwarded to my IPhone and they come in MUCH quicker via text format then with email. They would also be easier to open. If this is simply not availabel ok but I've seen some other Google results that seem to imply that attached files are available??
    Is it because the files are bigger then a standard text message that is gets removed.
    Any imput would be appreciated.
    Thanks

  • Exporting WAV Files with looping

    Hi
    I have a collection of sound effects that I've prepared in Logic. I've been exporting them to WAV files for use by another application. I do this with File->Export->Region as Audio File. This is all good.
    The prolem I have is that I'd like some of them to loop. So I've been using a PC and Sound Forge to add the WAV sustain information to the WAV file. I'd really like to keep my workflow on the Mac and in Logic.
    So, my question: is there a Mac app that can add the WAV sustain or can Logic export it? (I've tried Sound Studio and Audacity already with no success).
    cheers
    peter

    Even though Logic has a 'write loop to file' function, I often find that the loop info either doesn't stick, or is invisible to other apps.
    Loops added in DSPQuattro seem to always work, and probably with Peak too (I don't have Peak so I can't check.)
    But you can get SoundHack for free and that will also write readable loop points to files.
    No Logic user should be without it.
    It does so many useful things you can't usually do in DAW apps like Logic.
    Get it here:
    http://www.soundhack.com/freeware.php

  • How to read .wav files with DIADEM

    I have done a acoustic analysis with a microphone, and I have save the different Files with .wav format.
    I need to read these waveform files with DIADEM.
    Diadem recognize the different files however it returns the message "Diadem d'ont load the files ---.wav"

    Hello Jean-Julien!
    Get and install the Audio Data PlugIn. You can get ist here: http://zone.ni.com/devzone/cda/epd/p/id/44
    Matthias
    Matthias Alleweldt
    Project Engineer / Projektingenieur
    Twigeater?  

  • ADPCM and GSM to wav file with RAWCONVERTER

    Hi, is it possible to codify ADPCM and GSM in a .wav file with the RawAudioDataConverter(jsresources) or do they need a targetEncoding?. I have recorded GSM data in a wav file but I can't decode them.
    Example of my GSM coder and decoder
    AudioInputStream ais = null;
              AudioFormat.Encoding targetEncoding = null;
              AudioInputStream audioInputStream;
              File encodedFile = null;
    encodedFile = new File("gsm" + audioFile.getName());
                   try
                        ais = AudioSystem.getAudioInputStream(audioFile);
                   } catch (Exception e)
                        e.printStackTrace();
                   if (ais == null)
                        System.out.println("No se puede abrir el archivo");
                   AudioFormat sourceFormat = ais.getFormat();
                   if (!sourceFormat.getEncoding().equals(
                             AudioFormat.Encoding.PCM_SIGNED)
                             || sourceFormat.getSampleRate() != 8000.0F
                             || sourceFormat.getSampleSizeInBits() != 16
                             || sourceFormat.getChannels() != 1)
                        System.out
                                  .println("The format of the input data has to be PCM 8 kHz 16 bit mono");
                        System.exit(1);
                   AudioFormat.Encoding targetEncod = new AudioFormat.Encoding(
                             "GSM0610");
                   AudioInputStream gsmAIS = AudioSystem.getAudioInputStream(
                             targetEncod, ais);
                   AudioFileFormat.Type fileType = new AudioFileFormat.Type("GSM",
                             ".gsm");
                   int nWrittenFrames = 0;
                   try
                        nWrittenFrames = AudioSystem.write(gsmAIS, fileType,
                                  encodedFile);
                   } catch (IOException e)
                        e.printStackTrace();
                   }Example of my GSM decoder:
    private File decodificar(File FileIn)
              AudioInputStream ais = null;
              File in = new File(archivoCodificado.getName());
              File FileOut = new File("decod" + in.getName());
              try
                   ais = AudioSystem.getAudioInputStream(in);
              } catch (Exception e)
                   e.printStackTrace();
              if (ais == null)
                   System.out.println("cannot open input file");
              AudioFormat.Encoding targetEncoding = AudioFormat.Encoding.PCM_SIGNED;
              AudioInputStream pcmAIS = AudioSystem.getAudioInputStream(
                        targetEncoding, ais);
              AudioFileFormat.Type fileType = AudioFileFormat.Type.WAVE;
              int nWrittenBytes = 0;
              try
                   nWrittenBytes = AudioSystem.write(pcmAIS, fileType, FileOut);
                   System.out.println("AudioDecoder: written (bytes): "
                             + nWrittenBytes);
              } catch (IOException e)
                   e.printStackTrace();
              return FileOut;
         }I think that it might be well recorded but it doesn't works, giving and exception. I think that its all right because the number of byts in my GSM recorded file is about the tenth part of a PCM lineal file, and when I try to reproduce it with winamp for example it detects a sound track but it can't calculate the length of the GSM file(wav extension I mean)

    QuickTime Player X does not export WAV. You could use QuickTime Player 7, which if it's not in your Utilities folder already can be installed from the Optional Installs on the Snow Leopard install disk, but you'll need to purchase a QuickTime Pro key.
    Regards.

  • Importing wav files with dead space?

    I'm curious if anyone else has experienced slow loading times/overview calculations when importing wav files with lots of dead space into Logic?
    Working on vocal comps from a Pro Tools session. Logic has no problem importing full takes (24-bit, 44kHz wav files that basically start at the beginning of the song). But alternate takes that might have complete silence until the 3rd chorus, for example, take forever to load. 10+ minutes in some cases.
    If anyone can shed some light on this or share a similar experience, I'd appreciate it.
    Tech details, if it helps:  Macbook Pro 2.53 GHz Intel Core Duo, 4GB RAM, Lion 10.7.2, Logic Pro 9.1.6

    Well, iTunes has no ability to undo edits, so the problem may lie elsewhere. Please try the following extra-extra-careful procedure:
    - Edit the file and save it.
    - Exit the editor.
    - Make sure you know filename/location of the edited file, and that you are not confusing it with some unedited copy of the same song.
    - Play the edited file in some other player than iTunes and make sure the edits are as you wished.
    - Now, add the file to your iTunes library.
    Pls try this and let us know.
      Windows XP  

  • Export wav file with matching dropframe timecode

    I'm sure I'm just missing something simple, but I need to export a small corrected part of a finished as a WAV file with timecode that matches the project. Being for broadcast in the US, the project is in dropframe timecode. While I'm working in STP, I see drop frame time code. But when I export, I get non-drop timecode that doesn't match the orginal code. This is a five second fix for a one hour DVD and I hate to have to send the authorers an entire new sound track when they only need the five seconds with matching timecode.
    How can I export and make this work. Without having to get ProTools, that is!

    If you're talking about timecode stamping in a WAV file exported from STP . . . well it doesn't seem to work for me no matter what timecode rate I use. 29DF, 29, 24, 23. I suspect you need to either give them the timecode location manually or export the whole thing, and let them just punch in the section they need.

  • ITUnes converted all the wav files on my computer to m4a. How do I recover them?

    iTunes took it upon itself to convert all of the .wav music files on my computer to .m4a, a much lower-quality format. How can I get the .wav files back?

    Hi someonefromminnesota,
    Depending on how the tracks were imported/converted, the original .wav files may still be located in their original location, and an .m4a copy may have been added to the iTunes Library. You may find the following article helpful:
    iTunes 11 for Windows: Import music and video already on your computer
    http://support.apple.com/kb/PH12493
    iTunes: How to convert a song to a different file format
    http://support.apple.com/kb/HT1550
    Regards,
    - Brenden

  • Where does Lightroom put HDR in the grid view? Is there anyway to have Lightroom stack the HDR file with the source files?

    I can't decipher where (and why) the program is putting the HDR image in the grid. I stack all of my HDR source images so they are easy to track and manage. Other apps/plugins allow you to stack resulting images with their source image. That would be great if there's a way to set that in LR preferences.

    Thanks, but this doesn't really answer the question about stacking the HDR file with the source files. Yes, it does put the file in the same folder, however many of my folders have 100s of images (that often look similar) and as far as I can tell, LR places them randomly in the sort order. It doesn't appear to put them at the beginning or end of the sort (usually by date), but somewhere randomly in the middle. Even if it could be made clear what method it is using to sort them, that would help locate one file among hundreds.
    Ideally, however it should allow you to stack with the stacked source files. Is there anyway to do this? If not, is it a feature that could be requested?

  • No printing :I can't print anymore, printing the same file with another programs is ok, printing form LR: Preparing  and Printing indicatorbar in the left hand upper corner are running, but no output at all rom my printer. I have been printing before. I u

    No printing :I can't print anymore, printing the same file with another program is ok, printing form LR (in the same system and printer of course :-) ): Preparing  and Printing indicatorbar in the left hand upper corner are running and completing, but no output at all to my printer. I have been printing before. Next I upgraded to LR5.7.1 but the problem stays. Perhaps some adjustment is changed by me unintentionally, but I have no idea. Does anybody know what to check? Printing to file is also strange,the canvas only seems to accept A4, and crops any image relative to that size, so a 10x15 cm print on 10 x 15 cm paper is cropped to 10x15/2. Anybody any idea? (system win 8.1 64, printer HP B8550)

    I accidentally solved my mystery.  For some reason it was set to "print to file".  I changed it to "printer" and now I am able to print.

  • How to fix the .pdf file with error "invalid annotation object"

    how to fix the .pdf file with error "invalid annotation object"

    As long as the PDF opens, then just try saving it to a new file name. There may be a preflight script that would help troubleshoot the issue.

  • Need to generate the excel file with diffrent sheets using utl_file package

    Hi,
    Sorry for previous message in which I had missed the usage of " UTL_FILE " package
    I need to generate the excel file with diffrent sheets . Currently I am generating the data in three diffrent excel files using
    " UTL_File " package and my requirement is to generate this in a single excel file with diffrent sheets.
    Please help on this
    Thanks & Regards,
    Krishna Vyavahare

    Hello 10866107,
    at Re: How to save a query result and export it to, say excell? you can find links to different solutions. At least the packages behind second and fourth link support more than one worksheet.
    Regards
    Marcus

Maybe you are looking for

  • Jabber Client for CME license

    i have CME 2921 ISR router and i need to implement cisco jabber client for 50 user is this needs a license or not if yes, please provide me how to orser it and what is its part number thank you very much

  • N95 conection problem in Australia

    G'Day People. I just purchased a used N95-1 and have no network conection. I live in rural QLD and I was wondering if this phone is Telstra "Bluetick" compatable?? Any advice would be helpful. I have been told by some friends it should work, so I'm n

  • Attach two Cinema Displays to MBP?

    can i attach two 2004 Apple Cinema Displays (23"   20") to my 15" 2011 MBP? I see some community references to external devices (Matrox or EVGA). Is there no way to do it using just some combination of DVI / miniDV / USB cables adapters? Thanks!

  • Write to excel

    i created a VI that would open excel, write to a sheet then save as original_timestamp (this way i had a clean template each time), the problem i ran into was i opened the original each time so everytime i wrote to new sheet only the most recent shee

  • IPhone 5 unable to sync with iTunes Macbook 2007

    I have the Macbook 2007 laptop, and I am unable to update my itunes because i am not running Mac OS C 7 or higher. I am not going to get a newer laptop because my new iphone will not sync with my old data, and I have photos that I do not want to lose