Is it possible in java to extract audio from video file and ...

Hi,
Is there any API in java for creating DVD video from Normal TV and extract audio from video file and convert MP3 to WMA file. What about java Media Framework and Java 3D API?
If it is notpossible in java which will be the next option. Vc++?
Please help me.
Thanking in advance.
From,
Vinod A

lol
If all you want is to create a backup of some file you can do:public class Foo
    public static void main(String[] args) {
        Foo f = new Foo();
        f.createBackup("something.xls");
    public void createBackup(String inFile) {
        FileInputStream in = null;
        FileOutputStream out = null;
        try {
            in = new FileInputStream(inFile);
            out = new FileOutputStream(inFile + ".bak");
            int read;
            while ((read = in.read()) > -1) {
                out.write(read);
            out.flush();
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            if (in != null) {
                try {
                    in.close();
                } catch (IOException e) {
                    e.printStackTrace();
            if (out != null) {
                try {
                    out.close();
                } catch (IOException e) {
                    e.printStackTrace();
}

Similar Messages

  • Extracting audio from video file to edit...

    i know in imovie it's easy you just select the video then go up top and select the extract audio tab...
    but how can you extract the audio from a video file in final cut so are able to edit the audio and video files separately from one another WITHIN final cut??

    no output volume? ... you need to check your setting under the View menu > Audio Playback ... where are you sending the audio? maybe you're routing it to follow the video out through firewire to your DV device, in which case you need to turn up the speakers on your DV monitoring equipment
    ...or is this a muxed MPEG file? if so you need to demux it before bringing it into FCP, or better still, convert it to a more appropriate edit codec (you can use the excellent and free MPEG Streamclip application to do this)

  • Extracted audio from video file is white noise

    Hi, I'm working on an animated series as a sound designer (my first gig as such). I'm getting .mov files from the director with some audio already added. In some cases, he just wants me to add tracks to what's already there and export it containing my audio and his.
    The video looks OK (though the playback is pretty choppy, but that might be system limitations) but the extracted audio that shows up on the separate audio track is very loud white noise. There appears to be breaks where there's silence on the track but the audio is completely fuzzed-out and unintelligible.
    The only thing I can think of is I'm using XP, he's on OS X. However, we both have current versions of QuickTime so why would it matter.
    Any advice or insight would be appreciated. Thanks!

    Hi grilch,
    I'd definitely need to know the format of the audio stream. If you play the MOV file directly in Quicktime, does the audio play properly?
    Thanks,
    Durin

  • Extracting Audio from Video

    Hi,
    I was wondering if there is a way to get a Java program to read a video file, and extract its audio component into a separate audio file.
    I tried searching around for such capabilities in the java.sound and javax.media packages, but have had no luck so far.
    I was able to find a code which converts .au files to .aiff, but this is restricted to audio files and is therefore not scalable for video formats.
    Any help would be greatly appreciated :-)

    I was wondering if there is a way to get a Java program to read a video file, and extract its audio component into a separate audio file.I have not done it, but I believe it is possible.
    To achieve this (obviously you would have to use a Processor for this), first you have get all the tracks from the video being played, then you would have to check the format of that track, if it happens to be some audio format enable it, otherwise disable the track.
    I have edited the code from AVTransmit2 (which uses this for setting the format of tracks for transmission):
    TrackControl [] tracks = processor.getTrackControls();
    for (int i = 0; i < tracks.length; i++) {
          Format format = tracks.getFormat();
    if (format instanceof AudioFormat) {
    tracks[i].setEnabled(true);
    } else
    tracks[i].setEnabled(false);
    Thanks!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Extracting audio from video clip to use as narration?

    Hi there,
    I have a video clip in which I want to take the audio of actor speaking and put it onto another video.
    I.e. he is speaking about walking in the park. I want to take him speaking about walking in the park and put it onto the clip where he is actually walking in the park.
    How do I do this in premiere elements 10?

    Hi Bill,
    Thanks for the quick response. I guess my question now is how would I do those two things?
    In terms of exporting the audio, where can I find that option when I'm on timeline?
    What do you mean by "Alt-click" and what is a "muxed file"?
    Thanks again,
    Mallory
    Date: Fri, 13 Jan 2012 19:01:51 -0700
    From: [email protected]
    To: [email protected]
    Subject: Extracting audio from video clip to use as narration?
        Re: Extracting audio from video clip to use as narration?
        created by Bill Hunt in Premiere Elements - View the full discussion
    Welcome to the forum. There are several ways to accomplish this, and your choice might well rest on how you like to work, and what you are doing, such as Deleteing Video. First, you could Export/Share just the Audio as a PCM/WAV @ 48KHz 16-bit, from your Timeline, and Import that into a New Project, where the Audio WAV file would be used. OTOH, you could Atl-click on the Video portion of the muxed file, and Delete the Video, leaving only the Audio portion. Good luck, Hunt
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4139273#4139273
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4139273#4139273. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Premiere Elements by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Hi, extract data from xml file and insert into another exiting xml file

    i am searching code to extract data from xml file and insert into another exiting xml file by a java program. I understood it is easy to extract data from a xml file, and how ever without creating another xml file. We want to insert the extracted data into another exiting xml file. Suggestions?
    1st xml file which has two lines(text1.xml)
    <?xml version="1.0" encoding="iso-8859-1"?>
    <xs:PrintDataRequest xmlns:xs="http://com.unisys.com/Anid"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://com.unisys.com/Anid file:ANIDWS.xsd">
    <xs:Person>
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://com.unisys.com/Anid file:ANIDWS.xsd">
    These two lines has to be inserted in the existing another xml(text 2.xml) file(at line 3 and 4)
    Regards,
    bubbly

    Jadz_Core wrote:
    RandomAccessFile? If you know where you want to insert it.Are you sure about this? If using this, the receiving file would have to have bytes inserted that exactly match the number of bytes replaced. I'm thinking that you'll likely have to stream through the second XML with a SAX parser and copy information (or insert new information) as you stream with an XML writer of some sort.

  • Extract data from xml file and insert into another exiting xml fil

    hello,
    i am searching extract data from xml file and insert into another exiting xml file by a java program. I understood it is easy to extract data from a xml file, and how ever without creating another xml file. We want to insert the extracted data into another exiting xml file. Suggestions?
    Regards,
    Zhuozhi

    If the files are small, you can load the target file in a DOM document, insert the data from the source file and persist the DOM.
    If the files are large, you probably want to use a StAX or SAX.

  • Extracting Audio from Video With QuickTime Pro?

    I read on another discussion board that QuickTime Pro could record/extract audio only from a video file. So I purchased the QuickTime Pro upgrade today (for Windows XP) but can't seem to find out how to do it, assumimg that post was correct and it can be done at all.
    The Nero video editing software I use can get the video file in MPEG-2, MPEG-1, AVI and other formats. I tried MPEG-1, but even the conversion to QuickTime's .mov format came up with no audio at all. I noticed a post here saying that was a limitation of the software. I could purchase the QuickTime MPEG-2 add-on but that seems to only allow playback and doesn't look like it will help any.
    Another post on the other discussion board said that virtualdub.org has a software program that could do this extraction, but silly me I went with Apple and was delighted to read about the no refund policy just now. :-/
    I'm guessing another possible approach is some kind of hardware solution -- a recording device of some sort?

    In order to extract a track (video or audio) the file first must have those as independent tracks.
    MPEG 1 and 2 are "muxed" (video and audio in the same track) so QuickTime Pro has nothing to extract.
    MPEG Streamclip (free) can convert .mpg and .mpeg files to QuickTime formats.
    If you export from Nero as .avi you can also use QuickTime Pro to extract tracks as it will have at least two.
    MPEG 1 and 2 are playback formats and are not intended to be edited.

  • Extracting Audio from M2P files

    I did a forum search and only came across one other post for this.
    The QT Player will recognize the M2P file and place the right icon on it.. but won't open the file unless it is re-named to a .m2v or .mpg file.
    It then plays fine within the QT Player.. but without any sound. MPlayer on the otherhand, opens the file perfectly fine and plays the audio along with the video, no file extension change at all.
    Does anyone know how it is I can get the sound to play from within the QT Player? I need to extract the audio so I can re-enoded to a web friendly format (ala H.264).
    Video doesn't seem to be a problem.. I am basically looking for a Demuxing app of some sort.. any ideas?

    MPEG-StreamClip...
    http://www.squared5.com/
    It's free.....
    Read the specs and see if you have all the components to make it work for you...
    (Gee lately I feel like a rep for MPEG_Streamclip)

  • Extract Audio from Video Clip

    I want to extract the audio from a video clip and use it in another setting as an MP3, AVI, WAV -- or whatever. How do I do this in FCE?

    Export a QuickTime movie and select Audio Only. You'll get an AIF file @48kHz. You can then convert to other formats in iTunes or other software.

  • Extract audio from video for iMOVIE 09 then edit movie?

    Can someone pls help explain to me how i do this:
    I have recorded a video of myself talking in front of a camcorder, that is in imovie. I have also recorded the audio of me speaking at the same time, in order for me to have higher quality sound. This is recorded separate through garage band and an external microphone i have. I want to replace the audio in the movie with the recorded audio in garage band. So the video looks and sounds great.
    I then want to be able to edit the video while keeping the audio in sync with the speech.
    I would really appreciate help from someone on this!!
    Thanks!

    ok so this is what i have been able to do so far:
    I have been able to detach the audio from the video off the camcorder and import the recorded audio from my external microphone.
    Now i don't know how to attach the new audio to the video and then edit the video, while keeping the speaking and audio in sync?

  • How can i cut the audio from 1 file and put it on another?

    I have these2 files of the same movie, 1 is amazing quality but theres no audio. the other is crummy quality but has perfect audio. How can I cut the audio from the good audio version and paste it onto the good video file?
    btw i have quicktime pro is that changes anything

    Open the movie and press "Command J". This will bring up the properties window. Click on the Audio Track or Video Track and the "Extract/Delete" buttons will light up. Click "Delete" and it'll delete the currently selected track, click "Extract" and it will extract the selected track into a new movie. Just use Delete on the correct track and you're halfway there.
    Then, select the movie that is just an Audio Track now, do "Command A" then "Command C" to copy the audio track. Go to the movie that's just a video track, move the insertion point to the beginning of the video then do "Option Command V" to add the Audio Track to the Video Track side by side.

  • Premiere Pro CC won't play audio from video file

    I've been trying to edit videos recorded with Bandicam in Premiere Pro CC. The video file itself is fine, when I play it in Windows Media Player it all checks out, but once I get it into a sequence in Premiere Pro CC despite it showing the audio track, and turning the volume to max, there's no sound! How do I get it to pick up the audio that I KNOW is there?

    Bandicam read #10 http://forums.adobe.com/thread/954394 for possible hellp

  • Audio from video clip and layering

    ok, I need help! I finally figured out how to take audio from a video clip and place it over pictures or layer it over other audio. Now, I want to start with a video clip, it happens to be an interview, cut away to some pictures or other muted video, and come back to the interview, all with the audio playing the whole time and lined up correctly....how do i do this? THANKS!!

    Thanks David
    I found this here http://www.apple.com/findouthow/movies/#tutorial=extendaudio
    To extend audio across multiple clips:
    1. In the Project area, select the clip that contains the audio you’d like to extend into a second clip. Select the last few seconds of the first clip that contain the audio you want.
    2. To split the first clip, choose Edit > Split Clip.
    3. Control-click the selected clip and choose “Reveal in Event Browser.”
    4. In the Event browser, Command-Shift-drag the clip to extract the audio and place it at the start of the next clip.
    5. Delete the video portion of the clip you split in step 2.
    Because you’ve extracted the audio from exactly the part of the clip you split, the audio seamlessly plays across the next shot
    I am going to try this tonight and see how easy it is

  • How to extract data from xml file and store that data inti data base table

    Hii All
    I have one table that table contains one column that column contain an XML file
    I want to extract data from that XML file and want to store that extracted data into an other table.
    That xml file has different different values
    I want to store that values into table in diff diff columns

    Hi,
    I am also facing the same problem.I have a .xml file and i need to import the data into the custom table in oracle database.
    Can you please let me know if you know the solution how to do it in oracle apps.
    Thanks,

Maybe you are looking for

  • After upgrading to Lion, headphones no longer work.

    Plugging headphones in does not dsconnect speakers.

  • Dell Inspiron 1521 suspend/hibernate not working

    Hi all, new Arch user here. I've tried working through the Acpid and Pm-utils wiki articles, but it's all just too confusing. I installed both the programs, and when I run either pm-suspend or pm-hibernate as root, All I get is my screen goes black.

  • Movie rental and travel

    OK so many websites and music sites do not work when I travel overseas. I want to rent movies via iTunes to watch on my laptop, but want to make sure that having a 'non-US' IP address won't prevent me from watching rented videos. Does my laptop have

  • Video Chat dimmed out

    If I select New Chat, the Video Chat option in the Type drop down menu is dimmed out. Everything else is available. I'm using an AIM account and the "Allow AOL's server to relay video chats" box is checked in Preferences. Any advice on how to get the

  • Webcam go plus

    I purchased this product about 3 yrs ago and need to download updated software and driver update for XP. Does anyone know if this would be the same as video blaster . Not sure. Thanks