How to play multiple audio tracks simultaneously?

Hi there,
I am having problem with playing multiple audio tracks. I want to play 2 or more audio tracks at exact time (without delay) - is it possible? how can it be done?

So, essentially, you're trying to take a recording of say, a singer and a guitar player, and end up with the singer in one file and the guitar in the other. Got it.
[http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/Merge.html]
That sample will merge multiple input files into a single file. Because you want to play the files together rather than save them, just take the sample and strip out all of the DataSink stuff, and add the following line right after the Processor "outputProcessor" is realized...
outputProcessor.setContentDescriptor(null);
So, it'll make the following revision to the code:
     // Create the output processor
     ProcessorModel outputPM = new MyPMOut(merger);
     try {
         outputProcessor = Manager.createRealizedProcessor(outputPM);
                    outputProcessor.setContentDescriptor(null);
         outputDataSource = outputProcessor.getDataOutput();
     } catch (Exception exc) {
         System.err.println("Failed to create output processor: " + exc);
         System.exit(-1);
     }That'll make the outputProcessor play the file, as if it was a Player object. You won't have any visual controls, but if you need visual controls, then don't do that, and just create a Player object to play the outputDataSource.

Similar Messages

  • Movie Playing multiple audio tracks & echoing

    I have a movie that is in a symbol that i want to play after a set amount of time by using setInterval. The function works - but when it shows the symbol and plays - it plays multiple audio tracks at the same time - sounding like an echo and or a 1-2 second delay on the same audio track. It also seems the audio starts playing on the main root without actually triggering the playhead of the video symbol.
    Following is the code i am using for both timer and the video. Any pointers?
    // interval
             var timer = setInterval(onTimer,10000);
             var mysymbol = sym.getSymbol("btn1_video");
             // function
             function onTimer() {
                // clear last interval
                clearInterval(timer);
                // action
                sym.$("btn1_video").show();
    //and on on the movie symbol timeline trigger:
    var vid = $("<video width='818' height='460' autoplay='autoplay' preload='auto' controls='controls' id='videoID'>" +
    "<source src='video/testvideo.m4v' type='video/mp4' />" +
        "<source src='video/testvideo.webm' type='video/webm' />" +
       "<source src='video/testvideo.ogg' type='video/ogg' />" +
       "This browser is not compatible with HTML 5" +
    "</video>");
    sym.$("btn1_video").append(vid);

    You identified the problem. I thought that you had to highlight the first song to get the playlist going, but all that does is make the first song repeat itself. Thanks for the guidance.

  • MPEG-4  ( H.264 ) Movies play ALL audio tracks simultaneously

    In i-Tunes , when I try to play MPEG4's with multiple audio tracks (such as 1-english 2-director comment)both audio tracks play at the same time.
    The files are MPEG-4's created by Nero Recode (AVC – HDTV profile).
    There is no issue with any similar files with one audio track.
    There is no issue playing these in VLC , WMP Mplayer, etc.
    Is there an option to enable i-Tunes to allow me to select only one track?
    Vista Ultimate 64-bit installed on a Core 2 Duo E6600 2.4GHz dual core CPU

    Or, could someone explain how I might be able to view the file information in Terminal?

  • Can AppleTV play multiple audio tracks in a movie?

    I recently discovered (pretty much by accident) that iTunes and the iPhone supports multiple audio tracks in a single m4v video file. So I've started ripping my DVDs using Handbrake with both the main audio and the commentary track.
    In iTunes and my iPhone I can swop between the two at will, but I cannot find any information on how or if it's possible to switch audio tracks on the AppleTV. Does anybody know?
    I'm using an AppleTV 2 with up to date software and iTunes 7.6.2 set up to sync.

    this same question was asked in the last 2 days (and may even be still listed on page 1).
    http://discussions.apple.com/thread.jspa?threadID=1541440&tstart=15
    however, the answer is no.

  • HOW TO ADD MULTIPLE AUDIO TRACKS - iMovie '11

    I'm having trouble adding multiple audio tracks in iMovie 11.  I already have an audio track embedded with the video and a separate music track under.  I wish to extend the music track further but need to cut it off at a certain point.  I tried just adding the 2nd music track under the first but when I 'drop' the track it doesn't show up anywhere.  Any ideas or work arounds will be helpful.  Thanks.

    Hana wrote:
    ...   I tried just adding the 2nd music track under the first but when I 'drop' the track it doesn't show up anywhere.  ...
    you have to drag the music-clip onto a video-clip - then, iM will add it automatically upon/under the other ones ...

  • How do i play multiple audio files simultaneously using AudioQueue?

    I've basically gutted what I don't need from the "Speakhere" sample app and I'm left with something I can use to play audio files. I converted wav files to aiff and then renamed the aiff to caf (Just in case this matters). I even tried shortening the files to 10 seconds long, but no difference. I am able to play files singly, but am unable to play more than one file at the same time. When I try to play multiple files, the first one plays correctly but the second will play a horrible long beeping sound. Sounds almost like a buzzer and sometimes will sound like a high pitched beep. My code has all the audio components like the speakhere app (AudioQueueObject, AudioPlayer, AudioViewController). I've changed the AudioViewController to be just my "AudioController" class where when I initialize, I pass in the name of the file and it replaces this line of code:
    CFStringRef fileString = (CFStringRef) [NSString stringWithFormat: @"%@/Recording.caf", self.recordingDirectory];
    with this:
    CFStringRef fileString = (CFStringRef) [NSString stringWithFormat: fileName, self.recordingDirectory];
    Any suggestions? I've been yanking my hair out trying to figure this out and I simply can't. I'm about ready to pull an "Office Space" but instead of beating up a printer, I'm going to destroy my macbook.
    *NOTE: I have only tried this in the simulator, but I'm assuming it will do this on the real thing so I haven't bothered to try.

    Unless I'm mistaken, you need one AudioQueue object for each audio file you want to play. In one of my apps, I basically copied the code provided in the [AudioQueue programming guide|http://developer.apple.com/iphone/library/documentation/MusicAudio/Concep tual/AudioQueueProgrammingGuide/AQPlayback/chapter4_section_1.html#//appleref/doc/uid/TP40005343-CH3-SW1] and made a wrapper object for playback. So then you can do something like this:
    MyAudioManager *manager1 = [[MyAudioManager alloc] initWithFile:@"file1.caf"];
    [manager1 play];
    MyAudioManager *manager2 = [[MyAudioManager alloc] initWithFile:@"file2.caf"];
    [manager2 play];
    // etc...
    If you want to play short files (~10s or less), you can use the simpler AudioServices functions along with SystemSoundID's. It will work fine if you have playback from AudioQueue and AudioServices at the same time.

  • How to quiet multiple audio tracks

    I have 6 seperate video tracks (multiple angels of the same event). I used the suggestions given to me before on how to synch up all the footage. My problem is I can't figure out how to silence all but one video track so I can mark where the synch spot is (an air horn). When I click the green button next to the audio track, it unrenders the audio, so that isn't an option. I only need the audio to mark the synch spots, then I can delete it as I have a tape of just the audio through the PA system. Any suggestions?

    I think rendering the audio has to do with the way I import to FCE. This is how I bring video into FCE because it seems to be the only way I can get it to work. I run my video camera through a digital coverter which runs a firewire into my Mac. I then import the video into imovie. After that is done, I do a drag and drop of the imovie into FCE. I have to render the audio because it just beeps if I don't when I play it back in FCE. I tried using the video capture in FCE but it keeps telling me it is unable to capture (my gues is the cameras are too old and the digital converter in not compatable with FCE or Mac). So once the video and audio footage is in FCE, if I click the green button on the left hand side, my rendered audio becomes a red line. However, I can click the same button on the upper video portion, and it drops the video out so I can see video clips on the lower levels and not just the first one on top. So that's why I render the audio. I can see all twelve audio tracks already. Tom- would making the change you suggest still help? Great book by the way also.

  • Multiple audio tracks playing at the same time?

    Does the Adobe Elements 12 allow us to have mulitple audio tracks playing at the same time? Is there a limit to the number of tracks?
    Thanks!

    Hi Jennifer3211,
    Yes you can play multiple audio tracks simultaneously. The maximum no. of audio tracks can be 99.
    Thanks

  • Multiclips and multiple audio tracks playing at the same time

    I've only just taken delivery of my first ever mac (only ever used PC) with FCP, and I'm loving it already! Done lots of reading and viewing of video etc etc, and it's not as daunting as I thought it might be. I have one question the books don't seem to answer, and I can only find one reference to this on this site, with no definitive response. FCP5 probably doesn't work this way, but just in case someone knows different......
    I film and edit motorsport (karting) programmes for television in the UK, using multiple cameras. I usually lay all the video and audio tracks on the timeline, (synched) lock the audio for each (as it is engine noise, and I want it playing without abrupt changes at cuts as each kart passes each camera, whether in shot or not) then cut the video tracks and delete those video segments not required.
    The most exciting aspect of FCP5 for me is the multiclip editing facility, which I have found very easy to learn and is going to save me hours of work! However, I want to know if there is a way of having each audio track from each camera used in the multiclip laid down on the timeline when you import the multiclip to the timeline from the viewer, in order that I can play each audio track from each of the cameras at the same time.
    I know how to cut from angle to angle, leaving the audio from the selected angle as the one audio track playing, but I want all of the tracks to appear in the timeline and play at the same time. I know there's a bit of a workaround by locking the video and importing each audio track from each clip independently, but if you do have to re-synch one of the multiclips, this means the audio is not then synched with the original clip, which will have had an in point set before being imported in as part of a multiclip.
    I can understand why you might want to keep audio from one camera only playing over the whole multiclip, or to switch between audio from each, but in my case I prefer all audio to play at the same time. The workaround is still do-able for me as I'm only talking about engine notes, which if they are a few frames out is not very noticeable at all, but I would like to know if I'm right in thinking I cannot do it the way I would like to?
    Wish I'd used FCP from the start, but glad I've got it now.....especially with the 30 inch screen! It's 4.40am, been going over 19 hours straight and I'm still making comments like...."WOW, that's brilliant"...every half hour!
    G5   Mac OS X (10.4.3)   Quad, 8gb ram, 2 x G-Media GRaid 500gb Raids, 30 + 20 inch Cinema screens

    ...

  • How do I import multiple audio tracks?

    Hi there...
    I have a number of video files that have multiple audio tracks in them. The problem is I can not work out how to get prem to see multiple audio tracks. The files import fine and I have also tried various other formates with multi-track audio.. but only audio "stream 1" is visible in prem.
    What I was hoping is that the video would come in with a 2 audio tracks instead of 1 each in its own "lane".. so I can then use the mixer and the audio files are  linked to the video file and in perfect sync.. (just like when you import with 1 track)
    NOTE: I am not talking about channels.. but complete 2 completely different audio tracks.. and I know that I could extract these audio streams into wavs and then re-sync them but this seams overkill and a duplication of effort... surly there is a way to have prem support more than 1 audio track on a video file?
    --Me

    Well, if PP doesn't bring them in, then best guess is they just don't exist.
    There's really no trick or user adjustment for this that I'm aware of.  You import the file, PP sees what's in it.  I've never observed or read about any other behavior than that.

  • How to delete multiple music tracks

    how to delete multiple music tracks?

    I think rendering the audio has to do with the way I import to FCE. This is how I bring video into FCE because it seems to be the only way I can get it to work. I run my video camera through a digital coverter which runs a firewire into my Mac. I then import the video into imovie. After that is done, I do a drag and drop of the imovie into FCE. I have to render the audio because it just beeps if I don't when I play it back in FCE. I tried using the video capture in FCE but it keeps telling me it is unable to capture (my gues is the cameras are too old and the digital converter in not compatable with FCE or Mac). So once the video and audio footage is in FCE, if I click the green button on the left hand side, my rendered audio becomes a red line. However, I can click the same button on the upper video portion, and it drops the video out so I can see video clips on the lower levels and not just the first one on top. So that's why I render the audio. I can see all twelve audio tracks already. Tom- would making the change you suggest still help? Great book by the way also.

  • Multiple audio tracks playout from FCPX.

    Hi, How do i handle multiple audio tracks to play directly from FCPX. Previous versions of FCP gave the freedom of assigning an audio pair to an sdi pair.

    Aside from the possible legal ramifications of what you are doing with other people's copyrighted property, some of the trailers are obviously plain old stereo while others are Dolby 5:1 Surround.
    Message was edited by: Nick Holmes -spelling

  • How do you combine audio tracks in quicktime 10.2

    Students in my class recorded some voice overs in multipe clips.  We want to combine them into one track in quicktime 10.2.  However the choice to copy the track is grayed out.  How can we combine the tracks into one in quicktime 10.2?

    Students in my class recorded some voice overs in multipe clips.  We want to combine them into one track in quicktime 10.2.  However the choice to copy the track is grayed out.  How can we combine the tracks into one in quicktime 10.2?
    You don't. Use QT 7 Pro or GarageBand instead. (Video editors will also merge multiple audio tracks but they are likely more limited than QT 7 Pro which allows up to 99 data tracks.) GarageBand, also based on older QT 7 Pro technology, allows you to segment tracks, set track or selected track segment volumes to duck track or track segments, adjust or "rubberband" master track volumes, adjust stereo pan for track or selected track segments as well as, "slide" tracks or track segments along the time axis and apply numerous enhancements beyond my ability to even remember here.

  • Is it possible to retain multiple audio tracks when exporting?

    While ripping my DVD collection, I've wanted to add a purchased RiffTrax (see www.riftrax.com) to the movie as another audio track. I've been successful, but it took the following steps:
    1. Encode the movie using Handbrake, open the resulting m4v file in Quicktime Pro
    2. Also in Quicktime Pro, open the Rifftrax aac file I created and add it as another audio track in the m4v
    3. Save the m4v as a Quicktime mov file
    4. Use Handbrake again to encode the mov file into an m4v file, including my added audio track
    The reason I have to do step 4 is because if I were to export an m4v file directly from Quicktime Pro, it would compress all of the audio tracks into a single audio track. It would save a lot of time if Quicktime could export multiple audio tracks, at least when exporting to formats that can handle them. Does anyone know if this is possible?
    BTW, if anyone wants more details into how I create the RiffTrax aac, just ask.
    - Jake

    I've answered my own question, it was a lot easier than I thought. After the first encoding by Handbrake, there's really no difference between calling it a mov file or m4v file. I can change the file extension at will and there's no need to do an export that mashes the audio tracks. It's only AppleTV that needs to see the m4v file extension, Quicktime and iTunes doesn't seem to care one way or the other.
    Thanks for letting me think out loud.
    Jake

  • Premiere pro: multiple audio tracks in a single take. (Workflow for audio mixing outside premiere)

    Hi I am an editor from Finland.
    I need to sync multiple audio tracks (like 2 stereo and 4 mono) to different takes before i start to edit. You see, after the editing I will create an OMF file for the sound editor who needs all the audio tracks to work with. I have noticed however by just nesting (puttin video and audio clips in a single sequence) the resulting sequence placed on in the main sequence is flattened into stereo (not multichannel). You see my problem here? I am surprised, because i have always taught that this is a very normal workflow and so far i haven't found a single tutorial or a guide for this problem.
    Just to make sure we're on the same page: I know how to sync video and audio, just not so that the 6different audio tracks in all my 120 different takes that i edit into a single sequence will have the 6different audio tracks in the audio post production (which is done in protools, maybe...)
    Oh yeah, Premiere Pro CS5

    Hi!
    This is the case when i get a master clip with all the audio tracks in it. I however got separate files, a bunch of different video files (with stereo track), for every take a boom mic audio track, and a few tracks for all the microphones on the actors. Now after i import these into premiere, how will i proceed so that after i have synced all the audioclips to all the video clips (by nesting?) I will still have all the audio clips intact in the OMF file I will create.
    Last time i created omf, all the clips had turned into stereo because of nesting. Is the only way to avoid this by joining the video and audio clips into multichannel audio clips with another program before importing into premiere?
    I am not very good at explaining... Problem: I get a video and 10 audio tracks. I join them by putting them into a sequence. I repeat this about a hundred times (for every take). Now i start to edit. I create the main sequence in which i clip pieces from all the hundred takes. In the main sequence the clips have only one stereo track. When the movie is finished I create an OMF for the sound guy. The sound guy asks me why are there only 2 tracks per clip? Where are all the 10 separate audio tracks?

Maybe you are looking for