Synched Audio and Video Capture in JMF?

I am in the planning stages of developing a speaker's corner for our university television station. Essentially, a button pressed by the user and a JSamp will send serial data to the computer(PC) that will execute the capture program. Before I proceed further, will I be able to capture both audio and video so that they will be in synch so that I can later bring both into a commercial video editing platform? Also, does the JMF support capture by firwire or USB only? Most of the forums seem to indicate that it is USB. Thanks, and any other advice would be appreciated.
-Steve

bump, thx

Similar Messages

  • How to stream audio and video captured from mic and webcam in sync.

    I am working on a video chat project. I need to capture audio and video from mic and webcam and create rtp stream for them. How can I proceed for this. Any source code help will be highly appreciated. Otherwise just guide me how to do this and point to any good resource which is directly related to my need.
    Thanx.

    t.b.m
    As mentioned by you, i am doing exactly like that . I have coded transmitter class. But at the receiver side it is unable to play the stream. I am posting my code . Can you please help with me with any mistake i m making in my code ?? Or with way I should receive stream at receiver side. Plz see my code. I am streaming to ip address 172.31.80.67.
    package heyram;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.media.control.*;
    import javax.media.protocol.*;
    import javax.media.format.*;
    import java.io.IOException;
    import java.util.Vector;
    import java.net.InetAddress;
    import java.awt.*;
    import java.io.*;
    import java.net.InetAddress;
    import javax.media.*;
    import javax.media.protocol.*;
    import javax.media.protocol.DataSource;
    import javax.media.format.*;
    import javax.media.control.TrackControl;
    import javax.media.control.QualityControl;
    import javax.media.rtp.*;
    import javax.media.rtp.rtcp.*;
    import com.sun.media.rtp.*;
    import java.lang.Thread.*;
    public class HEYRAM{
    Format[] format=new Format[2];
    Vector[] devices=new Vector[2];
    CaptureDeviceInfo[] di=new CaptureDeviceInfo[2];
       SessionManager rtpsm = new com.sun.media.rtp.RTPSessionMgr();
    Processor p=null;
    Processor p1=null;
    boolean result;
    public HEYRAM(String address,int port,int ttl){
        try{
                InetAddress destaddr = InetAddress.getByName(address);
                SessionAddress sessaddr = new SessionAddress(destaddr,
                                                             port,
                                                             destaddr,
                                                             port + 1);
                String cname = rtpsm.generateCNAME();
                    String username = null;
                try {
                username = System.getProperty("user.name");
            } catch (SecurityException e){
                username = "jmf-user";
            // create our local Session Address
            SessionAddress localaddr = new SessionAddress();
                SourceDescription[] userdesclist= new SourceDescription[]
                    new SourceDescription(SourceDescription
                                          .SOURCE_DESC_EMAIL,
                                          "[email protected]",
                                                                     1,
                                          false),
                    new SourceDescription(SourceDescription
                                          .SOURCE_DESC_CNAME,
                                          cname,
                                          1,
                                          false),
                    new SourceDescription(SourceDescription
                                          .SOURCE_DESC_TOOL,
                                          "JMF RTP Player v2.0",
                                          1,
                                          false)
                rtpsm.initSession(localaddr,
                                userdesclist,
                                0.05,
                                0.25);
                rtpsm.startSession(sessaddr,ttl,null);
            } catch (Exception e) {
                System.err.println(e.getMessage());
                //return null;
        // rtpsm.initSession(localAddress, defaultUserDesc, rtcp_bw_fraction, rtcp_sender_bw_fraction);
            // rtpsm.startSession(...);
    public void createVideoSession()
        format[1] = new VideoFormat(VideoFormat.YUV);
        devices[1]= CaptureDeviceManager.getDeviceList( format[1]);
         di[1]= null;
            if (devices[1].size() > 0) {
                 di[1] = (CaptureDeviceInfo)devices[1].elementAt(0);
                  System.out.println(di[1].toString());
            else {
                // exit if we could not find the relevant capture device.
             System.out.println("1234jjfjsajfjasf1");
                System.exit(-1);
            // Create a processor for this capture device & exit if we
            // cannot create it
            try {
                p1 = Manager.createProcessor(di[1].getLocator());
            } catch (IOException e) {
                System.out.println("1234jjfjsajfjasf2");
                System.exit(-1);
            } catch (NoProcessorException e) {
                System.out.println("1234jjfjsajfjasf3");
                System.exit(-1);
            // at this point, we have succesfully created the processor.
            // Realize it and block until it is configured.
           // p1.configure();
         result = waitForState(p1, Processor.Configured);
         if (result == false)
         System.out.println("Couldn't realize processor");
            p1.setContentDescriptor(new ContentDescriptor( ContentDescriptor.RAW_RTP));
            // block until it has been configured
            TrackControl track[] = p1.getTrackControls();
            boolean encodingOk = false;
            // Go through the tracks and try to program one of them to
            // output ULAW_RTP data.
            for (int i = 0; i < track.length; i++) {
                if (!encodingOk && track[i] instanceof FormatControl) {
                    if (((FormatControl)track).
    setFormat( new VideoFormat(VideoFormat.YUV)) == null) {
    track[i].setEnabled(false);
    else {
    encodingOk = true;
    else {
    // we could not set this track to gsm, so disable it
    track[i].setEnabled(false);
    // Realize it and block until it is realized.
    p1.realize();
    result = waitForState(p1, Processor.Realized);
         if (result == false)
         System.out.println("Couldn't realize processor");
    // block until realized.
    // get the output datasource of the processor and exit
    // if we fail
    DataSource ds = null;
    try {
    ds = p1.getDataOutput();
    } catch (NotRealizedError e){
    //System.exit(-1);
    System.out.println("1234jjfjsajfjasf4");
    // Create a SessionManager and hand over the
    // datasource for SendStream creation.
    // The session manager then needs to be initialized and started:
    // rtpsm.initSession(...);
    // rtpsm.startSession(...);
    try {
    (rtpsm.createSendStream(ds, 0)).start();
    } catch (IOException e){
    System.out.println("1234jjfjsajfjasf6");
    e.printStackTrace();
    } catch( UnsupportedFormatException e) {
    System.out.println("1234jjfjsajfjasf7");
    e.printStackTrace();
    public void createAudioSession(){
    format[0] = new AudioFormat("linear",8000,8,1);
    devices[0]= CaptureDeviceManager.getDeviceList( format[0]);                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Synching audio and video not working

    I recorded a separate audio and video clip of an interview, and I marked the start of the clip with a clapperboard and spoke the take number and contents to make life easier, as I usually do. The gear is borrowed from the college, and for some reason the audio that came out of the Canon 5Dmkiii was really low. This could be the reason why, when I put both the video and audio into their own bin and right click and merge clips, (with the syncronisation point as audio, and under audio tab checking the box to remove audio from AV clip) that the clip doesn't seem to recognise the snap of the clapperboard or something maybe? Is there any way I can correct this, or do I need to synch it manually? If so, is there any quick and easy tutorial on youtube or something that is recommended?  

    I discovered that if I put markers manually on the point where the clapperboard snaps, and select marker instead of audio as the synchronisation point, then it synchs up the clips properly.

  • Audio and Video Capture, Live: Problems

    I am trying to do a live capture of a demonstration using a video camera (DV) and a lavalier mic into a Griffin iMic. For speed's sake, I am trying to eliminate the TO TAPE step. I only want to capture. I can just edit the captured clips that way.
    Audio is being picked up through the DV cam, and I cannot seem to force FCP to grab audio from the iMic source... I don't know where to change the audio source. Can someone help me do that? The camera is behind me, and so the sound it picks up is unacceptable.

    That's a good idea.
    This cam ($200 DV refurb Sony) does not have a mic in. I do have another cam with Mic in, but pluging the lav. mic (mono) into it generates a BUZZ on the other channel. So I have tried that, but it requires a lot of post editing.
    My current solution is to record Audio using Sound Studio. I start the audio recording, switch to FCP, start the capture, then smack a couple of sticks together on camera (for my clapper board) and will sync the audio later. Loosk workable. I have two different drives recording data, and the Mac seems to be keeping up (gulp).
    Would LOVE to be able to get FCP to only capture video from the DV cam, and audio from the usb iMic. That would be my fastest record-to-final option.
    Thanks for the ideas.

  • Synchronize audio and video over RTP

    Hi all,
    I am new in jmf. Please any one tell me, how to synchronize audio and video streams, when we capture thru audio and video capture devices and send it over network thru rtp protocol and receive at client side. How to syncnronize at client side? Please send me reply if any one have solution in jmf.
    Thanks in advance.

    Does anyone know about how this is done? I'm doing a videoconference thing with jmf, QoS is a required componenet! So if anyone knows about how this is done, plz share with discussion! All I know so far is that I can buffer the incoming streams to some extend then call syncStart() to start the video with the starting time of the video!

  • Audio and video out of synch

    Can anyone help. I have just purchased fce4 and already feel way out of my depth. When I captured my footage I get a warning saying that audio and video may be out of synch. Fair enough but there is no advice on how to fix this. Is it something to do with frame rates. My camera is DV Pal. How do I change the settings assuming this is the problem.

    Go to Final Cut Express>Easy Setup. You're probably set up for DV-PAL. Change to DV-PAL 32kHz and see if that helps.
    I'd encourage you to get a reference book. Tom Wolsky, frequent contributor to this forum, has an excellent one: Final Cut Express Editing Workshop. Diana Weynand has written another one: Apple Pro Training Series: Final Cut Express.

  • Capturing both AUDIO and VIDEo at a time.....

    Hi Every One,
    I was able to capture audio separately and save in a file and video separately and save in a file...
    I want to Capture both audio and video at a time and save in a file is it possible, if possible suggest me the way

    Merging Tracks from Multiple Inputs
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/Merge.html]

  • I am new to iMovies.  When I make a video using the mic and camera in my Macbook Pro, the audio and video are not in synch.  Very annoying.  How can I fix this?

    I am new to iMovies.  When I make a video using the mic and camera in my Macbook Pro, the audio and video are not in synch.  Very annoying.  How can I fix this?

    DVD drives read the bottom of the disk, not the top. Smooth out the paper & try again.

  • Audio and video not in synch after upgrade

    I have 12.1.1.4. I'm using this new version for the first time tonight, to watch some Walking Dead episodes, and the audio and video drift out of synch. I can bring them back into synch by pausing then replaying, but it doesn't last. I watched some older videos that I know to be good and had the same issue, so it's not a problem with the episodes.
    What I've tried:
    Making sure that the Quicktime audio settings match the ones on my sound card.
    Uninstalling and reinstalling iTunes.

    I also have this problem, and some videos will no longer play in iTunes.
    I get a message that this video is not compatible with this version of iTunes. I have to open the video in Quicktime to watch it.
    Unacceptable! This hardware and software is too expensive to have these performance issues.
    2011 Mac Mini, 8GB RAM, Duo core, iTunes library on NAS on wired network. Mountain Lion 10.8.2. iTunes 10.7 64 bit.

  • Capture Audio and Video to different disks or not?

    I thought that capturing audio and video to separate disks was more efficient, now I see in the FCS 2 documentation it says that this is not recommended for any of the DV formats. But it does not say why, or what the consequences of doing this are...
    Does anyone out there know?
    Thanks,
    Pete d.

    Peter Durso wrote:
    Now, Is there any value in putting the render files on a drive that is separate from the Capture disks?
    Pete D.
    Absolutely. Listen to your drives while doing an intense render. The Capture drive is grabbing all of the video clips in the stack, the system drive is grabbing software. If you render to the Capture drive, that same drive has to write, too. Reduce the load by using a Render drive.
    I have four drives: System, Capture, Render, Output. The last is used for all exports, encodes, and transcodes.
    bogiesan

  • Audio and video out of synch on export

    Hi,
    I've searched the forum for this. I have a movie in FCE 4 in which the audio and video are in synch in the time line. The audio was recorded into Logic at 96, noodled, passed into FCE at 48 and then had to be lined up with the video. Then when I go to export, the resulting QT movie is out of synch, the audio now about one second before the video. I'm using QT conversion. My compresson is H.264, quality best, frame rate 30, multi-pass, 640 x 480, format AAC or linear PCM, various sample rates, stereo and mono etc. I've tried various other settings for export, but the problem remains.
    What am I doing wrong? Many thanks for any help,
    Ray

    Hi,
    Thanks for the reply. I think you're on the right track. I want the best sound possible, so I record into Logic, knowing I'm going into FCE I record at 96 so an even multiple down to 48. I think a .wav file though, and maybe that's the problem. Into FCE, but other audio there as well from the camera mic, and which I occasionally include in the sound track for ambience. All of this noodled a fair amount and then exported, the intent being to end up in 44, as it will be uploaded to youtube. I switch to 16 bit out of Logic, but the aiff vs wav may be the problem. Do think there might be a better way to do this?
    Ray

  • Audio and video out of sync on capture

    I have been using the Canon HV20 and MacBook Pro for about a year now with no problems and for the first time today on capture the audio and video are out of sync. I have been using an external LaCie for capture and stoage but even using the internal HD, the same problem is occurring. I checked my preferences in FCE and used the disc utility to make sure my HD had no permission problems. I am not dropping any frames on capture. What do I do next to correct?

    Hi - Thanks for you response.
    It's a Canon XH A1 which is an HDV camera. As far as output is concerned when I play the camera it says HDV 24 and the sound is 16KB.

  • Audio and video out of sync after capture from Canon

    Help for a newbie please?  I have a Canon XHA1S and have a problem after capturing HD video.  After capturing a 40 minute clip, the  audio and video are out of sync.  Seems like there is about a 3 second difference.  The entire clip is like that in the source window; I made a couple of quick edits and have the same problem in the program window.  Tried exiting and re-opening PP, but that didn't help.  I'm running PP in CS6 on an iMac 3.4 GHz i7 with 8G of ram.  Thanks!

    I have NOT used it, but many say to try this for HDV capture http://strony.aster.pl/paviko/hdvsplit.htm

  • Capture audio and video files to seperate files

    Forum,
    Having suffered problems with OS 10.5 and Quicktime 7.4.1 I have done a clean install with 10. 4 .11.
    When I select capture the following notice appears
    "Audio only capture selected,video preview disabled"
    In system settings "capture audio and video to seperate files " is NOT checked.
    But that may not mean the same as the statement in in the capture window.
    I have searched HELP and a book called" Optimizing your Final Cut Pro System" but can not find an answer.
    Advice would be appreciated.
    Thank you
    Michael Craven

    Hi,
    Check this:
    in Log & Capture window select Clip Settings tab and make sure video box is checked.
    Cheers,
    G.

  • Audio and video are not synched

    I'm just beginning with FXP X (8), and just added a file to my event library, and created a new project.  Dragged my first clip into the story line, and discovered that the audio and video are not syched.  This is original footage from a video camera, no modifications or added tracks.  But clearly the words of the speaker on camera are not synched with the video, both in the event library and in the story line clip.  Is this operator error (lol)?  TIA for any help, I'm stuck on square one.

    You can right click on your clip in the storyline and Detach Audio.
    After that, you can slide the audio until it's in sync or if it changes sync over the length of the clip, there is a way to correct that as well.
    First, in the video, skim the playhead until you can see something that will "mark" a specific start of a sound and set a Marker (type M).  Then select the audio portion (already detached) and find the start of the matching sound and type M (adds marker to the audio.) Turn on snapping and slide the audio until the two markers snap.
    If you need to correct sync drift, use the same technique for markers near the end of the clip, but instead of sliding the complete audio clip, Retime the audio clip (type command-R) (set the playhead over the video marker - snapping won't work when retiming) and adjust the end of the audio until the two markers match up. Preserve Pitch (from the Retime menu) should already be selected.
    HTH

Maybe you are looking for

  • LR3 64 Bit - Not loading Flash Web Galleries

    I recently upgraded to Win7 64bit and bought the 64bit version of LR3. Unfortunately, LR won't load any flash galleries and just gives me a blank screen without any preview. Screenshot: http://www.andyhuddartphotography.co.uk/Misc/screenshot.jpg I've

  • Cannot access servlet in tomcat4

    I'm a newbie to server side java. Please guide me. Installed Apache2 and Tomcat4 in Win2K. The installation seems OK because the index pages of both apache and tomcat appear when accessed as localhost on browser. I wrote (in fact, copied from a tutor

  • Can In Design CS 5.5 add a "BEVEL" to a letter?

    Can In Design CS 5.5 add a "BEVEL" to a letter?

  • Going from Sybase to Oracle

    Hi. I'm kind of new at this, so please bear with me. We're moving from Sybase towards Oracle, and there we have a problem. I'd like to know if you have to change the way you make the Java SQL-queries, in order to make it work with Oracle DB's. Any he

  • Printing two decimal places from BigDecimal values

    I am using BigDecimal to represent money values. My output needs to line up so that (with a non-proportional font) the decimal point and the two decimal places are in the same columns for each line. But when the dollar value has zero cents, or has a