Capturing multiple video streams into a movie file

I am using QTKit to capture 3 media streams simultaneously: audio, video, and display (display is screen capture), and would like to capture them in a time-synchronized fashion to a single .mov file.
I have been able to successfully capture these three streams to 2 separate .mov files by using 2 QTCaptureSessions (one for audio/video, one for display video), but the problem here is that the 2 files are not time-synchronized (I have no idea how to synch them after the fact).
The more intuitively correct thing to do is to use a single QTCaptureSession instance with 3 inputs (2 video inputs and one audio) to do the capture, which should automatically synch all the streams. Furthermore, since the .mov file can support an arbitary number of streams, I figured wiring up the QTCaptureSession to output to a single .mov file would be easy. I was wrong.
The problem is that even though my QTCaptureSession has 3 nice input connections (2 video and 1 audio), when I wire up a QTCaptureMovieFileOutput to it, the resulting QTCaptureMovieFileOutput object has ONLY 2 connections: a single video and a single audio.
Here is snippets of what I am doing:
// add audio input: (type of media is QTMediaTypeAudio), succeeds
[qtSession addInput:[QTCaptureDeviceInput deviceInputWithDevice: qtAudioDevice] error:&qtError]
// add video input: (type of media is QTMediaTypeVideo), succeeds
[qtSession addInput:[QTCaptureDeviceInput deviceInputWithDevice: qtVideoDevice] error:&qtError]
// add display input: (type of media is QTMediaTypeVideo), succeeds
[qtSession addInput:[QTCaptureDeviceInput deviceInputWithDevice: qtDisplayDevice] error:&qtError]
// create file output
QTCaptureMovieFileOutput * qtFile = [[QTCaptureMovieFileOutput alloc] init];
[qtSession addOutput:qtFile error:&qtError];
// PROBLEM: if I look at this array of connections, it has ONLY 2 connections
// 1 video, 1 audio!!!
NSArray *connections = [qtFile connections];
// start capture running
[qtSession startRunning];
// wire up to my file
[qtFileOutput recordToOutputFileURL:[NSURL fileURLWithPath:outputFileName]];
I desperately need help....my questions:
1. Since QTCaptureSession supports arbitary inputs, and QTMovie supports arbitrary # of streams, I can't believe it's not possible for me to simply "hook" all the inputs of QTCap to output connections that will write to streams in one movie file. Clearly, QTCaptureMovieFileOutput is not doing this...can anyone tell me how to do this? This can't be hard, right?
2. If I have to fall back on the ridiculous approach of capturing 2 unsynchronized .mov files and somehow synching them after the fact, can anyone provide a pointer on how to do that?
Thanks VERY much!
Steve

As posted by Andy Mees...
perhaps more realistic (and fcp friendly) would be this:
http://www.virtualvtr.com/pictureready/index.html
or this gem that popped up on the LAFCPUG boards a few days ago ... well worth a gander
http://www.softronmedia.com/products/products/mvr.html
...in this thread...
http://discussions.apple.com/thread.jspa?messageID=5968334&#5968334
Hope that helps,
K

