Problem Recording Audio

Hi All,
I have an audio conferencing application which is working quite well. All of the audio is relayed through the server to the appropriate clients. I am in the process of making these meetings archivable; to do so I need to save the the incoming stream on the server side to a file while retransmitting it. The problem is that the client sends out the stream in RAW_RTP format (RTP won't send) and I can't find a way to create a datasink based on this type of audio. I get the error: Cannot find a DataSink for: com.sun.media.multiplexer.RawBufferMux$RawBufferDataSource. I have tried converting to several different types of formats, the only one that actually worked was .aiff but when I went to open it the file was corrupted. Is there any way to create a datasink based on received RAW_RTP stream?
Here is the code for saving the audio (on the server side):
        teacherArchiveProcessor = Manager.createProcessor(ds);
            if (!waitForState(teacherArchiveProcessor, Processor.Configured)){
                System.out.println("Error - Could not configure processor.");
                return;
           FileTypeDescriptor cd = new FileTypeDescriptor(FileTypeDescriptor.AIFF);
           teacherArchiveProcessor.setContentDescriptor(cd);
            TrackControl track = teacherArchiveProcessor.getTrackControls()[0];
            track.setFormat(track.getFormat());
            System.out.println("Track is set to transmit as:");
            System.out.println("  " + track.getSupportedFormats()[0]);
            if (!waitForState(teacherArchiveProcessor, Processor.Realized)){
                System.out.println("Error - Could not realize processor.");
                return;
            MediaLocator dest = new MediaLocator("file://archive.aiff");
            teacherArchiveDataSink = Manager.createDataSink(teacherArchiveProcessor.getDataOutput(), dest);
            teacherArchiveDataSink.open();
            teacherArchiveDataSink.start();
            //Start sending
            teacherArchiveProcessor.start();Here is the code for the sending out the audio (on the client side):
CaptureDeviceInfo di = (CaptureDeviceInfo) CaptureDeviceManager.
                    getDeviceList(new AudioFormat("linear")).firstElement();
            mediaLocator = di.getLocator();
            //Get the datasource
            dataSource = Manager.createDataSource(mediaLocator);
            //Create the processor
            processor = Manager.createProcessor(mediaLocator);
            if (!waitForState(processor, Processor.Configured)){
                System.out.println("Error - Could not configure processor.");
                return;
           ContentDescriptor cd = new ContentDescriptor(ContentDescriptor.RAW_RTP);
           processor.setContentDescriptor(cd);
            TrackControl track = processor.getTrackControls()[0];
            track.setFormat(new Format("LINEAR"));
            System.out.println("Track is set to transmit as:");
            System.out.println("  " + track.getFormat());
            if (!waitForState(processor, Processor.Realized)){
                System.out.println("Error - Could not realize processor.");
                return;
            dataOutput = processor.getDataOutput();
            //Create the transmitter
            PushBufferDataSource pbds = (PushBufferDataSource) dataOutput;
            SendStream sendStream = rtpSendManager.createSendStream(dataOutput, 0);          
            sendStream.start();
            //Start sending
            processor.start();
            sendingAudio = true;

I solved the issue. In case anyone else runs into the same issue you can save an incoming RAW_RTP stream by setting the content descriptor on the receiving side to FileTypeDescriptor.MPEG_AUDIO and setting the track to AudioFormat.MPEG. I found this out after hours and hours of trying random combinations until I found one that worked.

Similar Messages

  • Problem recording audio from sampler...

    Problem recording audio from sampler (MPC 1000) to Logic using midi trigger thru Lexicon Omega box.
    When I hit the record button in Logic, it triggers my mpc to start playing. Logic then picks up the incoming audio signal on the appropriate track and starts recording the audio... PROBLEM- Logic appears to keep restarting the incoming audio, repeating the first 1/4 of the first 1Bar. So every time I hear the metronome tempo counter as it records, the incoming audio replays from the beginning and this is what gets recorded. On the contrary when I'm controlling the sampler via midi and just hit the play button in Logic, the audio signal comes threw and plays the full 4 bars of the audio that I want recorded.
    Any idea on how I can fix this? It seems like it has to do with my metronome counter or midi time code?
    Thanks to all that help!

    Thanks, good suggestion but these are music instruction dvds that aren't copyrighted.
    cheers
    Eric

  • Problem recording Audio since 10.5.7 update

    Hi,
    I have a MBP Late 2008 and a Mackie Spike XD-2 sound card (used with USB), Garageband 4.1.2 and Logic pro 8.0.2
    However since the update, every time I record audio with the Mackie, all audio guitar and vocals is distorted, crackly and almost electronic sounding.
    I have tried it through Garage band and Logic pro 8.0.2. and both have the same effect.
    I was able to record fine on 10.5.6 and I know that there is nothing wrong with the sound card as it works on another macbook running a lower OS prior to 10.5.7.
    I haven't got time machine running. I do have an external HD for my PC but when I connected it to my mac it said that I would have to re-format it which I am unable to do due to the large amount of windows documents on it.
    I am really unsure whet to do. Can you roll back to 10.5.6 by re-installing it? or if I re-install my original OS and update to 10.5.6 will it remove all of my data and programs.
    Please help, I'l tearing my hair out here and really need to get my recording done.
    Thanks

    Philso69 wrote:
    Ok so we can all look forward to buying new printers when the next update comes out!...
    Of course not, but some old printers and other hardware will eventually not be supported.
    According to Apple, Snow Leopard will only run on Intel machines.
    "Mac computer with an Intel processor - 1GB of memory"
    No jus joking but really they must have some liability for ensuring the compatibility of 3rd party devices that were compatible in previous versions of Mac os x.
    They cannot insure that each and every piece of hardware in the world is supported by every update. It's up to the user to properly vet the updates. The best way is to clone the OS and update the clone and see what works and what does not work.
    I mean mackie doesn't write the software?
    They don't? Somebody does. Maybe that's the problem.
    Message was edited by: nerowolfe

  • Problem recording audio in iMovie

    I am currently having problems recording a voice over in iMovie. I have checked the The system settings and it is recognizing my usb microphone as the source for input. I can also record audio within another project, just not in the one I want to. This makes me think something has been changed within the project settings. Any suggestions?

    If the QT movies"that iMovie generates" are fine, then your DVDs that iMovie makes may be fine since iDVD uses QT movies. I would try one, SHare to MEdia Browser at the highest resolution (this can take hours) then open iDVD and migrate to that movie, drag it into iDVD window and burn and see.
    roger

  • Problems recording audio through garageband

    Hello Mac world, I'm completely new to the Mac computers, and just purchased my MacBook Pro with a 2.3 ghz quad-core i7 processor, 16 GB of RAM, and 512 GB SSD, so I don't think specs are the problem to my issue. I purchased the Mac to record audio, and also purchased an audio interface to record through (Focusrite Scarlett 2i2). I have downloaded the most recent drivers for that. I connected my guitar through the instrument input, connected the interface through USB, and connected headphones into the headphone jack. I can hear the audio playback while I play through the headphones, but my problem relates to the actual recording process, as well as the audio playback.
    When recording, I get the following error: "Error while trying to synchronize Audio and MIDI - Sample rate 41068 recognized. Check conflict between GarageBand and external device". I read that GarageBand requires a sample rate of 41000, but I don't know how to check/change that. I also can't hear the metronome or the count in while I play/record. My input source is Mono 1 (Scarlett 2i2 USB), instead of Stereo (Scarlett 2i2 USB) in both my GarageBand preferences and my System Preferences.
    Next, I have a problem hearing the audio playback after recording. Again, I can hear the guitar while I play, but not after I record. Also, like I mentioned above, I can't hear any metronome or count in.
    I also successfully recorded using a MIDI controller when connecting directly from the controller to computer using USB. Again, I don't think that my system specs are an issue, but I am completely new to the Mac side of things, and am not sure where I am going wrong with this.
    Does anyone have any clues as to what the issue may be? Any help would be greatly appreciated.
    Thanks!
    Adam

    WO HOO I answered my own question.
    I found this little gem of a tutorial:
    http://homepage.mac.com/beryrinaldo/gbsf/
    ...which outlines how to route DV audio into garageband using soundflower. Worked like a charm!

  • Cubase 5 - Problems Recording Audio

    I'll just cut straight to it, I cannot record audio at all. I experienced no problems when I had Cubase SX on the PC, but since using a mac for the best part of a year, I can't for the life of me figure out how to set this up the right way!
    Any help out there, guys?

    I haven't actually! How would I exactly? I've taken a screen shot of the Audio MIDI Setup... http://i56.tinypic.com/1zwiwqa.png
    P.S. Sorry for the late reply, been pretty hectic of late!

  • Problem recording audio 'overwrite'

    I have a demo file recorded and attempted to use the audio
    dropdown to re-record audio. The process went normally - the system
    tested for audio signal and the recording was done. I pressed stop
    and the top of the window said that the recording would replace the
    existing audio. However, when I close that window the original
    audio is still there. What am I doing wrong? Thanks.

    Hi,
    Make SURE the track you are going to record onto is:
    1. An AUDIO track. MIDI tracks, aux objects, bus objects,etc. do not record audio, ever. Only AUDIO tracks do this.
    2. Has the CORRECT input chosen. Check the channel parameters on the left of the arrange page to see what the input is.
    3. Is RECORD-ENABLED (the r that turns red when you click it)
    Also, make SURE your Core Audio is the latest version.
    Cheers

  • Problem Recording Audio Stream: audacity, HDA Intel ALC882, Stereo Mix

    Hi,
    I am trying to record an audio stream using Audacity, but I am having problems. From the mixer toolbar dropdown, I have various options for mic, line, cd, but there is no option for 'stereo mix.'  I have looked at alsamixer, and none of the capture channels are muted.  I would be grateful if someone could point me in the correct direction.
    Regards,
    Ian Sutherland

    You need pulseaudio to capture from the mixer. Try this:
    http://www.ubuntugeek.com/sound-solutio … users.html
                    it worked for me in my Lenovo T61 with HDA Intel sound
    Good luck

  • HD read-write problems recording more of 16 audio tracks

    I've a strange problem that i don't have in digital performer with rosetta!
    When i record more of 5-6 track...for example 16...when i stop the registration....logic is blocked for 30-40 seconds....and then it begin to create overview!
    in this time i've see the hd read and write at 5 mb/sec....
    It isn't normal!!! I've tried all the settings of audio driver and buffer....but nothing change
    anybody can help me?!?
    p.s. sorry for my bad english!

    1 : Waht sample Rate are u using -
    2 : I have disk Journaling on and record @ 96KHZ - and can do 64 tracks simoultaneously (split on 4 drives)
    3 : Is your recording drive very fragmented if so defragment it
    4 : Dont EVER record to your system drive - too much activity going on there
    5 : Set your Max Recording time to 10 minutes in the "Set record path" dialog in Logic ( If you have not set the max rec. time Logic will "Freeze" all available space on the disk for the recording and that can lead to problems especially if u aint using a dedicated hard drive to wirte your audio to
    6 : it is very important to have a dedicated drive to record audio to - being an internal SATA or Firewire 400/800 - as long as this drive is being used to record only...This has solved many problems for me...

  • Pause button problem while recording audio

    Someone talked about that problem on another post but I think
    that problem deserve a post for it...
    We have a probleme when using the pause button while
    recording audio on a slide.
    If we hit the pause button, it completely deletes all
    previous recording in the slide.
    If someone have a long text to read for a slide he cannot
    take a break and think if everything is ok. Our clients are
    disappointed and calls this function.
    Do you have an idea when that problem will be solved ?
    Thank

    Hi Edji, I could not agree more. We reported this to Adobe
    months ago and it has been acknowledged, but no information will be
    made availlable about any fix release date. We have over 500 staff
    users making recordings using Presenter and have trained the
    majority on version 6. Imagine the number of supports calls we have
    had to deal with when suddenly the pause button deletes all
    previous slide recordings in version 7.
    Depsite many attampts to get a resolution for this we have
    had nothing aside from the suggestion above which certainly does
    not fix the issue. It is a significant bug in the program that has
    caused us endless hours of support work.
    We are quite dissappointed at present with the lack of
    reponse to the need for a fix and are currently evaluating a number
    of other products.
    Pityful but true.

  • Problem with the preview of recorded audio

    Hi lads! I'm running Logic 8 in my iMac, with a RME Fireface400 interface (connected through a Lacie external firewire hard disk), and I have a small problem.....
    I'm trying to record audio using my audio interface. I can record audio into Logic with no problem, everthing works fine, but the recorded audio part just looks empty in Logic! It is really recorded, and it sounds, but it just look like an empty audio part.
    If i close the project and I re-open it, the audio is prevosialized and it looks fine.
    I know it is a small deal, but it can be very annoying! This thing happens since I bought the RME, but....it really looks like a Logic issue....
    Is there any option like "auto preview recorded audio" in Logic? Does anybody know how to solve this little issue?
    Thanks!

    So what you are saying is that no overwiew of the waveform has been drawn? And that it has been drawn when you reload the song?
    Open the region with the audio file in the *Sample Editor*, and choose *Refresh Overview(s)* from the *Audio File* menu in the Sample Editor.
    regards, Erik.

  • Problem in recording audio on Note 2,3 (AIR 13)?

    Peace be upon you ^_^
    My team and I developed an android game using flash pro cs6, we published it like two months ago.
    Now,we are fixing the bugs for the next update.
    1 level in the game accesses the microphone to check for input only,doesn't record anything (record audio permission)..
    it just listens for sound to blow up a balloon.It works perfectly on most devices,but some users reported it not working !
    I checked some cases my self, it didn't work on Samsung Note 2,3 running jellybean 4.4.2, some SIII phones and others.
    my phone is SIII (jeallybean 4.3) and it works fine on it ..
    WHY? what could be the problem?
    I suspect it's AIR compatibility problem with some android versions ... :/
    *please note that AIR runtime is embedded inside the app (captive)
    thank you for your help

    Peace be upon you ^_^
    My team and I developed an android game using flash pro cs6, we published it like two months ago.
    Now,we are fixing the bugs for the next update.
    1 level in the game accesses the microphone to check for input only,doesn't record anything (record audio permission)..
    it just listens for sound to blow up a balloon.It works perfectly on most devices,but some users reported it not working !
    I checked some cases my self, it didn't work on Samsung Note 2,3 running jellybean 4.4.2, some SIII phones and others.
    my phone is SIII (jeallybean 4.3) and it works fine on it ..
    WHY? what could be the problem?
    I suspect it's AIR compatibility problem with some android versions ... :/
    *please note that AIR runtime is embedded inside the app (captive)
    thank you for your help

  • Problem with audio quality using Record Audio Comment

    I am recording audio comments in Adobe Acrobat Professional using the "Record Audio Comment" tool. The sound quality is bad--very scratchy and has a noisy hum. I am using a good USB headset/microphone. Recordings outside of Acrobat are fine, e.g., in Audacity. I have tried two different microphones with both Acrobat 8 and 9 on two different computers (a desktop and a laptop) with similar results.
    I have not found an audio quality setting in Acrobat. Is there some way to improve the audio quality when recording comments? I suspect Acrobat is compressing the audio so much in order to save file size, however, the poor quality makes it almost unusable.
    Thanks in advance for any suggestions or advice. I know I can record outside of Acrobat and then add the pre-recorded audio as a comment, but that defeats the purpose.
    Bev

    Sorry to hear you are having problems. 
    A few things you can try: 
    1. Turning the volume of your TV up too high during a call can cause the kinds of audio problem you describe. Try turning the TV volume down and this should stop the 'feedback' problems you are having. 
    2. If you are using external speakers, then try switching these off and using the speakers built in to the TV. The TV was originally tested for Skype using the TV's internal speakers, so if you have a soundbar or other external speakers connected, the audio performance may suffer on Skype calls. 
    Best wishes

  • Unable to record audio

    I am trying to record audio into Logic through a electro-acoustic guitar and AKG microphone, which are both plugged into my Saffire 6 interface. Everytime I set up a new audio track and select the 'R' record button, a loud static noise plays through my monitors. You can see that the interface is picking up a signal from the guitar but all you can hear is the static.
    When I increase the gain on the instrument channel on my interface, the noise stays at the same level. But when I increase the volume of the monitors or the volume of the mixer channel in Logic the noise gets louder. This makes me think that all the cables are fine but it is something to do with a setting in Logic.
    The mixer channel in logic always looks like this when audio recording is enabled:
    I've read on some other forums that it might be to do with the buffer size - I've tried changing this but the problem seems to persist. I also read that it might have something to do with setting the midi clocks in the synchronization tab but there wasn't enough information explaining how to do this.
    My midi setup currently looks like this:
    I've had this problem for ages now and can't find a way around it....

    Couple of more questions:
    Does the Focusrite have a feature called zero latency monitoring, also called direct monitoring? If so make sure it is turned off and not used. The Saffire has a "Mixer" knob, do you have that in the correct position. Do you have the latest drivers?  2.6 it looks like.
    http://www.focusrite.com/products/audio_interfaces/saffire_6_usb/downloads/
    Does the microphone channel work ok? Have you tried reversing them.
    What happens to that channel if the guitar is not plugged in, is there any noise?
    Are you using a standard 2-conductor guitar cable, or is it by chance a three conductor stereo cable? It should be just a standard guitar cable.
    It there anything else being used on the USB bus, are you plugged into a USB hub or directly into the Mac?
    Speaking of which, wht Mac and OS?

  • Trying to record Stereo Mix with a monitor through my headphones.  Using Screenium to record Audio and Video, using Avid MBox Mini with MXL 909 Microphone for the audio through the interface.

    Basically, what I am trying to do is this:
    Record my screen through Screeenium, record my voice as audio through an Avid MBox Mini (interface) with a MXL 909 microphone to pick up the audio.  I have all that figured out.  I'm able to efficiently record my audio and screenplay through these instruments and programs.  What I am having trouble with is the stereo mix.  I am running into a slew of problems here... My goal: Add on the audio of a game that I am playing (for example, Amneisia) so that the audio for my game will be picked up internally, and not through the speakers to be recorded through the microphone.  I want there to be no external sound except me talking into my microphone.  I also want to be able to HEAR the audio of the game through my headphones (and if possible, myself as well, through a monitor maybe?)
    Problems I have run into so far:
    -Haven't gotten it to pick up in game audio at all while using headphone.  Can't figure this out
         -Downloaded soundflower, have the output as soundflower.  Not picking up anything, will put all my sound and midi settings at the end.
    -When I do record through my microphone, it is only picking up a single channel (left earpiece only, no right channel)
         -I have figured out it is NOT the equipment, I use Pro Tools and am able to pick up both channels with my mic, recorded a few tests. It's settings and I can't      figure it out
    -Trying not to run 16 million programs while running the game, will cause lag.
    Summed up:
    Trying to record:
    -Audio from gameplay of any game I am playing through alternative route of speakers (do NOT want to record game audio through speakers, internally)
    -Record voice through Avid MBox Mini and MXL 909 microphone.
    -Record screen gameplay through Screenium
    I followed a guide that told me to achieve "stereo mix'' I need to download soundflower and follow "X" steps.  That is done and these are my current settings:
    Audio Midi Setup - Stereo Mix custom Aggregate Device, Soundflower (2ch) selected, Avid Mbox Mini selected, Soundflower Output #1 has 2 channels (1-2), using Avid MBox mini for "Input" in order to record.  Using Soundflower AND Avid MBox mini as "Output" in order to hear the sounds and replay game sounds (could be the problem? Maybe?)
    Sound Settings - Output Stereo Mix (custom channel)  Input Avid MBox Mini (recording)
    I'm hoping this isn't too hard to understand.. I'm VERY bad at explaining information regarding computers.. It's hard becuase I don't understand it.  I can clarify anything that I am able to, so any help on finding certain things would be greatly appreciated.
    My computer: Macbook Pro MAC OS X Lion (11G63) 10.7.5  2.4 GHz Intel Core i7 4GB 13333 MGz DDR3  (If any of this is imporant)

    Hey guys,
    I tried to do some research and it looks like you need to have an external device and its drivers, such as an external microphone, installed on the computer to record audio that can be saved as a sound file. Another Suggestion is to try an auxiliary spliter for your headphones and external speakers?
    What software are you using to record your game?
    If anyone knows anything different, please let me know.
    Thank you for being a part of the Lenovo Family,
    Catie
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Donate KUDOS and Click "Accepted Solution"

Maybe you are looking for