How would you capture AIR audio on iOS (inside ANE)?

Hi! I'm wondering what would be the best way to capture AIR app audio on iOS.
I was able to capture video with OpenGL(that was tricky), also I'm able to do microphone capturing, both from ANE.
Now I'm wondering how does AIR do audio output on the native level (iOS). What API does it use... From that I might be able to understand how to capture the audio. I know that there are different audio "pathways" from my limited iOS understanding, like Remote IO, or AVFoundation - but I'm not sure how/if its possible to capture from AVFoundation if its that. I know there's a way to capture from Remote IO.
In general, I know it is possible, I'm seeing frameworks being able to capture audio on iOS just with a single ANE...so its only about figuring out "how".
To clarify: I'm looking to capture realtime audio output from an AIR app.

I'm trying the log and transfer method with Pro Res 422 HQ at the moment from material from a Panasonic SD5. For some reason FCP cannot mix down the 5:1 sound properly and you get channel 1 being 5 times as loud as channel 2. HOWEVER using Clip Wrap and again transcoding to Pro Res 422 HQ, seems to be able to mix the 5:1 to stereo, perfectly.My problem is Catch 22, I am often told to film in nasty places hence the need for tiny AVCHD cameras. Other programmes can work with these files like Pinnacle and FCE, however they do not have the Pro Res 422 HQ codec for exporting, that I must deleiver on, so I am having to work with FCP.Looks like Clip Wrap seems to work quite well....so far, but I haven't tested it properly yet.