Similar Messages

  • Snow Leopard iTunes 10.5 will not play multiple video tracks in QuickTime .MOV files

    I recently discovered that Snow Leopard iTunes version 10.5 won't play multiple video tracks in a QuickTime .MOV file.
    Both video tracks appear and play correctly when playing the file in:
    - QuickTime Player 10 or QuickTime Player 7.7 on the same Snow Leopard machine
    - iTunes 10.3.1 on another Snow Leopard machine
    - iTunes 10.5 on Leopard or Windows 7
    So I think the problem is iTunes 10.5 on Snow Leopard (although I haven't been able to test iTunes 10.4).
    First test file is two 640x480 video tracks side-by-side (total dimensions 1280x480):
    http://160.94.17.23/demo/two-video-tracks-1280x480.mov
    All I see is the first (left) video track, and not the right one.  iTunes "Get Info" command incorrectly reports the video dimensions of the file as 640x480.
    Second test file is two 640x480 video tracks played one after another (duration of 10 seconds each):
    http://160.94.17.23/demo/two-video-tracks-640x480.mov
    All I see is the first video track, and although it reports the correct file duration (20 seconds), the second video track never appears -- it simply freezes on the final frame of the first video track for the last 10 seconds.
    Anyone else see similar behavior?  Unless I'm missing something, I suppose I should submit this as a bug to Apple.

    I have the same problem, i tried re-installing, converting it to AVC H264 but none seems to work so far

  • MUXing audio & video streams into one .mpg file

    Hi,
    Anyone had any luck using DVD Studio Pro or Compressor to take a video and audio stream and combine them into one finished MPEG 2 file sutable for use on an MPEG server? I need to do that and haven't found a way with either program to MUX audio and video together.

    Build your DVD. Each track will be a different VOB in the Video_TS folder. menus in VTS0[1]0.VOB where the [1] changes based on VOB, video/audio starts with VTS0[1]1.VOB
    They will be in the order they appear in the track layout in DVD SP (unless you change them in VTS view in DVD SP 4+) If there is alot of material you will see
    VTS0[1]1.VOB
    VTS0[1]2.VOB
    etc.
    Open the appropriate VOB in MPEGSTREAMCLIP

  • How do I combine an .m2v file and an .ac3 file into a .mov file ??

    Hello,
    I had a question regarding Demuxing M2V and AC3 files so that they can be combined into a .mov file. 
    A few years ago I converted a .mov file into an .m2v and an .AC3 using Final Cut Pro. I lost the FCP Project and .mov files and only have the .m2v and .ac3 files left.   When I tried to combine them together in FCP, the audio did not match up anymore even though it matches on DVD Studio Pro.    I was told that I needed demux the files.   How do you do that ???
    Thanks so much for your time !!!
    Happy New Year!
    Doug Lantz

    A few years ago I converted a .mov file into an .m2v and an .AC3 using Final Cut Pro. I lost the FCP Project and .mov files and only have the .m2v and .ac3 files left.   When I tried to combine them together in FCP, the audio did not match up anymore even though it matches on DVD Studio Pro.    I was told that I needed demux the files.   How do you do that ???
    Doug,
    Am posting the workflow discussed in my last email here in the event others might be interested.
    Best workflow I've found to resync and convert the M2V/AC3 elementary stream files to an MOV ProRes422/AIFF file are as follows:
    1) Convert the AC3 audio file to AIFF. (My system is configured for AC3 so I used QT 7 Pro here. My only compaint at this point is that my original AC3 file was DD5.1 and my QT 7 Pro component only supports stereo conversions.)
    2) Simultaneously drop-import the original M2V file along with the converted AIFF file to MPEG Streamclip (requires the QT MPEG-2 Playback component be installed).
    3) Sample playback of the combined data to ensure audio and video are correctly in sync throughout the file.
    4) Use the MPEG Streamclip "Export to QuickTime" File menu option to export the current date to the target Apple ProRes422 video target you want and pass the AIFF PCM audio through to the MOV file container without further processing.
    5) Import the ProRes422/AIFF MOV file to your FCP bin and reset project default codec use to match imported file when asked so you don't have to do any re-rendering for final output.
    6) I re-checked file playback in the Preview window to ensure A/V was still in sync before beginning edits in the project timeline.
    All went well for me using this workflow. You may want to give it a try and let us know if it worked as well for you.
    Good luck!

  • Multiple Video Streams on Same Monitor or Screen

    Is it possible to merge multiple video streams on the same timeline in PP CS5? I have a customer thats wants me to do thisfor him.
    This would be like you see a security monitor with three or four small images on the same screen.
    C. Barker

    Charles,
    What the client is asking for is PiP (Picture in Picture), and Colin has outlined the method for creating the PiP.
    I also find it easiest, when doing a lot of PiP work, to use alignment grids, to help me with both the Scaling and the Position. This ARTICLE goes into a bit more detail. For PiP, I will usually create a custom alignment grid, similar to this:
    Good luck, and hope that this helps,
    Hunt

  • HELP: Is it possible to record from multiple video streams using iMovie?

    Is it possible to record from multiple video streams using iMovie.
    I want to record a presenter on a greenscreen and also his powerpoint slides at the same time and cut from one to other.
    Can imovie record from screen and camera at same time?
    If so is there a link to somewhere explaining how to do so?
    If not, what is the most efficient way to do so, without having to learn a whole complex program?
    Please advise asap.
    Very many thanks

    Alan and Anthony,
    Thanks for the quick responses. Unfortunately, there is no backup :(.
    I will ask if they get logged into the global zone, but one thing I forgot to mention is that this zone (as are all our non-global zones and the global zone also) are configured for ldap logins.
    Assuming that they can even try to login to the global zone, can they even see the directory structure in the non-global zone (sorry, I haven't worked with Zones much thus far) from the global zone?
    Also, if they can see the non-global zones directory structure, what should they then try?
    Also, I've been searching and I've seen some suggestions of running a "pkgcheck -af" which might restore the directory permissions to what the various packages expect. Assuming that they can get to the point that they can at least log into the zone, is that something that would work?
    I'm setting up a new test Solaris box now, with a zone, to try to reproduce the problem. If I can reproduce the problem, I'll post back whether or not I see the same thing.
    In the meantime, if anyone has any suggestions, please post them.
    Thanks,
    Jim
    P.S. In case you're wondering, the box/zone that got messed up was a test/integration zone, and they were in the process of installing some software when this chmod happened.

  • With Premiere elements 11, when Publish/Share (saving) a finished video, selecting H.264  .mov file type, what are the recommended Codec and Aspect settings for a crisp video and a small file size?

    With Premiere Elements 11, when Publish/Share (saving) a finished video, selecting H.264  .mov file type, what are the recommended Aspect and Codec settings , for a crisp video with a small file size?

    Gary Krouse
    We will customize a very detailed reply, but
    (a) What are the properties of your source media?
    (b) What did you or the program set as the project preset to match the properties of the source media?
    (c) What specific requirements do you have for this H.264.mov export file?
    File size can be a compromise between bitrate, file size, and quality.
    Thanks.
    ATR

  • Storing that Video stream into our local disk in java

    Hi frendz,
    I want to know how to, Connect to a remote online webcam and store that Video stream into our local disk.
    Any java interface tools are there, or can we use java api to do so.
    Anybody Please share your valuable suggestions.
    thanx,
    [email protected]

    Hi frendz,
    I want to know how to, Connect to a remote online
    webcam and store that Video stream into our local
    disk. The jennicam is no longer online.

  • Only imports audio, no video when using DSLR .mov files

    I just upgraded to CS6 on my Mac Lion. I created a project using the DSLR settings and tried to import a .mov video clip taken from my Canon 5D camera. Strange thing is it only imported the audio and not the video. I tried many of clips and just audio.
    As tests, I tried importing a .mpeg clip from an HDV camcorder and it worked fine. I also changed the extension of the DSLR clip to .mpeg and it still didn't work. The DSLR clips imported fine in CS4, but not CS6. Also as another test, I tried importing on a different Mac computer using Premiere Pro CS6 (from creative cloud) and it imported perfectly. So I'm not sure why it's doing it on my computer? The files open fine in QuickTime.
    The only thing that worked was I exported the .Mov files from the DSLR to a HDV .Mov file and it DID import correctly. I don't want to have to go through that step everytime though (or loss the quality)
    Any ideas why this is happening? Thanks

    I too am having this problem.  The video I am trying to import is a .MOV file from a Canon 5D Mark III.  When I check the properties of the file in Premiere Pro 5.5, this is what it says:
    File Path: S:\Photos\5D mark 3\Video\0F2A0089
    Type: QuickTime Movie
    File Size: 55.7 MB
    Source Audio Format: 48000 Hz - 16 bit - Stereo
    Project Audio Format: 48000 Hz - 32 bit floating point - Stereo
    Total Duration: 00:00:15:07124
    Average Data Rate: 3.7 MB / second
    QuickTime Details:
    Movie contains 1 video track(s), 1 audio track(s) and 1 timecode track(s).
    Video:
    There are 453 frames with a duration of 1/29.97th.
    Video track 1:
    Duration is 454
    Average frame rate is 29.91 fps
    Video track 1 contains 1 type(s) of video data:
    Video data block #1:
    Frame Size = 1920 x 1080
    Compressor =
    Quality = Least (1.00)
    Audio:
    Audio track 1 contains 1 type(s) of audio data:
    Audio data block #1:
    Format = 16 bit - Stereo
    Rate = 48000 Hz
    Compressor = sowt
    Timecode:
    Timecode track 1 contains 1 type(s) of data:
    Timecode data block #1:
    Start Time = 00;00;39;04
    Reel name =
    As you can see PP 5.5 notices the video; it even tells me the # of frames in the video but it won't display it. It might be worth saying the video files from my Canon XF100 work just fine.  This is extremely frustrating.  Any help would be very much appreciated.

  • Multiple JSPs output into single PDF file

    Could anyone guide me on how do I combine output of multiple JSP files into a single PDF file? I have got 8 different reports and shall required to have single output of all of them in a PDF file. Its urgent. Please help.

    Hi Mahalakshmi,
    Clik on the link to view document: <b>[Combining Multiple Smartform Outputs Into One PDF File|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/62ae7fcd-0b01-0010-3e9d-a54f26944450?overridelayout=true]</b>
    Thanks
    Venkat.O

  • Multiple video streams displayed on separate monitors

    I'm working on a project that will have 6 screens showing 6 different pieces running simultaneously. We'll be cutting all 6 pieces in FCP, but i was wondering if there is anyway to view multiple video streams on 6 different displays running at the same time in FCP? Obviously some sort of display hub or router needs to be had, or perhaps some other hardware/software.
    Anyone have any great ideas?

    My old video professor from school did a lot of video installations. He often had trouble keeping multiple DVD players in sync with one another, they would drift over time. If you are thinking about the DVD player route, make sure you're using the exact same model for each player, and make sure to run tests over a long period of time.
    Of course, using an external genlock would probably prevent that, too.

  • Insert video stream into call

    Hello,
    Does anyone know if it is possible to insert a video stream from an IP camera into a call? The calling device is an intercom with a camera nearby and the call wil lbe going to an 8941 video phone. The camera is H.264 compatible. 

    Hi frendz,
    I want to know how to, Connect to a remote online
    webcam and store that Video stream into our local
    disk. The jennicam is no longer online.

  • Video distortion when importing MOV file into Premiere Pro

    On my mac my premiere is having issues when I import .Mov files. I was shooting on my Canon 70D DSLR at 30frames and when I import files the playback breaks up and is distorted at various points. It doesn't seem like all the files are doing this only some of them have this problem when they are imported. The footage was all shot under the same settings in the same 3 hour period. I tried exporting files and the distortion is still present in the exported media file. I've attached a screen shot of what it looks like.

    Interesting that it's on the same frames ... have you certain effects that would impact those more than others?
    Also ... only 8Gb RAM, sounds like one internal that's pretty much stuffed, and footage on an external ... PrPro runs a ton of crap through both the CPU & the GPU (depending on what you're doing and how much it "likes" your GPU/Vram)  and also writes massive files to the database, media cache, and through the CPU use the OS's system cache typically. You've got a LOT of readin'/writin' going on, and with only 40Gb free there's not a lot of free space for things to be just parked for random access in a moment or two.
    Also curious ... what's the connection to the external? USB2 or 3? Thunderbolt? eSATA?
    Neil

  • Video Streaming Premiere E11 movie

    I would like to video stream a 1 Hr. AVCHD movie completed in Premier Elements 11 to a 50" HD TV.  I would appreciate some help as to the procedure:
      (I have not streamed video/TV/etc. before)
    1.  The video will be streamed via WiFi to a Blue-Ray player.
    2. Will the quality be as good as a BD disc?
    3.  What settings do I use to save (share) PREL as?
    4.  What software do I need on my laptop to be able to accomplish the streaming.
    Thanks,
    Ed

    Ed
    Miscellaneous something for you to explore...
    The use of Apple TV connected to your TV (I used HDMI connection between these two).
    The TV has a Wifi connection to my computer's router.
    Import your video file into iTunes, then set Apple TV to "Computer" and, with iTunes opened (File Menu/Home Sharing enabled) on the computer, view your video in iTunes on the TV. iTunes typically accepts H.264.mov files. See Publish+Share/Computer/QuickTime.
    There is probably lots more written about this online. Above is just starter suggestion.
    More later if interested.
    ATR
    Add On...Another application...I can play iPod movies and songs on the Apple TV TV setup, using the iPod Air Play feature. The iPod has a Wifi connection.

  • How to make a 7.1 mix into a mov file?

    I want to make a .mov file with 7.1 audio.
    I need to define the channels.
    In Quicktime Pro it is quite easy to assign audio files to the channels, but there is no possibility to mix anything.
    There is no export option for mov with video.
    Could anybody give me an advice how to solve the problem?

    If you open an audio file that has 7.1 audio (and has the channel labels set correctly in the file), you should be able to save that as an audio-only QuickTime .mov file with the channels labeled.
    Unfortunately, you cann't _create_ such a file from scratch in Audition via the New File dialog.  So, what I did was to create several template files in QuickTime pro, with various channel labels, and save those from QuickTime Pro as audio-only .mov files.  I could then open those in Audition, paste the audio into the tracks that I wanted, and then export as a new file.
    One of the troubling things about "7.1" is that there's multiple accepted definitions of what "7.1" really is (i.e. are there 5 across the front, or extra ones on the side?).

Maybe you are looking for