Streaming Live and Recording at the same time

Currently I allow users to stream live Audio and Video and I would like to begin recording the Audio/Video at the same time.
The only way I can figure out streaming Live and Recording is to create two NetStreams and connect with the same NetConnection and have one netstream publish "live" and the other netstream publish "record". This just doesn't seem very efficient because it would be streaming the same thing twice to the FMS.
Is this the only way to go about this? or am I going the wrong way with this?

What you want to do is record to FMS.  Then use NetStream.Play(filename, -1) to only play live.

Similar Messages

  • How to stream Webcam and Desktop at the same time?

    Hey Guy,
    I just got a little Problem with  FMLE... I want to stream live during a Game, but I dont know how to stream Desktop and Webcam at the same time ^^. The streaming Platform i want to use is twitch.tv.. the most common Gamin Platform I think...
    I got an IMac i7.
    Pls help me   I dont get how all these ProGamer do it -.-
    Thanks in advance
    Kathi

    You're going to need additional software or hardware.  If you're running a Macintosh, try CamTwist.  It's free and allows you to create virtual "cameras" from just about anything you can see on your computer.  It's a bit clunky getting used to the interfact and how it works, however.
    Hardware solutions (like scanline converters and video switchers) can get pretty expensive.  So you may want to go with a piece of software that can handle on-the-fly video compositing/switching.  There are two applications that come to mind right off the bat -- and lucky for you, both of them can also output to a live streaming server. 
    Wirecast is a popular choice, although the pricing starts around $500.  It's Macintosh/Windows.
    A very popular choice among gamers is XSplit (Windows only) and is a subscription-based model (you pay a small fee by the month, quarter, or year).  XSplit has some very impressive compression happening under the hood, and was originally designed for gamers who wanted to share their desktop, XBOX, or PS3 adventures... all while also being able to lay over banners, PIP (picture-in-picture) of themselves, or anythhing else they wanted to clutter the screen with.
    If you're running on Windows, give XSplit at shot.  It can easily handle your desktop (or most anything else) as a "camera" as well as being able to lay your webcam on top of the desktop feed.

  • Reading and recording at the same time with AudioUnit

    Hi,
    I am trying to read and record at the same time on the iPhone with AudioUnit. For the reading part I made an AUGraph which works fine, constructed like that:
    NewAUGraph(&_graph);
    _outputUnitComponentDescription.componentType = kAudioUnitType_Output;
    _outputUnitComponentDescription.componentSubType = kAudioUnitSubType_RemoteIO;
    _outputUnitComponentDescription.componentManufacturer = kAudioUnitManufacturer_Apple;
    _outputUnitComponentDescription.componentFlags = 0;
    _outputUnitComponentDescription.componentFlagsMask = 0;
    AUGraphAddNode(_graph, &_outputUnitComponentDescription, &_outputNode);
    _mixerUnitComponentDescription.componentType = kAudioUnitType_Mixer;
    _mixerUnitComponentDescription.componentSubType = kAudioUnitSubType_MultiChannelMixer;
    _mixerUnitComponentDescription.componentManufacturer = kAudioUnitManufacturer_Apple;
    _mixerUnitComponentDescription.componentFlags = 0;
    _mixerUnitComponentDescription.componentFlagsMask = 0;
    AUGraphAddNode(_graph, &_mixerUnitComponentDescription, &_mixerNode);
    AUGraphConnectNodeInput(_graph, _mixerNode, 0, _outputNode, 0);
    AUGraphOpen(_graph);
    AUGraphNodeInfo(_graph, _outputNode, NULL, &_outputUnit);
    AUGraphNodeInfo(_graph, _mixerNode, NULL, &_mixerUnit);
    _generatorUnitComponentDescription.componentType = kAudioUnitType_MusicDevice;
    _generatorUnitComponentDescription.componentSubType = kAudioUnitSubType_RemoteIO;
    _generatorUnitComponentDescription.componentManufacturer = kAudioUnitManufacturer_Apple;
    _generatorUnitComponentDescription.componentFlags = 0;
    _generatorUnitComponentDescription.componentFlagsMask = 0;
    for(int i=0; i< [_urlList count]; i++)
    SoundBuffer* soundBufferTemp = [_bufferSoundList objectAtIndex:i];
    AURenderCallbackStruct renderCallbackStruct;
    renderCallbackStruct.inputProc = MyFileRenderCallback;
    renderCallbackStruct.inputProcRefCon = soundBufferTemp;
    AudioStreamBasicDescription* inputAsbd = [soundBufferTemp getASBD];
    err = AudioUnitSetProperty(_mixerUnit,
    kAudioUnitProperty_StreamFormat,
    kAudioUnitScope_Input,
    i,
    inputAsbd,
    sizeof(AudioStreamBasicDescription));
    UInt32 zero = 0;
    err = AudioUnitSetProperty(_mixerUnit,
    kAudioOutputUnitProperty_EnableIO,
    kAudioUnitScope_Input,
    kInputBus,
    &zero,
    sizeof(zero));
    err = AUGraphSetNodeInputCallback(_graph,
    _mixerNode,
    i,
    &renderCallbackStruct);
    This works well, for the recording AudioUnit I did the following:
    OSStatus err;
    AudioComponentDescription audioComponentDescription;
    AudioComponent audioComponent;
    audioComponentDescription.componentType = kAudioUnitType_Output;
    audioComponentDescription.componentSubType = kAudioUnitSubType_RemoteIO;
    audioComponentDescription.componentManufacturer = kAudioUnitManufacturer_Apple;
    audioComponentDescription.componentFlags = 0;
    audioComponentDescription.componentFlagsMask = 0;
    audioComponent = AudioComponentFindNext(NULL, &audioComponentDescription);
    err = AudioComponentInstanceNew(audioComponent, &_audioUnit);
    UInt32 size;
    size = sizeof(AudioStreamBasicDescription);
    err = AudioUnitGetProperty(_audioUnit,
    kAudioUnitProperty_StreamFormat,
    kAudioUnitScope_Input,
    1,
    &_soundFileDataFormat,
    &size);
    _soundFileDataFormat.mSampleRate = 44100.00;
    AudioUnitSetProperty(_audioUnit,
    kAudioUnitProperty_StreamFormat,
    kAudioUnitScope_Input,
    kInputBus,
    &_soundFileDataFormat,
    size);
    AudioUnitSetProperty(_audioUnit,
    kAudioUnitProperty_StreamFormat,
    kAudioUnitScope_Output,
    kOutputBus,
    &_soundFileDataFormat,
    size);
    AURenderCallbackStruct renderCallbackStruct;
    renderCallbackStruct.inputProc = MyRecorderCallback;
    renderCallbackStruct.inputProcRefCon = self;
    UInt32 one = 1;
    UInt32 zero = 0;
    err = AudioUnitSetProperty(_audioUnit,
    kAudioOutputUnitProperty_EnableIO,
    kAudioUnitScope_Input,
    kInputBus,
    &one,
    sizeof(one));
    err = AudioUnitSetProperty(_audioUnit,
    kAudioOutputUnitProperty_EnableIO,
    kAudioUnitScope_Output,
    kOutputBus,
    &zero,
    sizeof(zero));
    err = AudioUnitSetProperty (_audioUnit,
    kAudioOutputUnitProperty_SetInputCallback,
    kAudioUnitScope_Global,
    0,
    &renderCallbackStruct,
    sizeof(AURenderCallbackStruct));
    err = AudioUnitInitialize(_audioUnit);
    Then in I setup a file to write in:
    - (void) openFile
    OSStatus err;
    err = ExtAudioFileCreateWithURL((CFURLRef) _soundFileUrl,
    kAudioFileCAFType,
    &_soundFileDataFormat,
    NULL,
    kAudioFileFlags_EraseFile,
    &_extAudioFileRef);
    err = ExtAudioFileSetProperty(_extAudioFileRef,
    kExtAudioFileProperty_ClientDataFormat,
    sizeof(AudioStreamBasicDescription),
    &_soundFileDataFormat);
    err = ExtAudioFileWriteAsync(_extAudioFileRef,
    0,
    NULL);
    All this things works well (I check by printing err in the log which I removed here for clarity).
    And then in the callback for recording I do the following:
    static OSStatus MyRecorderCallback(void *inRefCon,
    AudioUnitRenderActionFlags* inActionFlags,
    const AudioTimeStamp* inTimeStamp,
    UInt32 inBusNumber,
    UInt32 inNumFrames,
    AudioBufferList* ioData)
    OSStatus err= noErr;
    AudioUnitRecorder* auRec = (AudioUnitRecorder*) inRefCon;
    [auRec allocateAudioBufferList:1 size:inNumFrames*4];
    err = AudioUnitRender(auRec.audioUnit,
    inActionFlags,
    inTimeStamp,
    inBusNumber,
    inNumFrames,
    auRec.audioBufferList);
    err = ExtAudioFileWriteAsync(auRec.extAudioFileRef,
    inNumFrames,
    auRec.audioBufferList);
    return err;
    (Then I close the file after recording at the same time I close the AudioUnit)
    Now the strange thing is that all this works perfectly well in the simulator: I can record and play at the same time but on the device, the callback for recording is not ran (I check by trying to print something in the log in the callback function.) which men no writing in the file and an empty file in the end.
    Any one has any idea of what could be causing this?
    Thanks
    Alexandre

    Just in case some one might need it, I solved my problem:
    I simply needed to initialize the AudioSession before playing/recording. I did so with the following code:
    OSStatus err;
    AudioSessionInitialize(NULL, NULL, MyInterruptionListener, self);
    UInt32 sessionCategory = kAudioSessionCategory_PlayAndRecord;
    err = AudioSessionSetProperty (kAudioSessionProperty_AudioCategory,
    sizeof (sessionCategory),
    &sessionCategory);
    AudioSessionSetActive(TRUE);

  • Streaming wifi and bluetooth at the same time is it possible in air play from iPod

    Streaming bluetooth and wifi at the same. Is it possible?

    You are not able to send the music to two different streams, you can use the bluetooth and wireless at the same time but for different tasks.
    The best way I have seen for what you are attempting, is to buy a wired splitter and two bluetooth transmitters, and have each transmitter broadcast bluetooth sound to the two different locations.
    I have not found any other way except when using itunes on a desktop computer which allows the selection of multiple output destinations.

  • Can't watch a programme and record at the same time.

    I rang Sky who say it's nothing to do with them. Gave me Lovedigital number. Rang them they said contact my landlord. Rang Bristol City Council, they say it's nothing to do with them.

    What I meant is the number of cables going into your Sky box. If there is only one cable going to your Sky box, that answers the question of why you can't watch one thing and record another at the same time - your Sky + box would require two inputs to do that. From what you've said it sounds like a communal dish set up. If that is right then whoever looks after that are the people you need to contact to see about the possibility of getting a double feed into your home. 

  • Streaming photos and music at the same time

    can someone explain to me how to stream my music and photos on my Apple TV at the same time (ie photo slideshow with music playing) I know you can do this if you sync everything but my music is 100Gb and doesn't fit on my apple tv or I would like to stream my music and sync my photos if possible?

    Same Question here. I have over 50gb of Photos so syncing is out for me. I'm okay with streaming all content, music , videos and photos but I want to hear my tunes while watching the photos.

  • Can't run Xbox live and computer at the same time

    I purchased a E3000 router for Christmas so we can run our new laptop, desktop, son's ipod, and the xbox live. At first, the only problem we had was that if a video or large page was downloading on the internet, xbox live would glinch and run very slow. Now, if someone's on xbox live and someone else turns on a computer, it boots them off xbox live. I don't know what the problem is. Any suggestions? Thank you.

    Is the Xbox connected to the wireless network?
    Try changing some advanced wireless settings on the router.
    Open the setup page of the router and go to Wireless tab. Click on Advanced wireless settings sub tab. Change the Beacon Interval to 75, RTS and fragmentation threshold to 2304. Save the settings.
    Click on Setup tab and change the MTU size to 1365. Save the settings and power cycle the router.
    See if that helps you.

  • Watching DVR and Recording at the same time???

    Can I record one show while watching a different show I have already recorded on my DVR?

    I think both were correct.
    You can watch a previously recorded program while two programs are being recorded.
    You can not watch a third channel while two programs are being recorded.
    Essentially the DVR can only tune in two channels at a time.

  • Recording and listening at the same time?

    So i'm recording using a usb micrphone, which works fine, i'd like to know how to hear all the instruments through my headphones and record at the same time, so i can actually hear when i need to come in to sing! any ideas?

    JanKaratas wrote:
    So i'm recording using a usb micrphone, which works fine, i'd like to know how to hear all the instruments through my headphones and record at the same time
    you're going to have to provide more details on your setup, because that is how GB works.
    you'd have to purposefully mute or solo tracks in order to not hear everything playing in your project

  • Can I use a camera for application in Labview and VBAI at the same time ?

    Dear all,
    I'm trying to save an AVI file with Labview and make an image process with VBAI at the same time, in one machine.
    The error : "Camera already in use" displayed.
    My Camera is a GIGE and I work with Imaqdx. I've test the multicast mode but it only operate with several machines.
    How can I do this ?
    Thank's to help me,
    Yoann B

    I'm not necessarily saying that.  It's been a while since I've used VBAI, so I don't remember all of the capabilities, but if VBAI can do the inspection and recording at the same time, you should be fine.
    The trick is that only one program can access the camera at the same time.  That application reserves the camera, thus making it unavailable to others.
    Chris
    Certified LabVIEW Architect
    Certified TestStand Architect

  • Is there a way to stream/publish RTMP, HDS, and HLS at the same time?

    Can I stream/publish all methods at the same time?  I really want most users to play my live streams via RTMP, however, fail over to HLS for Apple iOS.

    For your first problem, probably you need to insert something like this in your webpage to detect whether your webpage is being accessed from i-device or not..
    if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)))
               deviceType = "iphone";
    And it that is true, you may load following HTML in your video frame..
    <head>
    <body>
    <center>
    <video src="http://your-server:8134/hls-live/livepkgr/_definst_/liveevent/livestream1.m3u8" controls autoplay /> // HLS m3u8 url as src
    </center>
    </body>
    </head>
    otherwise if it Flash based device, load the osmf player .. with URL of .f4m (for HDS)
    In case you want to serve on RTMP, load something like sample video player
    sample index.html shipped with FMS in webroot folder may help you in this..

  • Recording Audio and Midi at the same time in Logic 7 Express Can it be done

    I am wondering if I can record audio and midi at the same time in Logic 7 Express. I am running my guitar thrugh a Roland GR 33, and a line out and using the GR 33 to trigger sounds in the Logic's synth section but cant seem to record all three tracks at once. If any one knows how let me know. Oh and I am running the GR Synth and Guitar into the Prosonus Fire Fox and have the GR 33 out midi to the Fire Box as well. So I guss the question is how do I sent up two audo tracks and one midi track to record in real time. Thanks Victor

    I am wondering if I can record audio and midi at the
    same time in Logic 7 Express. I am running my guitar
    thrugh a Roland GR 33, and a line out and using the
    GR 33 to trigger sounds in the Logic's synth section
    but cant seem to record all three tracks at once. If
    any one knows how let me know. Oh and I am running
    the GR Synth and Guitar into the Prosonus Fire Fox
    and have the GR 33 out midi to the Fire Box as well.
    So I guss the question is how do I sent up two audo
    tracks and one midi track to record in real time.
    Thanks Victor
    Try arming the audio tracks, select one of the tracks, then while holding down the shift key, select the midi track you want to record, arming the "r" on the midi track. Press "record".....
    HL

  • How do I record AND monitor at the same time?

    I'm having trouble while trying to record from my XLR connected microphone. I have the mic going through a USB preamp and my speakers are outputting directly through my Power Mac. I cannot seem to be able to record at the same time I monitor. I can't playback my recordings without first changing the audio setting to Built in Audio from Mobile Preamp. I swear I could do this with Logic 7. Can't I have the monitor be going through the computer and the input going through my preamp at the same time? Thanks!
    Appi

    Logic can see two or more audio interfaces at once, but it has to be set up in the Audio midi set up program on your mac, as an aggregate device using your built in audio and your USB device. Then you can choose the aggregate device in your Logic>preferences>audio>driver. After you choose it, you should be able to access all inputs and outputs at once
    Don

  • Recording MIDI and Audio at the same time....

    I am having an issue recording a simple piano softsynth along with a guide vocal. Whenever I punch in, the audio punches fine but the MIDI/softsynth track hiccups, causing a lag in sound even though the MIDI info seems to record fine. Also, this does not happen when recording MIDI alone-everything punches in fine. Is there some setting I'm missing somewhere or is Logic not able to do this smoothly? Any help would be greatly appreciated. Thanks.
    Message was edited by: dbboy

    Hi Fred,
    I bring you my wisdom...Yes there is hope.
    What you need to do is set the part you want to bounce into cycle mode. Dont worry, it will not cycle, it just knows now where to start and stop.
    Audio and Midi can be recorded at the same time, as long as the midi is from an AU within the mac and not from an external source.
    Good luck,
    Joe
    There is always hope

  • Recording vocals and guitar at the same time, using the Alesis IO dock!

    Hi there!
    I have an Ipad 2 with the newest OS installed etc. And I rea the other posts in here.
    I bought an IO dock from Alesis the other day and was full of exspectations, but I got a bit disappointed -> Garageband! When I bought the Ipad dock I exspected that I would be able to record (or just play and hear the inputsound from two devices) at the same time in my headphones! But I wasn't... Now I'm wondering if this is going to be fixed in an update or not? I think it would be a shame if this issue isnt adressed, due to the huge abilities the Ipad/garageband/Ipad docks withhold.
    So anyone know anything? I went to my musicstore and spent about an hour or so with the tech dude there trying dfferent setups, but unfortunatly without luck! Just to clarify that I didt just plugged in my guitar and got mad that it wasnt apple intuative!
    Hope someone can help :)

    I am wondering if I can record audio and midi at the
    same time in Logic 7 Express. I am running my guitar
    thrugh a Roland GR 33, and a line out and using the
    GR 33 to trigger sounds in the Logic's synth section
    but cant seem to record all three tracks at once. If
    any one knows how let me know. Oh and I am running
    the GR Synth and Guitar into the Prosonus Fire Fox
    and have the GR 33 out midi to the Fire Box as well.
    So I guss the question is how do I sent up two audo
    tracks and one midi track to record in real time.
    Thanks Victor
    Try arming the audio tracks, select one of the tracks, then while holding down the shift key, select the midi track you want to record, arming the "r" on the midi track. Press "record".....
    HL

Maybe you are looking for