Similar Messages

  • How would you capture the stdout of Runtime.getRuntime().exec())?

    How would you capture the stdout of Runtime.getRuntime().exec())?
    Say you wanted to execute PKZIP25.exe from java using Runtime.getRuntime().exec(). How would you capture the output of PKZIP25 (the console IO) in a file so you could check the results?
    Thanks
    Bill Blalock

    Thanks.
    Could you explain a little more?
    The program I am calling seems to be executing, as far as Java is concerned, but nothing happens. I imagine I have made mistakes in calling it but can't see the output to the console.
    Should I use Runtime.getRuntime().exec() or Runtime.exec() for something like this?
    I appreciate the help!
    Bill B.

  • How do you select two audio capture devices?

    Hi all,
    At the moment I'm simply using CaptureDeviceManager.getDeviceList to get a list of all the capture devices on my system. Now when I print this it looks like this...
    [DirectSoundCapture : dsound://
    LINEAR, 48000.0 Hz, 16-bit, Stereo, LittleEndian, Signed
    LINEAR, 48000.0 Hz, 16-bit, Mono, LittleEndian, Signed
    LINEAR, 48000.0 Hz, 8-bit, Stereo, Unsigned
    LINEAR, 48000.0 Hz, 8-bit, Mono, Unsigned
    LINEAR, 44100.0 Hz, 16-bit, Stereo, LittleEndian, Signed
    LINEAR, 44100.0 Hz, 16-bit, Mono, LittleEndian, Signed
    LINEAR, 44100.0 Hz, 8-bit, Stereo, Unsigned
    LINEAR, 44100.0 Hz, 8-bit, Mono, Unsigned
    LINEAR, 32000.0 Hz, 16-bit, Stereo, LittleEndian, Signed
    LINEAR, 32000.0 Hz, 16-bit, Mono, LittleEndian, Signed
    LINEAR, 32000.0 Hz, 8-bit, Stereo, Unsigned
    LINEAR, 32000.0 Hz, 8-bit, Mono, Unsigned
    LINEAR, 22050.0 Hz, 16-bit, Stereo, LittleEndian, Signed
    LINEAR, 22050.0 Hz, 16-bit, Mono, LittleEndian, Signed
    LINEAR, 22050.0 Hz, 8-bit, Stereo, Unsigned
    LINEAR, 22050.0 Hz, 8-bit, Mono, Unsigned
    LINEAR, 16000.0 Hz, 16-bit, Stereo, LittleEndian, Signed
    LINEAR, 16000.0 Hz, 16-bit, Mono, LittleEndian, Signed
    LINEAR, 16000.0 Hz, 8-bit, Stereo, Unsigned
    LINEAR, 16000.0 Hz, 8-bit, Mono, Unsigned
    LINEAR, 11025.0 Hz, 16-bit, Stereo, LittleEndian, Signed
    LINEAR, 11025.0 Hz, 16-bit, Mono, LittleEndian, Signed
    LINEAR, 11025.0 Hz, 8-bit, Stereo, Unsigned
    LINEAR, 11025.0 Hz, 8-bit, Mono, Unsigned
    LINEAR, 8000.0 Hz, 16-bit, Stereo, LittleEndian, Signed
    LINEAR, 8000.0 Hz, 16-bit, Mono, LittleEndian, Signed
    LINEAR, 8000.0 Hz, 8-bit, Stereo, Unsigned
    LINEAR, 8000.0 Hz, 8-bit, Mono, Unsigned
    , JavaSound audio capture : javasound://44100
    LINEAR, 44100.0 Hz, 16-bit, Stereo, LittleEndian, Signed
    LINEAR, 44100.0 Hz, 16-bit, Mono, LittleEndian, Signed
    LINEAR, 22050.0 Hz, 16-bit, Stereo, LittleEndian, Signed
    LINEAR, 22050.0 Hz, 16-bit, Mono, LittleEndian, Signed
    LINEAR, 11025.0 Hz, 16-bit, Stereo, LittleEndian, Signed
    LINEAR, 11025.0 Hz, 16-bit, Mono, LittleEndian, Signed
    LINEAR, 8000.0 Hz, 16-bit, Stereo, LittleEndian, Signed
    LINEAR, 8000.0 Hz, 16-bit, Mono, LittleEndian, Signed
    Now my system actually has 2 michrophones attatched to it. At the moment I'm using DirectSoundCapture to record audio. My first question is, how do you detect multiple audio capture devices? and then of course, how can you record off of different audio capture devices?
    Anything would be helpful, if theres a tutorial somewhere on this which i've missed somehow, please tell me. I'm probably missing something pretty major I figure.

    I posted in a different thread that I was using the old javax.sound.sampled library to try to record. However, using this library it was quite simple to get a list of devices which could then be used to make a SourceDataLine that could be used to record. However, I was having trouble actually recording and switched to JMF as it has more features and I thought it would be simpler to use. It probably is but I have been struggling. I can record audio in JMF fine but I cant get a device list as I could with the javax.sound.sampled library.
    I'll put the code I was working off in here anyway. It shows what I want to do, I just want to do it in JMF.
    Note that this code was written 4 years ago by a Matthias Pfisterer and not by myself.
    import javax.sound.sampled.AudioFileFormat;
    import javax.sound.sampled.AudioFormat;
    import javax.sound.sampled.AudioSystem;
    import javax.sound.sampled.DataLine;
    import javax.sound.sampled.Line;
    import javax.sound.sampled.LineUnavailableException;
    import javax.sound.sampled.Mixer;
    import javax.sound.sampled.SourceDataLine;
    import javax.sound.sampled.TargetDataLine;
         /** List Mixers.
              Only Mixers that support either TargetDataLines or SourceDataLines
              are listed, depending on the value of bPlayback.
         public static void listMixersAndExit(boolean bPlayback)
              out("Available Mixers:");
              Mixer.Info[]     aInfos = AudioSystem.getMixerInfo();
              for (int i = 0; i < aInfos.length; i++)
                   Mixer mixer = AudioSystem.getMixer(aInfos);
                   Line.Info lineInfo = new Line.Info(bPlayback ?
                                            SourceDataLine.class :
                                            TargetDataLine.class);
                   if (mixer.isLineSupported(lineInfo))
                        out(aInfos[i].getName());
              if (aInfos.length == 0)
                   out("[No mixers available]");
              System.exit(0);
    Calling this method on my system will print the following.
    Available Mixers:
    Microsoft Sound Mapper
    AK5370
    SoundMAX Digital Audio
    AK5370 (2)
    This looks very different to what I get when I call CaptureDeviceManager.getDeviceList()
    How can I achieve the equivilent in JMF?

  • How do you sync two audio clips without a clapper board?

    ... so the cameras had to be well back to catch the whole shot, and to catch the sound, we used a separate audio recorder closer to the performers.
    In hindsight, I suppose we could have used a clapper board but if the board was close to the recorder, it would be hard to see... and if it was closer to the cameras, it would be hard to hear the clap on the recorder.
    now the question is how to perfectly sync the better audio from the recorder with the lesser audio from the cameras (then delete the lesser audio)
    so far, its not quite right and their lips are off like an old Japanese Sci Fi Movie. Is there any way to move one track frame by frame over the other to get it right? (some sort of keyboard command?)
    OR is there some sort of app that someone wrote that could overlay the the good audio with the reference audio and sort of "snap it" into position? The waveforms look similar aside from the quality and strength of the signals.

    Rob, Andy
    just wanted to revisit this post. Were onto something great here!
    so to update us, I DL'ed "PluralEyes" but it didn't work. Each time I pointed it at the program file, it shut itself down. I tried rebooting the whole machine, trashing preferences etc but it wouldn't work.
    the developers were great! got back to me asap. I sent the crash reports and the file I was working on and they discovered a "huge bug"
    Today, they emailed me a link to a FIX which be included in their next version but they allowed me to try it today and guess what? it FIXED it!
    So I started the app and let it run (its over 2 hr program) the app ran for like an hour and put out two new sequences, "unsynced" and "synced"
    but i have some questions;
    there were two cameras and a separate audio recorder.
    in "synced" it lined up the recorder audio with the camera 1 audio but it pushed camera 2 and its audio to the side (further down the timeline)
    of course, what we want is for camera 2 to also be synced (or sunk;-) so when we cut between cameras, the lips are still in sync.
    now how do we get it to line up camera 2?
    screen shot.
    in the "synced" sequence, we need to sync camera 2 with camera 1.
    also, it has left out much of the program in the "synced sequence" there are actually three tapes from each camera. you can see here that we are left with one tape from each camera.
    what do we do from here?
    also, before moving anything around, I can link the tracks but that doesnt stop them from getting out of sync. and locking the tracks means they cannot be moved. so how do you attach the audio to video without getting out of sync?
    .... In the "good ol days" (so Ive heard) editors had years and years to master their craft. Film & Splicing were in power for like what? 75 years?
    Now there are new programs emerging every day with entirely their own learning curve! But if this works just this once, its well worth buying it! its a fantastic app! Im sure it just takes some getting used to!

  • How do you choose different audio streams?

    If you have an "audio options" menu, and you have the choice between Ac3 and DTS, how would you link the different audio tracks to the buttons in the sub menu. also, how do you link the tracks to the audio button on you dvd players controller?
    thanks in advance

    How is the menu done?
    In the DVDSP4 Apple training book they show how to create a script to make sure the Audio Options menu shows the currently selected version. I do not find a tutorial on how to create an Audio Options or Languages with audio choices menu.
    Thanks,
    Robert

  • I need to change my apple id in my ipod (it was an old email address).  How would you do this?

    I need to change my apple ID in my ipod touch (it was an old email address).  I have changed to setting in itunes.  How would you do this? - not sure what my OS is.

    Go to Settings>Store (or Settings>iTunes and App Stores for iOS 6) and sign out and sign in with the other/updated account.

  • How would you find the pitch period of a sound signal?

    Hi
    I have a few questions and i would like if somebody could help me even with the smallest comment on this.
    How would someone be successfully estimate the pitch period (fundamental frequency) of a 5 second sound file?How would you successfully distinguish the voiced from the unvoiced parts and how would you make sure you dont mix voiced/unvoiced sections? Finally how can you find the exact points where the pitch is at its peak throughout the signal?
    Any help/comment/suggesion would be much appreciated

    Hello Madgreek,
    After some thought I think I may have come up with an algorithm for what we have discussed. Basically, you are interested in knowing the time intervals over which you can observe any given frequency in your signal. As you had suggested, you can examine small windows of your signal and perform FFTs on each of the small windows to determine what frequency content is contained in that window. By examining all of the windows, you will see when particular frequencies are prevalent in the original signal. You'd want to use the smallest allowable window to give you the most resolution, but one that is large enough to cover an entire period of the lowest frequency (so that you don't miss this frequency).
    I have attached an example program that performs this operation. The example performs this analysis on an array that represents audio data. I am basically performing multiple FFTs (for each window) and stacking these FFTs in time to form a 3D plot. By examining the 3D plot, I can then see when in time my frequencies of interest are at their peaks. Rather than graphing these plots, you may work out a different algorithm for programmatically determining and logging these peaks and times. I hope this is what you were looking for!
    Attachments:
    Time Variable FFT.vi ‏250 KB

  • How do you use airplay between two iOS devices

    How do you use airplay between two iOS devices

    I would read http://support.apple.com/kb/ht4437?viewlocale=es_es

  • In Security, clicking on the "Saved Password" button displays your current saved password for each site. It does not allow you to change a password. How would you do that?

    In Security, clicking on the "Saved Password" button displays your current saved password for each site. It only allows you to view and delete site passwords. It does not allow you to change a password. How would you do that?

    If you enter a new password Firefox should offer to change the password.
    *You may not need to delete the old password. Try "Refreshing" the page, entering the site again, you may need to let Firefox fill in the old password, then enter the new password, and Firefox should ask to save the new password. See:
    **http://kb.mozillazine.org/Deleting_autocomplete_entries
    *If you delete the old password, you may need to "Refresh" the site after deleting the old password.
    If you want to delete the password that has been saved do the following:
    #In the Tools menu select Options to open the options window
    #Go to the Security panel
    #Click the "Saved Passwords" button to open the passwords manager
    #Select the site in the list, then click Remove
    <br />
    <br />
    '''You need to update the following.''' The Plugin version(s) shown below was/were submitted with your question and is/are out of date. You should update to avoid known security issues with the version(s) you have installed. Click on "More system info..." to the right of your question to see what was included with your question.
    *Adobe PDF Plug-In For Firefox and Netscape 8.3.0 (''Note: this is a very old version and installing the current version may not delete it or overwrite it. To avoid possible problems with having 2 versions installed on your system, you may want to remove the old version in Windows Control Panel > Add or Remove Programs before installing the new version'').
    *Shockwave Flash 10.3 r181 (''this may be current but a new version was released on 2011-06-14 with a ".26" after the "181". You can use the Plugin Check below and/or look in Add-ons > Plugins for the version of Shockwave Flash that you have installed. The newest version will be shown in Add-ons > Plugins as "Shockwave Flash 10.3.181.26"'').
    *Next Generation Java Plug-in 1.6.0_24 for Mozilla browsers
    #'''''Check your plugin versions''''' on either of the following links':
    #*http://www.mozilla.com/en-US/plugincheck/
    #*https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #*There are plugin specific testing links available from this page:
    #**http://kb.mozillazine.org/Testing_plugins
    #'''Update Adobe Reader (PDF plugin):'''
    #*From within your existing Adobe Reader ('''<u>if you have it already installed</u>'''):
    #**Open the Adobe Reader program from your Programs list
    #**Click Help > Check for Updates
    #**Follow the prompts for updating
    #**If this method works for you, skip the "Download complete installer" section below and proceed to "After the installation" below
    #*Download complete installer ('''if you do <u>NOT</u> have Adobe Reader installed'''):
    #**SAVE the installer to your hard drive (save to your Desktop so that you can find it after the download). Exit/Close Firefox. Run the installer you just downloaded.
    #**Use either of the links below:
    #***https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox ''(click on "Installing and updating Adobe Reader")''
    #***''<u>Also see Download link</u>''': http://get.adobe.com/reader/otherversions/
    #*After the installation, start Firefox and check your version again.
    #'''Update the [[Managing the Flash plugin|Flash]] plugin''' to the latest version.
    #*Download and SAVE to your Desktop so you can find the installer later
    #*If you do not have the current version, click on the "Player Download Center" link on the "'''Download and information'''" or "'''Download Manual installers'''" below
    #*After download is complete, exit Firefox
    #*Click on the installer you just downloaded and install
    #**Windows 7 and Vista: may need to right-click the installer and choose "Run as Administrator"
    #*Start Firefox and check your version again or test the installation by going back to the download link below
    #*'''Download and information''': http://www.adobe.com/software/flash/about/
    #**Use Firefox to go to the above site to update the Firefox plugin (will also install plugin for most other browsers; except IE)
    #**Use IE to go to the above site to update the IE ActiveX
    #*'''Download Manual installers'''.
    #**http://kb2.adobe.com/cps/191/tn_19166.html#main_ManualInstaller
    #**Note separate links for:
    #***Plugin for Firefox and most other browsers
    #***ActiveX for IE
    #'''Update the [[Java]] plugin''' to the latest version.
    #*Download site: http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)
    #**'''''Be sure to <u>un-check the Yahoo Toolbar</u> option during the install if you do not want it installed.
    #*Also see "Manual Update" in this article to update from the Java Control Panel in Windows Control Panel: http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates
    #* Removing old versions (if needed): http://www.java.com/en/download/faq/remove_olderversions.xml
    #* Remove multiple Java Console extensions (if needed): http://kb.mozillazine.org/Firefox_:_FAQs_:_Install_Java#Multiple_Java_Console_extensions
    #*Java Test: http://www.java.com/en/download/help/testvm.xml

  • How do you Capture pages in 5.0

    How do you Capture pages in 5.0

    You can't, that entire method has been removed.
    Pages 5 is a severely cut down beta. Apple removed over 100 features and added a lot of bugs.
    Pages '09 should still be in your Applications/iWork folder.
    Peter

  • How would YOU retype these old XM08 types for use in an ABAP OO method?

    The XM08 function group has the following type declarations:
    TYPES: BEGIN OF mmcr_drseg_co.
            INCLUDE STRUCTURE cobl_mrm_d.
    TYPES: cr LIKE drseg_cr    OCCURS 0,
           unpl_refwr TYPE refwr,
           END OF mmcr_drseg_co.
    TYPES: mmcr_tdrseg TYPE mmcr_drseg OCCURS 0,
    TYPES: BEGIN OF mmcr_drseg.
            INCLUDE STRUCTURE drseg.
    TYPES: cr LIKE drseg_cr OCCURS 0,
           co TYPE mmcr_drseg_co OCCURS 0,
           sm LIKE drseg_sm OCCURS 0,
           charact TYPE rbcharact_instance OCCURS 3,
                                           "instances of characteristics
           uebgmat  TYPE matnr,
           uebrblgp TYPE rblgp,
           selkz_db TYPE selkz,
           rblgp_old TYPE rblgp,           "rblgp before aggregation
           END OF mmcr_drseg.
    How would YOU redeclare these types so that they work in an ABAP Objects class?  
    Some of the "fixes" are easy, like replacing "LIKE" with "TYPE:".
    But what about the "INCLUDE STRUCTURE" and the "occurs 0" specifications?
    The reason I'm asking this is that I have to call a method from ZXM08U16 and I'd like to be able to pass this method exactly what XXM08U16 gets from SAP, i.e. the table E_TDRSEG of type  MMCR_TDRSEG

    David,
    I wonder it can be directly in ABAP (I would like to hear opinions from others as well!), I needed to use Data Dictionary as well:
    TYPES: BEGIN OF mmcr_drseg_co.
            INCLUDE STRUCTURE cobl_mrm_d.
    TYPES: cr TYPE z_tt_drseg_cr,
           unpl_refwr TYPE refwr,
           END OF mmcr_drseg_co.
    z_tt_drseg_cr is a table type created in SE11, based on structure drseg_cr.
    the way to create internal table and work area, based on the above:
    DATA : gt_... TYPE TABLE OF mmcr_drseg_co.
    DATA : gw_... TYPE mmcr_drseg_co.
    hope this helps some
    ec
    UPDATE : Rich is right, it is possible to do it only in ABAP with the DEFAULT KEY addition.

  • Disable the pop-up message box "How would you like to open this file" to open pdf file??

    Hi,
    is there any way i can stop the pop-up box displaying to open pdf file in sharepoint document library? Right now whenever i am trying to open pdf file, asking "how would you like to open"  Read only or edit mode. currently MIME Type is setup
    but still pop-up message box.
    Thanks in advanced!

    Hi ,
    As far as I know, This is a default feature. and is not recommended to delete or deactivate this pop up. 
    This is a feature of office and there is a dll called owssupp.dll which is responsible for getting the popup to open.
    You can go to IE tools> addon settings and deactivate the above dll (sharepoint open document class). But if you do so, then the other office office files which are word/excel/pptx etc.. would aslo gets affected and they also wont get the popup.
    Hope this helps.
    Best Regards, Ashok Yadala

  • How would you write a "wildcard" in a filefilter?

    How would you go about to have a wildcard instead of the "*" in the following filefilter;
              File[] files = new File("./resultat/resultat_" + "*" + "_" + index[0]).listFiles (new FileFilter () {
                    public boolean accept (File file) {
                        return ! file.isDirectory ();
              });All help appriciated
    - Karl XII

    Shouldn't "a*" accept all files that begins with "a" and ends with whatever?No. "*" in regexp is a not a wildcard match. Instead it matches one or more instances of the preceeding
    value.
    Therefore "a*" will match "a", "aa", "aaa", "aaaa" etc but will not match anything which does not end in
    an "a".
    The following might help you out. (not the most elegent expression but it will do
    import java.util.regex.*;
    public class RegExp{
      public static void main(String[] args) {
      Pattern p = Pattern.compile("a*b");     
      Matcher m = p.matcher("aaaab");     
      System.out.println(m.matches());                    
      // interesting bit here
      // match one or more occurances of any characters in the ASCII charset  (the \\p{ASCII}* bit   
      p = Pattern.compile("hello_\\p{ASCII}*_b");     
      m = p.matcher("hello_wibble_b");     
      System.out.println(m.matches());
    }

  • How would you pass more than 255 args?

    I have an SFTP program that currently is only passed a single file. I am modifying it so that it will loop though an array of files to simulate an mput command. Originally I was just going to call the program with each file to be transferred as an argument but noticed the 255 argument limit. I am looking at potentially having 1500 - 2000 files to transfer at one time. I am just looking for advice on how this should be designed. One idea that was forwarded to me was to just create a listing of the files on the server and use that list file as my argument. Would this be the best approach for this issue?

    sdhalepaska wrote:
    georgemc wrote:
    sdhalepaska wrote:
    georgemc wrote:
    sdhalepaska wrote:
    georgemc wrote:
    I see no reason why you need an argument for every file.I would not necessarily need one for every file. Prior to our needing to use this for multiple files, it was easy enough to pass in one file as an argument. That is my question, how would you try to pass in a long list of files?Let's establish what you are concerned about. The 255 argument limit is on method signatures. From what you're saying here, you're talking about arguments being passed into your application from, say, the shell. Am I right?Correct, please see my clarified post. From what I have tested, the 255 argument limit appears to exist even for arguments passed to main.Ah, but arguments passed to main from the command line are passed into main as a single array of Strings, no matter how many of them there are. I have no idea what the limit on those is, but an array can hold millions of elements. I expect your shell will moan about that many, though.
    As I see it, you have a few choices. Unless these files are all in different, arbitrary directories, you can specify a list of directories for your app to search. Or you can pass them all in one at a time, and see how you go. Or you can list them in a text file, pass that to your app and have it work them out. Or write a script that invokes your app multiple times. What you don't need, is a method that takes each file as an argument.Thank you for walking me through this. Would you mind telling me which way you would lean if you were designing this? The files will all be in a single directory on the server and I would not like to invoke the app multiple times as it creates a connection during each invocation. They're all in the single directory. Ok, are all the files in that directory to be transferred? If so, I'd just pass the directory name to the app, and have it iterate over all the files. If it's only to be certain ones, how do you know which ones? Is there some regex or filtering you can do on the command line?
    If you are interested, the 255 argument limit for main that I tested was from this article:
    [http://www.javaspecialists.eu/archive/Issue059.html|http://www.javaspecialists.eu/archive/Issue059.html]
    It does die at 255 using Java 1.5.Like I said, arguments to a method are thus limited. But the args passed to an app are passed to main as one argument - an array. In short, that article is not relevant to your problem.

  • How would you go about saving an online image locally?

    Say if you knew the url such as http://www.yahoo.com/img.jpg
    How would you save this locally?

    Read the answer in your previous posting:
    http://forum.java.sun.com/thread.jspa?threadID=772451
    Use the file as an InputStream to read the data and then use an OutputStream to write the file.
    The logic is the same as reading and writing a file from disk once you have the InputStream.

Maybe you are looking for