Save audio and video signals in diferents files

Hi!!, How can i save the audio and video signals in diferent files?
I get the signals with:
for (int i = 0; i < tc.length; i++) {
        if ( (tc.getFormat() instanceof VideoFormat)) {
     this.VideoTrack= tc[i]
}else{
     if ( (tc[i].getFormat() instanceof AudioFormat))
          this.AudioTrack= tc[i];
Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Ok, I've separated the tracks and i've saved the Audio signal in a file, but it save the full audio track and i only want save 10 seg.
I`m using
DataSink dsink=Manager.createDataSink(procesor.getDataOutput(), ml);
                         dsink.open();
                         dsink.start();
                         this.procesor.start();
                         Thread.sleep(10000);
                         this.procesor.close();
                         dsink.close();Thanks!!

Similar Messages

  • How do I synchronise audio and video with an mpg file created in elements 11 ?

    How do I synchronise audio and video with an mpg file created in Premier Elements 11 ?
    The source files are VOB files, and there is no problem with those source files.  But after creating the mpg file, the audio can be out of sync by 1 second or even 10 seconds, and sometimes zero seconds (ie perfectly OK).  That varies.  The variation might be linked to some of the VOB files.  ie. some are OK, and some are not.
    Can I fix this automatically in Elements 11, or am I doing something wrong ?

    Hartwood,
    First, Premiere (both Pro and Elements) do not handle MPEG Audio perfectly - they like some files, but not all files with MPEG Audio. That makes a VOB a less-than-perfect source file. Still, with a bit of work, one should be able to edit it just fine. One of the factors is that there is a very slight block-size difference between the Encoded Video Stream and the Encode Audio Stream in a muxed MPEG-2 file. That often does not play into things, but can cause slight OOS (Out of Sync) issues. Also, both Premieres need to create all I-Frame files for the Video Stream, which is in GOP (Group of Pictures) structure, so what one sees on the Timeline is really a proxy of the MPEG-2 file's Video Stream. The Audio Stream must also be Conformed to PCM/WAV @ 48KHz 32-bit floating point, to be edited. That Conforming is perfect when one has PCM/WAV @ 48KHz 16-bit for the Audio Stream, but requires more work, when the Audio Stream is MPEG (one reason that some MP3's do not work well in Premiere). Several factors involved here, and a fair amount of work for the program. That is why DV-AVI Type II w/ 48KHz 16-bit PCM/WAV Audio works so perfectly.
    Now, fixing OOS might be easy, or might require a bit more work. This article goes into some workflows, that might be helpful: http://forums.adobe.com/thread/436751?tstart=0
    I can feel your pain, as I almost went crazy trying to fix OOS in a client's Project. They ONLY had the finished DVD, from which to work. The disc met the DVD-standards, so everything ripped/Imported fine, and when the simple edits were done (IIRC, there were four scenes, that had to be shortened, and then several Titles added), everything played fine in the Timeline. However, when I Transcoded that Timeline to be authored in Adobe Encore, two scenes went OOS. I went back to Premiere, and checked - all perfect there. I tried to judge the number of Frames that the Audio was out, in those scenes, and nudged them, tested, nudged, tested, and no matter what I did, I could never get the output files perfect, when Imported into Encore for authoring to DVD-Video. I tried DV-AVI, and letting Encore set the Transcoding automatically (usually a great way to work), I tried manually setting the Transcoding in Encore. I tried outputting to MPEG-2 from Premiere, and Importing that. No matter what I did, those two scenes were just OOS, and I could not even seem to improve them - it was like they were just locked OOS. I finally did some more editing, to break things up a bit, added a cut-away shot here, and there, and minimized the perceived OOS, but could never get it perfect. It was like trying to pick up quicksilver with a pair of tweezers!
    Good luck,
    Hunt

  • Splitting Audio and Video Signal

    HI,
    I would like to be able to split the video and audio signal from my ipad via apple tv to enable the video to be viewed on the ipad and audio out of the amp speakers.  I can do this via bluetooth (for instance in my car) but not via airplay in the home.  Any ideas or app suggestions that might make this work?  Ultimately i want to cinnect the ipad into a projector and sending audio back the amp in another room.
    thanks
    cam.

    U can use a digital to analogue convertor to separate the sound http://www.amazon.co.uk/Digital-Optical-Coaxial-Toslink-Converter/dp/B0074JZ8ZW

  • HT1454 Can I send audio and video signals from sling box on my IPhone to a tv using any of these cables?

    I have an iPhone 4 and would like to stream the sling box signal from my phone to a TV. Is there a cable that will do this?  I have heard that the only thing you can show on the TV from your phone is content stored on your phone.

    TV out on the iPhone 4 only display video out for the apps that support v'ideo out. The app description in the App store will say if it supports TV out. iPhone4S will mirror the iPhones screen with VGA or Digital AV adopter.

  • Premiere pro cs5 : audio and video sync issue with .aiff file format

    I am using premiere pro cs5 on MAC and facing issue with audio and video sync  using .AIFF file format for audio unable to make it work.
    Is there any solution to this issue or any work around?
    Thanks in advance.
    Vinay

    Hi,
    hmmm, well that settles that...
    Here's a link to info about an open source free program to convert....for mac
    http://www.ehow.com/how_5072563_convert-files-wav-files-freeware.html
    Good luck
    Rod

  • Splitting output source of audio and video.

    I would like to split the output of my audio and video signals from my ipad.  I have a projector which i want the video signal to be sent to via a cable connection from my ipad with the audio being sent to my amplifier and speakers via apple tv.  I'm basically trying to avoid running a cable from my amplifier to the projector as it is about 30m away.  Is there an app available for this or something simple i'm missing? thanks

    my setup is as follows
    Room 1:
    TV
    Amplifier
    Apple TV
    Surround sound wired to amp
    Room 2
    Projector
    Speakers wired to amp in Room 1
    I was hoping to sit in Room 2 with my ipad connected to the projector, selecting a movie and getting audio through the wired speakers (streamed to apple tv in Room 1).  Hopefully this makes sense.  I use the AirVideo app at the moment for all my viewing in Room 1.

  • Audio and video out of sync on converted AVI file

    I am trying to convert a DVD to an AVI for playback on a device. When I import the DVD and publish it as an .AVI the output audio and video are out of sync. After about an hour of playback the audio lags the video by a full second. How can I correct this problem?

    Walter0325
    If you have Premiere Elements 12 on Windows 8 and you want to rip VOBs from the DVD-VIDEO to export subsequently to DV AVI, here are the details....
    1. Do you have DVD-VIDEO standard or widescreen? Set the Premiere Elements 12 project preset manually.
    File Menu/New/Project. Set the project preset to NTSC or PAL DV Standard or NTSC or PAL DV Widescreen depending on what you have.
    Before you exit the new project dialog, make sure that you have a check mark next to Force Selected Project Setting on this Project.
    2. In the Premiere Elements workspace, use Add Media/DVD camera or computer drive/Video Importer to get the VOBs (only the ones in the series VTS_01_1.VOB. Set to a folder in the Save In: location. Check mark next to Insert in Timeline. Hit Get Media.
    3. If you have an orange line OVER the Timeline content, press the Enter key to get the best possible preview of what you have on that Timeline.
    If after all that, the audio is out of sync, then use the Command Prompt method to get the individual VOBs into a single file with all the VOBs seamlessly merged. This worked nicely for a recent user here. See details in my blog post how to for the Command Prompt way.
    http://www.atr935.blogspot.com/2013/09/pe-dvd-videoseamless-vob-ripping.html
    Please do not hesitate to ask if you need clarification on anything that I have written.
    Depending on your results, more information may be requested about the specific properties of what you have on that DVD disc.
    Thank you.
    ATR

  • Audio and Video out of sync in shared iMovie file

    Hey Guys -
    Quick question, I've created a new trailer in iMovie, all works fine but the audio and video is out of sync in the shared file. How to fix it?
    Thank you
    MondCharlie

    For what it's worth, I'm having what looks to be the same problem. Driving me insane. Here's what's going on-
    Editing in FCP 6.0.2
    QT was just updated to 7.3.1 the other day (hmm)
    On an MacBookPro machine, OS 10.5.1
    Software updater says everything's up to date of course.
    DV-NTSC 24p (23.98) Advanced Pulldown Removal (footage was shot at 24PA on a DVX100b)
    In Quicktime, the file previews fine, everything's in sync, everyone's happy. In FCP, the video and audio are wildly out of sync. I did a test inside of quicktime and sliced out a small portion of the media clip and did a "save as" and this small slice played in sync in FCP. However, this did not work for the entire clip. Clip is weighing in at 5.58GB for a 32 minute run.
    I'm trying to multicam 2 tapes together and manually syncing these up is proving to be difficult at best. When anyone gets any ideas/leads/patches, let us know.
    Grr,
    Nicole
    Editor, RHED Pixel

  • How to combine discrete audio and video files?

    I am working on a project which requires me to merge a video file with a PCM audio file from another source.
    I just bought Compressor 4.1.1, expecting to be able to do exactly this.
    The only "multiple input - single output" option I can see is creating a surround sound group, adding my audio as left and right channels, and then attaching the video.
    This does not work. Pressing "add" at the end of the process does not result in a new job.
    Help please!
    G.

    QT7 Pro is able to do this. Cost is $30.
    In QT7 Pro, open up the audio and video files to be matched.
    Select all the audio and then select copy
    In the video window, put the playback head where you want the audio to start then select add to movie.
    Verify the playback is as desired, then save the movie. Done.
    Takes longer to describe the process than to do it.
    x
    Of course, life is good when the in point is exactly the same for both audio and video ...

  • New Project will not save, re-open with accurate or matching audio and video.

    I filmed footage last week. Uploaded it into Premiere Elements and edited the footage in Elements, and saved my work as a project. I opened Elements this morning, and upon opening my saved project I was prompted by the program to locate the file. When I then selected the raw footage files, it loaded the project, but with audio and video out of order, not synced, etc.
    How do I save my work as a stand-alone project file with the audio and video synced as I intended, in a format that I can load, share, re-open and work on without having to re-locate the raw video?
    This seems to be a basic function of Video Editing software, so I hope it is something small I can adjust and move on from. Oh Also all the files, both project (.prel) and raw footage (.mov) are saved on the desktop of the computer i am using to run Premiere Elements.

    brjames1
    What version of Premiere Elements are you using and on what computer operating system is it running?
    After you have created a project and it has been saved, you should be expected to be able to reopen the project with the
    project as before the save/close (some discussion about rendered files remaining rendered, but essentially as written).
    When they do not, we can invoke the damaged project syndrome.
    The following is an Adobe document on that subject.
    Troubleshoot a damaged project file | Adobe Premiere Elements
    If you are getting "Where is the file....?" messages when re-opening a saved closed project, typical reasons
    a. you have moved, deleted, or renamed files and folders that were imported into the project after the save close...when
    you import media into a project, all you get are copies of the originals in the project. But the project needs to trace back
    to the originals in the hard drive location where those originals were when first imported into the project.
    b. if you store your source media on an external hard drive, the external hard drive may be malfunctioning and/or the
    drive letter of the external drive changing for a variety of reasons. Does any of that apply to you.
    Please review and consider, and then we can decide what next.
    Thanks.
    ATR

  • Synchronizing several audio and video files automatically in premiere?

    Hi there!
    I'm working on a short film shot on the Arri Alexa, and all my audio is on seperate audiofiles, though synced through time code. So I'm wondering: In Premiere CC, is there a way to automatically synchronize several audio- and video files, using timecode (as you can in Avid), without having to merge them individaully? THis would save me a lot of time.

    You can try using the "create multicamera sequence" command. That will create "multiclips" of your footage with its related audio. It can sync with timecode or use the audio for synchronization. When you need to export the edit for color grading, you can select all of them and choose multicamera>flatten. But beware that if you apply effects, such as speed ramp or intrinsic effects, those will be removed on a "flatten" command.

  • How to delelte audio and video files on C7 and int...

    hey everybody,
    i have bought a new C7 yesterday and i am facing two problems:
    1. I am unable to delete audio and video files from my mobile. how to do it?
    2. while my wlan connection works perfectly i am unable to connect to net thru 3g and GPRS ( i am a bsnl user and have save all the settigns).
    any help will be greatly appriciated

    hey everybody,
    i have bought a new C7 yesterday and i am facing two problems:
    1. I am unable to delete audio and video files from my mobile. how to do it?
    2. while my wlan connection works perfectly i am unable to connect to net thru 3g and GPRS ( i am a bsnl user and have save all the settigns).
    any help will be greatly appriciated

  • How to get audio and video in one file

    hi...I am "premiere beginner user" and I have a simple question , I think..:)...Every time when I am trying to export media out from my premiere (using media encoder) I get video file and some audio files, but what I need is only ONE file, that contains both (audio and video)..for example , I have edited film in hd quality and I want it to export, I choose h.264 format(make some settings,pal,audio quality...) and when it´s "all done", only "result" I get is one video file and two audio files and they are not together :).....so please help mme anyone..ok and as you can see I am not from english speaking country, so sorry for my english...thanks for help....

    There is no indication that something is out-of-sync or the ability to move/slip into sync like in FCE/FCP.
    To the best of my knowledge, using match frame and overwriting the video with video+audio (or attaching it as a connected clip if you don't want to overwrite the video, which might have effects applied) is the best way to do this.
    You can use the blade tool first in the timeline to get just the section you want to get back into sync. Make cuts so that you have a single clip that needs the audio resynced, select it, and use shift-F to select the original synced clip in the Event Browser. Make sure your play head is at the beginning of this video clip in the timeline. Press option-2, then 'q', and now you have the audio back in your timeline, synced with the video.  Delete the old, no-longer-synced audio and you should be set.

  • OT: What viewers do you need to use ALL audio and video files?

    I had a lot of trouble with audio and video files on my PC. I
    now have a
    MacBook Pro, which is a big improvement. But I still
    frequently
    encounter files that I can't use. I try to open them, but
    Apple doesn't
    know what to do with them. For example, I often encounter
    unusable
    videos while perusing news websites. I also have some audio
    files with
    .mva or .mvw extensions that don't work.
    So what viwers/players do I need to download in order to be
    able to play
    every audio/video file that comes my way? iTunes handles .mp3
    files, and
    I also have QuickTime installed. I just viewed another video
    after I
    installed a Flash plugin. What else do I need to install?
    Thanks.
    www.geobop.org - Family Websites
    www.invisible-republic.org - Adult political websites (Mature
    adults only)

    VLC is a big favorite
    http://www.macupdate.com/app/mac/5758/vlc-media-player

  • 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.

Maybe you are looking for

  • Reader 9.1.2 not printing as shown on monitor

    The attached postscript file creates two paths of two line segments each.  Ghostscript displays the two paths as expected.  The PS file is converted to PDF using Ghostscript.  Adobe Reader 9.1.2 displays the PDF file as expected. I print the file (us

  • Has anyone else seen the "SharePoint is not supported with version 4.0.30319.18051" messages?

    We are running SP 2010 service pack 2. We are seeing the following messages on at least one of our farm machines. I was wondering whether others here have seen these messages and found a solution. The powershell ise was a running task, but not actual

  • PI installed on BI

    The PI 2004_1_470 patches are installed on EPS/in and uploaded in SPAM for Business Information Warehouse 3.10 system. As it is useless to have PI on BI I have removed the EPS files (CSN.PAT and CSN.ATT) in the EPS/in directory, but the PI is still a

  • Browser Scroll Bar

    I would like to have my swf fill the browser window and but incorporate a scroll bar in the browser window that scrolls the flash contents. Similar to this... http://www.mutabor.de/#/de/white/h/0/0/ Can anyone help me? Thanks

  • Counting Version 1 and 0

    I have a table with the following... Date id version_num total 01/01/2009 09:00:00 101 0 99 01/01/2009 09:00:00 101 1 100 02/01/2009 09:00:00 101 1 201 03/01/2009 09:00:00 101 1 150 04/01/2009 09:00:00 101 1 99 05/01/2009 09:00:00 101 0 103 05/01/200