Mergin two audio tracks into one without hardware

Hello i'm Michele from Italy.
I'm trying to develop a system to merge two audio traks together but at moment i didn't find a good solution.
I guess the object javax.sound.sampled.Mixer seems to need an hardware audio card (wich is not present in remote servers) and this class http://www.jsresources.org/examples/MixingFloatAudioInputStream.java.html
do the job with poor results, no pan is avaible, stereo is not supported well.
may someone help me to use one of this classes in right way?
thanks a lot

trustweb wrote:
Hello i'm Michele from Italy.
I'm trying to develop a system to merge two audio traks together but at moment i didn't find a good solution.
I guess the object javax.sound.sampled.Mixer seems to need an hardware audio card (wich is not present in remote servers) and this class http://www.jsresources.org/examples/MixingFloatAudioInputStream.java.html
do the job with poor results, no pan is avaible, stereo is not supported well.
may someone help me to use one of this classes in right way?If those example classes don't do a good job, then they don't do a good job. I don't know that using them better would fix that ;-)
As for Mixers, I do believe that there should always be a software mixer installed on the system, but I'd be worried about throwing a Headless exception if you're running them on a remote server.
If you're okay with using JMF, then there is an example program that merges tracks into a single file...
[http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/Merge.html]

Similar Messages

  • Beginner question: Two audio tracks become one - how to undo?

    I know this surely is a beginners' problem, i hope for a quick reply anyway. I've imported material I had before logged with AVID Liquid, into Premiere CS4. In order to get video and audio together I had to put video and audio in a new sequence by hand. I then loaded this seqeunce into the source monitor to be able to cut my material (one video track, two audio tracks (one from a directional mic, which I don't always want))  from there. But when I paste a clip in my editing sequence I only get video plus ONE audio track in the stereo track. But I need both audio tracks because sometimes I'm going to delete one of them. So my question: How do I get video and BOTH audio tracks from one sequence to the other?
    Thank you very much, you've had much patience with me with similiar questions.
    Niklas

    To do what you want, you won't be able to work with the media as a single clip.  You'd have to go into the sequence with the video and two audio tracks, and pick out what you want from there instead of the Source monitor.  Make your cuts, laso the clips you're using, then do a Cut/Paste from the main sequence into the edit sequence.  Make sense?

  • How do I combine two iPhoto libraries into one without losing pictures or creating duplicates?

    How do I combine two iPhoto (iPhoto 09) librairies into one without losing pictures or creating duplicates?

    Two ways - use Aperture or use  iPhoto Library Manager - http://www.fatcatsoftware.com/iplm/ -
    LN

  • Convert two mono tracks into one stereo?

    I've imported a clip from my DV camera into Final Cut. For whatever reason, the clip audio is two mono tracks rather than one stereo track. Is there a way for me to convert this to a stereo track after the import?
    Thanks very much,
    Greg
    G5 Dual 2.5 GHz   Mac OS X (10.4.6)  

    Select both clips in the Timeline, then go to Modify->Stereo Pair (Option L). But if both clips contain the same audio information, it won't really be stereo ... just two tracks panned left & right.
    If you want the audio to come in as stereo when you capture next time, make sure that you have the Capture settings for the audio set to "stereo."
    -DH

  • Two Audio tracks in one slide?

    I've looked everywhere for what ought to be a simple answer
    to a simple question, but can't find one...
    Is there any way to have more than one audio recording in a
    single slide in Captivate 2.0? Let's say I want to have a soft
    music track playing in the background, plus an audio clip from a
    narrator going at the same time. Or I've got the same audio track
    that I'm going to use over and over again ("Click the NEXT
    button"), and I just want to have it play at the conclusion of
    another narrated track. Surely there's got to be a way to do
    something this obvious, and yet I've scoured the instructions and
    the internet, and can't find anything. When I attempt to drag a
    second recording into a slide, it replaces the existing recording
    with the new one. The assumption seems to be that nobody would ever
    want more than one audio track on a single slide, either
    concurrently or sequentially. Am I just missing something
    obvious?

    spjarrell, sorry to see you are unhappy but it looks to me
    like it is just a case of frustration with your own level of
    expertise. Osmosis is hardly ever the best way to handle the
    learning curve for new software. You have to actually put forth an
    effort, do some study, and - probably most important, don't be
    afraid to ask questions right here.
    Did you notice that Adobe Community Expert Rick gave Wilma a
    full and complete solution to her problem? What made you think this
    program would be similar in any way to something you owned seven
    years ago? Did someone tell you this is "Just like Flash was back
    in 2000?". If so, you need to change your vendors because this one
    is lying to you.
    I'll help with your only question, to wit ...
    quote:
    I have been trying to figure how to start an audio clip when I
    click on a button. However, any time I add audio to anything on the
    slide, it automatically starts when the slide starts.
    Any audio you add will begin playing when that object first
    appears on the time-line or is activated by an action. If you
    want audio to play when a button is clicked, place the audio on the
    slide or object that will immediately follow the button-click
    action.
    For instance, you can put the audio on the following slide,
    and set the button's properties for a "successful" click-action to
    "Go To Next Slide".
    Or perhaps you would rather attach the audio to an invisible
    highlight box (create the highlight with "0" for a border, and
    "100%" for Fill Transparency) ... then position the highlight box
    on the time-line so it appears immediately after the button (which
    is pausing the slide?), then set the button properties on
    "successful" click to "Continue".
    When the button is clicked, the slide will "continue" down
    the time-line for that same slide, and will immediately come to the
    invisible highlight box which in turn will immediately begin
    playing the audio. There are any number of ways to accomplish what
    you want - these are a few that come immediately to mind, and
    hopefully will be of some help to you.
    P.S. Welcome to the User2User forums. We are always happy to
    help, but please ask your question to see if there is a simple
    solution
    before condemning the product. Most user issues are just a
    matter of knowing the tricks and advanced uses, but the experts
    here prefer to help those who don't come on with "attitude".
    .

  • How to join two audio books into one

    Somehow the audiobook that i have had for a while got split into two different audiobooks
    Is there someway to merge them back together?

    The following solution will merge two audio streams of different formats and mix two audio streams of the same format... translation, make sure they're the same format before you merge them.
    http://web.archive.org/web/20080216001555/http://java.sun.com/products/java-media/jmf/2.1.1/solutions/Merge.html

  • How to make two mono audio tracks into a stereo pair?

    My video clip, brought over into Premiere CS6 from Final Cut Pro 5, has the usual left and right audio tracks, but in Premiere they are not linked into a stereo pair. Thus the volume level has to be adjusted separately in each track.
    In Final Cut, I can quickly convert two independent audio tracks into a stero pair by selecting the tracks and then going to the menu Modify > Stereo Pair.  I can't figure out how to do this in Premiere.
    When two audio tracks are not linked, the volume level has to be adjusted separately in each track, which wastes time. But after two tracks are linked into a Stereo Pair in Final Cut, adjusting either track adjusts them both, together. That's what I want to do now in Premiere.
    So, how do I make two separate audio tracks into a linked Stereo Pair in Premiere?
    Tom

    Hi Tom,
    Tom77 wrote:
    I need to do in my videos that I either can't do in Premiere or that require involved workarounds like this, things that I can do instantly
    I used to think like you do. These aren't workarounds, per se. The issue is that Premiere Pro is a different program, so you have to approach some things slightly differently.
    Actually, Premiere Pro's audio capability is more like a DAW than Final Cut was, and more powerful too, so if you know that workflow it makes more sense. A lot of FCP people don't have training in programs like ProTools or Audition, so it's more difficult for folks like yourself (and me, too) to catch on. Once you learn it, though, you begin to see its power.
    Tom77 wrote:
    things that I can do instantly with the flick of a keyboard command in Final Cut, such as link and unlink audio tracks.
    In Premiere Pro CC, you can link and unlink audio and video tracks with a keyboard shortcut for "Linked Selection." You have to create it in your Keyboard Shortcuts dialog box, but it works just like the one in FCP. Make it Shift + L if you like.
    Tom77 wrote:
    Not to mention the fact that I can have as many projects open in Final Cut as I want, and copy and paste between them. Each open project becomes a tab on the timeline, and I can jump beween projects by just clicking on their tabs. I was shocked when I tried to open two projects in Premiere to find that it only allows one at a time to be open. That seems really primitive--
    Again, you can achieve what you want (copying and using items from other projects), you just have to go about it differently. All you do is navigate to the other project files in the Media Browser and import items that you need in this fashion. So, no, you don't have more than one project open at a time, but you got what you wanted, stuff from another projects in your current project. That works for me, anyway.
    Again, Premiere Pro is a different program. You can achieve the same goals, but sometimes have to go about it differently. Some things are faster, some slower. Some are easier to learn, some harder. Hopefully, you see my point.
    I need video generators to make arrows, circles, squares, etc. and transitions such as edge wipes and clock wipes to animate them, all to point out and emphasize things that I'm demonstrating and explaining in my videos. Premiere has no such generators, nor are there any third-party plug-ins available to add them, that I've been able to find.
    Do you know about the Titler? It has a lot of useful shapes. You can also create shapes in After Effects and Photoshop and import them. The shapes you make in those programs can look a lot better than the stock FCP effects.
    There are lots of third party effects, some that have generators. Check out Boris Continuum, FX Factory, CoreMelt, Film Impact, and more.
    There are pitifully few transitions in Premiere at all (the Mac version) compared to Final Cut.
    I'm really not a transitions person, and I find the FCP transitions looking tired anyway. The only one I really need is a white flash and I can either create it, or use a third party flash effect. If you need cool, modern transitions, check out Film Impact or the other third party plug in foundries I mentioned. There is an Edge Wipe transition, called "Wipe." If you need feathering, check out the Wipe Effect, which you can keyframe to look like a transition.
    More and more I would like to be moving completely into Premiere, but I keep running into these inadequacies in the program, these roadblocks, for my purposes at least.
    The more you work with it, the less you'll be working with FCP. That's what most people are saying anyway. Sure, there are minor annoyances associated with learning a new app, but you also take the good along with it. I suggest you just dive right in. It may take longer at first, but you can get your speed up in time.
    I have no doubt that sometime in the future Premiere will become everything that I want it to be, and at that time I can finally abandon Final Cut for good, as I wish I could do right now.
    I also came from FCP, taught FCP for nearly a decade, wrote a book about FCP, help start the first FCPUG, worked at Apple on two versions of FC Studio, so I do know what you are going through. Just keep at it and keep posting here. I'll be glad to help you with any workarounds or confusion related to moving over from FCP.
    Thanks,
    Kevin

  • Why video with two audio tracks imports like one track (main)?

    Ok, lets face one simple thing that is incredibly stupid in Premiere CC:
    - I make video with two audio tracks (screencast with system sounds and microphone, separated)
    - Import it to Premiere CC and see only one audio track, system sounds!
    - What should I do to see both of them?
    - Why Sony Vegas don't make me to go to support forums and make them both visible without extra actoins?

    Great first post!
    Ok, lets face one simple thing that is incredibly stupid in Premiere CC:
    Channel Map the Audio to do what you want it to do with t e source clip.
    Why Sony Vegas don't make me to go to support forums and make them both visible without extra actoins?
    You could have read the Premiere Manual or watched the Adobe TV Tutorials or gone to edit school  instead ...

  • When downloading video into FCP my two audio tracks are locked together.

    When downloading HD video into FCP my two audio tracks are locked together. Channel one will not separate from channel two. Not good. One channel is my miked talent, the other abient. Any suggestions? I cannot find the problem. Sequence settings? Preference settings?
    Help!

    gary Boland wrote:
    When downloading HD video into FCP
    I think you mean "importing", not downloading.
    Downloading is when you copy a file from an Internet server to your computer.
    Channel one will not separate from channel two.
    Any suggestions?
    Select the two tracks and choose Modify > Stereo Pair
    Or you can just use the keyboard shortcut option-L

  • How to join two or more separate tracks into one track

    I have a CD of music that I want to import. It is a study tool so all the tracks are parcelled up for easier examination- i.e. Beethoven's Symphony no. 5 in C Minor is not one long track, it is cut into 28 separate tracks ranging in time from 26 seconds 2:31 (minutes).
    What I want to do is make all 28 tracks into one track so there is continuous play. I've tried the gapless album option. It didn't do the trick. Now I can just select continuous play button, but for things like 'party shuffle' it doesn't quite work - you end up with a 30 second blurb of a song.
    Any suggestions?

    Insert the CD.
    Select the songs you want as one track then menu Advanced -> Join CD tracks, then import the CD.

  • I have two ids on my computer and iphone syncing on both how do i merge into one without losing my paid for products or personal photos etc?

    on my computer and iphone syncing on both how do i merge into one without losing my paid for products or personal photos etc?

    This MIGHT help  https://discussions.apple.com/message/16386033#16386033

  • Cutting two audio tracks in synchrony with video, question

    I had to chop my movie in two because it did not fit on one DVD. This forum suggested that you make a complete second copy and delete the second half of one, and the first half of the other copy and burn your DVD with the respective halves. No problem with the first half, I deleted the video and had to go back and individually delete the audio tracks and everything stayed in synchrony. The problem arises when trying to delete the first half of the movie and not being able to use the play head to delete audio and video simultaneously. The audio of the first half of the movie is preserved, and if I delete the audio one track at a time it will shift the audio in relation to the video. I thought there would be a way of chopping off the video and audio tracks at the same point without the tedious task of trying to put everything back in sync "by hand". I have two audio tracks so it might be tricky to cut at the end of one audio track, without getting the other out of sync. Thanks for suggestions.
    Mike

    Hi Mike:
    Perhaps the easiest way is to export the entire movie back to DV tape and then re-importing to imovie. That way, the entire movie is now combined into a "flattened" version. Meaning the audio and video are combined together into one video track, making it possible to split the final version in two.
    Pain in the neck, but much easier that doing it one clip at a time.
    Sue

  • How to distinguish between two audio tracks on AppleTV?

    Ripped movies with two audio tracks (AAC, 2-ch and AC3, 5.1) show both of the audio tracks as "English" on AppleTV. How do I know which one is the 2-ch or 5.1? Is there a way for Apple TV to show "English (Stereo)" and "English (Surround)"? I use Handbrake to rip DVDs, sometimes MP4Tools to convert audio, and Subler to tag them.

    It is definitely possible to maintain separate sets of settings for two or more
    publish connections of the same publish plug-in.
    Without more detail on what exactly your code looks like, it is difficult to say what's not working right.
    The contents of 'exportPresetFields' should be maintained on a per-connection basis.

  • Two Audio Tracks From Zoom H4n

    I'm relatively new to video production, and I just got a Zoom h4n to get better audio for my videos shot with a dslr.  I plugged a cheap dynamic microphone into it and recorded using mono mix (so I could use the mono track as a stereo track)  When I loaded it up in Premiere and synced it to the video track, the audio from the h4n comes up as two audio tracks.  If I mute one of the tracks, sound still comes out of both speakers.  Can anyone explain what the second track is for?

    Two tracks, meaning one clip on A1 and one on A2?  I've never seen that from the H4n.  Even 4 track mode creates two separate files that you'd have to add to two tracks individually

  • You Tube videos that have two audio tracks?

    When I view videos on my Mac there are two audio tracks with them. If I pause the video, an audio track is still heard, but I can't seem to control it. Any thoughts?

    Vinay,
    This is weird, but I don't know if it related to the Audio label issue.  There seems to be no rhyme or reason to where the which audio track is used when I place an item into a video track.  In this project I am using .mts files for my video and the audio has been going into Audio 2, except for the one marked in the image below, which is in Audio 3.  When I tried to move it to Audio 2, it slipped up to Audio 1.  This is throwing me off, because I have background music in Audio 3 and want a different audio level.

Maybe you are looking for

  • Unit test fails after upgrading to Kodo 4.0.0 from 4.0.0-EA4

    I have a group of 6 unit tests failing after upgrading to the new Kodo 4.0.0 (with BEA) from Kodo-4.0.0-EA4 (with Solarmetric). I'm getting exceptions like the one at the bottom of this email. It seems to be an interaction with the PostgreSQL driver,

  • Problem to creating users in to Presence 9.1.

    Hello, Presence: 9.1.1.20000-5 The presence don't can creation the users, after reset of the presence go back functionality, but in log found the below errors: Line 24324: Nov 19 12:17:03, NLTDTC-UC-CUPPUB-01, Info,  jabberd, : b79acb90| info| base_c

  • Safari is running very slow

    Safari is running very slow in OS X mavericks. Our network is using proxy authentication. Earlier we do not have any problem with safari. Please let us know how to fix the bug.

  • ME_PROCESS_REQ_CUST~INITIALIZE

    Hello Gurus, How should I use this (INITIALIZE) method? Can this method not be used to initialize the PReq screens with default values? My requirement is that when the user calls the ME53N transaction to create a PReq, should see some field values (l

  • Pick List with WM

    Is it possible to have the pick list print (EK00) automatically even if the delivery is relevant for warehouse management?  The users would rather use this output than the transfer order document via WMTA. Thanks, Ron