Don't know how to convert media format! Urgent!

Hey,
Here is my code to convert between format
try
mainProcessor = Manager.createProcessor(new
MediaLocator("file:///c:\\j.wav"));
mainProcessor.configure();
mainProcessor.realize();
}catch (Exception e) {e.printStackTrace();}
DataSink sink;
MediaLocator dest = new MediaLocator
("file:///c:\\newfile.wav");
try{
sink = Manager.createDataSink
(mainProcessor.getDataOutput(), dest);
sink.open();
sink.start();
mainProcessor.start();
} catch (Exception err) { err.printStackTrace();}
I get a problem when I create the datasink object, the program give me such exception:
javax.media.NoDataSinkException: Cannot find a DataSink for: com.sun.media.multiplexer.RawBufferMux$RawBufferDataSource@1a75a2
Can anyone help me to correct the code, or tell me where can I get the code that can convert the format.
Thanks!
Nachi

Try this:
http://java.sun.com/products/java-media/jmf/2.1.1/solutions/Transcode.html

Similar Messages

  • I have a MacBook Pro, I want to copy Itunes files to an SD card to play in my car, the SD Card doesn't appear in Itunes when I insert it, and I don't know how to convert the files to the correct format, can anyone help?

    I have a MacBook Pro, I want to copy Itunes files to an SD card to play in my car, the SD Card doesn't appear in Itunes when I insert it, and I don't know how to convert the files to the correct format, can anyone help?
    Thank you

    So it seems from reading the COMMAND manual that my first issue is that I used a 16GB SD card, and the manual says it will only recogize up to a 2GB SD card. I did use my MB Air's SD card slot and crated a folder and dragged the music files to it, then to the card. So I am going to get a 2GB card and try that next. Otherwise just stick with the iPOD connected. At least that is 8GB

  • How do I open my H&R Block tax files, transferred to my Mac Pro from my PC? I guess they're in Windows format,but I don't know how to convert.

    How do I open my H&R Block tax files, transferred to my Mac Pro from my PC? I guess they're in Windows format,but I don't know how to convert.
    CaptainTom1

    There should be an H&R block format.  Windows or no.
    Just like JPEG or MP3 is a format readable by Mac or PC.
    The main cause of PC vsWindows files issues is in "text only" files that require "line terminators".  Windows line terminaotrs are <CR><LF>, UNIX is <LF>, Mac can be <CR> or a <LF>.  The text editors that are PC-files-only cannot properly read text lines terminated with <LF> only.

  • How to convert media format?

    Hi All:
    Does any one know how to convert the media format in JMF?
    Is there any APIs or Demo about how to convert mp3,avi to the uncompressed wav format?
    In windows platform, we can use DirectShow APIs. It's a component of the DirectX SDK. DirectX can help us to decompress the video or audio from compressed format to uncompressed format
    (RGB for video, PCM for audio) and it supports streaming also.
    Is there any familar APIs in JMF or Opensource for Mac?
    Your feedbacks are highly appreciated!
    Best Regards,
    Tango

    Hi,
    You can set the codec chain in the Processor (during configured Stage) object which allow you to define your desired Codec, Multiplexer, etc.
    For more information, you can look at the JMF API Guide. Since I know that JMF doesn't come with mp3 codec, I think you have to download a codec pack called "ffmpeg" etc which add more Codec to JMF.
    About the Mac, I am sorry that I really don't know.
    Best Regards
    Ferdinand Ng

  • I have a problem i don´t know how can safe a format with adobe reader 8.1.3

    I have a format in adobe reader 8.1.3, but when I want to safe the format, ADOBE say: "you don´t safe dats in this format, if you want print this format.
    thanks for your cooperations, so what I want is to safe my changes without print.

    Unless the file has been enabled using Adobe Acrobat, Reader won't be able to save any changes. You can only fill it out and print it.

  • I'm trying to type wedding invitation envelopes which are 5x7 and I don't know how to create the format.  In the pages area, the available templates are all standard envelope sizes.  How do I create the 5x7 format template

    I'm trying to print 5X& envelopes.  In pages, the templates are all standard sized.  How do I create a 5x7 envelope template so I can merge my addresses?

    I presume you are using the Pages application, is that correct?
    So start off by launching Pages and choose one of the regular envelope styles. Traditional works well for me.
    Next go to the File menu and select Page setup. From the menu that says Paper Size select Manage Custom Sizes. In the resulting dialog, there should be a button on the left labeled "+". Click it. In the Paper Size area, select Width 5 in and Height 7 in. Name the size (where it says "untitled" something descriptive like "5 x 7 envelope". Click the OK button. The Paper Size menu here should now say the description you gave it. Click OK again. Your work area should now be a 5 x 7 envelope.
    Best of luck.
    PS If you are using Word or some other program, the process is probably the same or very similar.

  • Anyone know how to convert old audio files.

    I have some old audio files going back to OS 7 or OS 9.   There is no file extension.
    Kind:  Unix Executable File
    How can I convert these into something OS X will play.

    That executable file type is just OSX's way of saying it doesn't know what it is.  Unfortunately during the OS7-OS9 days Apple dropped using file extensions. As I transitioned from DOS to Mac in the late 1980s I kept on adding them to all my files because I used several computers and would take a floppy from one to the other and needed to know what kind of files I had on there.  I still have sounds from OS7 days and I know what they are because I added extensions 24 years ago.
    You might see if you can find a resource checking utility.  Resources are hidden file information about creator and type in older files.  I think I have one on this computer but I am running a G4 OSX 10.4.11 and it is Classic capable so I have all kinds of old software here that may not run on a newer computer.
    IT is conceivable VLC might play the file.  It can do all kinds of things but I don't know how good its legacy format support is.

  • Does anyone know how to convert the .deploy file to ant script

    hi guys ,
    I am doing some work relate to J2EE/ADF application deployment. I need ant script to compile/ear and remote deploy.
    Does anyone know how to generate the ant script based on the .deploy file (eg.ejb.deploy and webservice.deploy ).
    although I can generate the ant script with creating buildfile from project ,but all the ant tasks are just compile ,no other deploy task...
    I much appreciate if anyone can give me a clue
    Kevin

    I don't know how to convert a .deploy file but you may use below commands to remotely deploy an ear file
    To compile
    c:\Oracle\Middleware\jdeveloper\jdev\bin\ojdeploy -profile EarProfile -workspace MyApp\MyApp.jws
    To Deploy
    c:\Oracle\Middleware\wlserver_10.3\server\bin\setWLSEnv.cmd
    java weblogic.Deployer -adminurl http://localhost:7101 -user weblogic -password weblogic1 -deploy -upload MyApp\deploy\EarProfile.earMore Details
    http://edocs.bea.com/wls/docs100/deployment/understanding.html#wp1057841

  • I know that how to convert any documents to pdf file, but don't know how to get barcode on it. I am using windows 8.1. and want to see barcode on my documents before the print. Please help.

    I know that how to convert any documents to pdf file, but don't know how to get barcode on it. I am using windows 8.1. and want to see barcode on my documents before the print. Please help.

    Hi Frank ,
    Please refer to the following link and see if this helps.
    https://helpx.adobe.com/acrobat/kb/error-organizer-database-damaged-reset-1.html
    Regards
    Sukrit Dhingra

  • I have just bought a macbook pro and i want to use an ext hard drive with it which i previously used on a windows computer, but when i plug it in it doesn't show up on my macbook pro, I've wiped it and just need to format it but don't know how, help

    i have just bought a macbook pro and i want to use an ext hard drive with it which i previously used on a windows computer, but when i plug it in it doesn't show up on my macbook pro, I've wiped it and just need to format it but don't know how, any help would be much appreciated

    Try the other USB port. If it still doesn't show up in Disk Utility then there may be something wrong with your Mac. Try something else in each USB port and see if it is seen. If the other thing, like a USB thumb drive, does show up in disk utiltiy then the USB ports are fine.
    Power down the system and restart with the drive connected, go to DU and see it it is seen.

  • I'm trying to update my IPAD 2 to iOs 7.1.2 but don't have enough memory to do so.  In I-Tunes I'm told to change my media sync options to gain more memory, but I don't know how.  Can you help?

    I'm trying to update my IPAD 2 to iOS 7.1.2 but don't have enough memory to do so.  In I-Tunes I'm told to change my media sync options to gain more memory, but I don't know how.  Can you help?

    Turn off the check mark to sync your music and also the check mark for the video. Sync the device. This will remove the items from you iPad but still keep them on your computer. Install IOS 7.1.2. Then turn on the check marks for your music and videos and resync the device.

  • I can't sync my iPad to the iTunes it's give me an unknown error  message 0xe8000012 I don't know how to fix it and where is the problem could be need format or the problem is in the charging port please can any one help me

    I can't sync my iPad to the iTunes it's give me an unknown error  message 0xe8000012 I don't know how to fix it and where is the problem could be need format or the problem is in the charging port please can any one help me

    Unknown Error containing "0xE" when restoring
    To resolve this issue, follow the steps in iPhone, iPad, iPod touch: Unknown error containing '0xE' when connecting. If you have a Windows computer with an Intel® 5 series/3400 series chipset, you may need updates for your chipset drivers. See iTunes for Windows: Issues syncing iOS devices with P55 and related Intel Chipsets for more information.
    From Here  >  http://support.apple.com/kb/TS3694

  • I have formatted my computer and re installed itunes. However, I cannot see my purchased musics/movies/books on my library anymore. I can see my purchased registration on my account, but I don't know how can I do to download it back to my pc. Any ideas?

    I have formatted my computer and re installed itunes. However, I cannot see my purchased musics/movies/books on my library anymore. I can see my purchased registration on my account, but I don't know how I can do to download it back to my pc. Any ideas?
    Thanks a lot

    Go to the iTunes Store and select "Purchased" from the Quick Links side bar on the right. Go through all the tabs to download again for free

  • When I use Photoshop CS 6 to edit video, I don't know how to change video speed after I converted the clip to smart object?

    When I use Photoshop CS 6 to edit video, I don't know how to change video speed after I converted the clip to smart object? The clip color turns purple and it only allows me to add motion but not change the clip duration and speed anymore.

    Thanks for the reply and as a work around method I used the Photoshop to do all the adjustments then export the video to iMovie to finish the final cut. I also have a problem to paint or clone on a blank video layer created in Photoshop. It tells me the time is beyond the target frame time, I don't understand the message. Can you explain to me what did I do wrong? Thanks a lot!
    John Wang
    801-3618742
    [email protected] 
    http://johnwanggallery.shutterfly.com  

  • I converted a pdf file to excel and now I have columns, lots of them, that i don't know how to get rid of?

    I converted a pdf file to excel and now I have columns, lots of them, that i don't know how to get rid of?

    Hi Carl,
    Can you attach a snapshot of the application window?
    I am unable to interpret your issue clearly, Please elaborate your issue so that i can assist you better.
    You can easily select those columns in excel program and then delete them...What's the challenge? Do you get any error?
    Regards,
    Rahul

Maybe you are looking for