VideoHelp Forum




+ Reply to Thread
Results 1 to 15 of 15
  1. Member
    Join Date
    Jan 2016
    Location
    Sydney
    Search Comp PM
    Hi everyone, sorry if this has already been posted but I was not able to find a good answer.

    I am currently using a Mac but I do have a PC as well, so I'm flexible. Let me explain what I want to do.

    1. I have an AVI file, lets call it VIDEO_51.AVI
    2. I also have an MP4 file, lets call it VIDEO_1080.MP4
    3. SO, the AVI has good quality 5.1ch audio and the MP4 has good quality 1080p video. Both are actually the same "video"
    4. I want to strip the AVI's audio out and insert it into the MP4 (or vis versa) So basically I want a 1080p video with 5.1ch audio track.
    5. Once the good audio and video are combined, It will not be synced so I will need to fiddle around and sync it
    6. I will then require to export the video without the loss of quality, I don't want to re-encode, I don't really care about what export format it is, could be mkv, avi or mp4.

    Can anyone point me in the right direction on how to do this, that would be much appreciated.
    Last edited by husaskin; 30th Jan 2016 at 00:31.
    Quote Quote  
  2. Member
    Join Date
    Aug 2010
    Location
    San Francisco, California
    Search PM
    If they are the same video, why would the audio go out of sync?
    Quote Quote  
  3. Member
    Join Date
    Jan 2016
    Location
    Sydney
    Search Comp PM
    Ill rephrase it ... same movie, just a different source, so it will slightly be out
    Quote Quote  
  4. Originally Posted by husaskin View Post
    Ill rephrase it ... same movie, just a different source, so it will slightly be out


    Same movie, different source should still be in sync... why do you think it will be out of sync ?

    Can you provide a better description? In what way is your situation causing it to go out of sync ? Things like different frame rates (eg. "PAL vs NTSC" area releases), maybe different cuts (e.g. director's cut vs. theatrical cut) will cause it to go out of sync, maybe different releases (e.g. studio A vs. studio B , maybe one has longer intro section, or one has longer credits etc..) . It's important to describe because that determines what software you might use and how you might approach it

    If the video is more important to you , then you'd probably have to edit the audio (sync up the audio in a video editor, export the audio, mux it with the "good" video so the video isn't re-encoded). But some situations like PAL speedup vs NTSC often have much easier (almost automatic) fixes. You don't want to be doing a bunch of manual work, just to find out later a simple click or two would have fixed it.
    Quote Quote  
  5. Member
    Join Date
    Jan 2016
    Location
    Sydney
    Search Comp PM
    Thank you for your reply poisondeathray, but I don't mean to be rude and I do appreciate your reply but I think you're complicating the situation. In the big scheme of things, it doesn't really matter "why" it will be out of sync, it just will be. Please believe me, I'm not lying, I promise

    But you actually answered your own question above. Yes it is possible that the intro is longer or credits, or the rip process started from a different start point or ended at a different end point. What ever the reason is, the AVI and MP4 are from a totally different source, however its the same movie. I would imagine once the movie actually starts and the talking starts to happen, lips and audio will not exactly match.

    So, in hindsight, why it will be out of sync is irrelevant, that is my problem and I just need help to fix it once the 5.1ch audio and 1080p video is combined.

    Thanks for your help
    Quote Quote  
  6. Originally Posted by husaskin View Post
    Thank you for your reply poisondeathray, but I don't mean to be rude and I do appreciate your reply but I think you're complicating the situation. In the big scheme of things, it doesn't really matter "why" it will be out of sync, it just will be. Please believe me, I'm not lying, I promise

    But you actually answered your own question above. Yes it is possible that the intro is longer or credits, or the rip process started from a different start point or ended at a different end point. What ever the reason is, the AVI and MP4 are from a totally different source, however its the same movie. I would imagine once the movie actually starts and the talking starts to happen, lips and audio will not exactly match.

    So, in hindsight, why it will be out of sync is irrelevant, that is my problem and I just need help to fix it once the 5.1ch audio and 1080p video is combined.

    Thanks for your help




    It IS important why it's out of sync - unless you want to go straight to hard work and waste hours of manual fixes.... That is the most important question to answer (by far) if you want to get this fixed correctly and fast.

    For the sync issue - First thing you want to do is check the frame rates and running times. Trust me , you want to do this first, it might save you hours of work later

    Then you'll want to line them up in video editor. If the intro segment is different just align up the beginning of the actual movie. If they are the same movie, the should be in sync. If one is missing scenes, then you should be able to see it right away, then you have to decide what to cut or add in terms of audio or video

    There are 2 generic types of sync issues, constant and progressively worsening. The first can be fixed by an simple offset, the 2nd means the duration between A &V is different


    But to answer your other question, the easiest way to combine is to use mkvtoolnix, just add your videos and checkmark the wanted audio and video streams, uncheckmark the unwanted streams . But you can mux (short for "multiplex" or combining audio & video streams) streams with a +/- sync delay in mkvtoolnix. So again, it's important to describe the sync issue and WHY it's out of sync.
    Quote Quote  
  7. Originally Posted by husaskin View Post
    I do appreciate your reply but I think you're complicating the situation. In the big scheme of things, it doesn't really matter "why" it will be out of sync, it just will be. Please believe me, I'm not lying, I promise
    No, you're making it out to be more simple than it is. It could be as simple as setting a delay (off by the same amount all the way through) or as complicated as having to cut out audio or add silence, or stretch the audio because of framerate differences.

    Why it might be out of synch makes all the difference in the world. You come here asking for help but your ignorance keeps you from understanding the possible complexity of the problem.

    What ever the reason is, the AVI and MP4 are from a totally different source, however its the same movie. I would imagine once the movie actually starts and the talking starts to happen, lips and audio will not exactly match.
    If they're from the 'same movie', after demuxing the two files and remuxing one audio with the other video you play them and adjust the delay until they match up. You'll be very very fortunate if that's all it takes. Now why don't you begin answering the questions pdr asked? Framerate, lengths? If you don't know, then post the information that MediaInfo provides for the two files.
    Quote Quote  
  8. Member
    Join Date
    Jan 2016
    Location
    Sydney
    Search Comp PM
    Ok so here is what I've done so far
    1. AVI file is 2:08:46
    2. MP4 file is 2:14:12

    So there is a 6 minute and 6 second difference.

    I played both videos side-by-side simultaneously (that was a challenge), it appeared to start the same, only difference i saw was the distributor logo, one was newer then there other. Like the design etc ... but it played in sync. Admittedly I only played for a few minutes. I didn't watch the whole 2hr movie side by side.

    Ok so I got mkvtoonix and added the avi and mp4, i de-selected the mp4s audio track and the avi's video track. So only the mp4s video and avi's audio was selected. I then re muxed it to an MKV .....

    I then played the file, and as I suspected, yes its out of sync.
    Quote Quote  
  9. Member
    Join Date
    Jan 2016
    Location
    Sydney
    Search Comp PM
    Here is the video/audio info for both files

    MP4

    General
    Complete name : /Volumes/Download/completed/****
    Format : MPEG-4
    Format profile : Base Media
    Codec ID : isom (isom/avc1)
    File size : 1.80 GiB
    Duration : 2h 14mn
    Overall bit rate mode : Variable
    Overall bit rate : 1 921 Kbps
    Encoded date : UTC 2012-08-11 00:36:50
    Tagged date : UTC 2012-08-11 00:36:50

    Video
    ID : 1
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : High@L4
    Format settings, CABAC : Yes
    Format settings, ReFrames : 5 frames
    Codec ID : avc1
    Codec ID/Info : Advanced Video Coding
    Duration : 2h 14mn
    Bit rate : 1 826 Kbps
    Maximum bit rate : 11.3 Mbps
    Width : 1 920 pixels
    Height : 800 pixels
    Display aspect ratio : 2.40:1
    Frame rate mode : Constant
    Frame rate : 23.976 (24000/1001) fps
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.050
    Stream size : 1.71 GiB (95%)
    Writing library : x264 core 125 r2200 999b753
    Encoding settings : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=8 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=1826 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
    Encoded date : UTC 2012-08-11 00:36:50
    Tagged date : UTC 2012-08-11 00:39:45

    Audio
    ID : 2
    Format : AAC
    Format/Info : Advanced Audio Codec
    Format profile : LC
    Codec ID : 40
    Duration : 2h 14mn
    Bit rate mode : Variable
    Bit rate : 92.0 Kbps
    Maximum bit rate : 104 Kbps
    Channel(s) : 2 channels
    Channel positions : Front: L R
    Sampling rate : 48.0 KHz
    Frame rate : 46.875 fps (1024 spf)
    Compression mode : Lossy
    Stream size : 88.3 MiB (5%)
    Language : English
    Encoded date : UTC 2012-08-11 00:39:40
    Tagged date : UTC 2012-08-11 00:39:45


    AVI

    General
    Complete name : /Volumes/Download/completed/*****
    Format : AVI
    Format/Info : Audio Video Interleave
    Format profile : OpenDML
    File size : 1.99 GiB
    Duration : 2h 8mn
    Overall bit rate : 2 215 Kbps
    Writing application : VirtualDubMod 1.5.4.1 (build 2178/release)
    Writing library : VirtualDubMod build 2178/release

    Video
    ID : 0
    Format : MPEG-4 Visual
    Format profile : Advanced Simple@L5
    Format settings, BVOP : No
    Format settings, QPel : No
    Format settings, GMC : No warppoints
    Format settings, Matrix : Custom
    Codec ID : XVID
    Codec ID/Hint : XviD
    Duration : 2h 8mn
    Bit rate : 1 435 Kbps
    Width : 688 pixels
    Height : 288 pixels
    Display aspect ratio : 2.40:1
    Frame rate : 25.000 fps
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Compression mode : Lossy
    Bits/(Pixel*Frame) : 0.290
    Stream size : 1.29 GiB (65%)
    Writing library : XviD 64


    Audio #1
    ID : 1
    Format : AC-3
    Format/Info : Audio Coding 3
    Mode extension : CM (complete main)
    Format settings, Endianness : Big
    Codec ID : 2000
    Duration : 2h 8mn
    Bit rate mode : Constant
    Bit rate : 384 Kbps
    Channel(s) : 6 channels
    Channel positions : Front: L C R, Side: L R, LFE
    Sampling rate : 48.0 KHz
    Frame rate : 31.250 fps (1536 spf)
    Compression mode : Lossy
    Stream size : 354 MiB (17%)
    Alignment : Split accross interleaves
    Interleave, duration : 96 ms (2.40 video frames)
    Interleave, preload duration : 96 ms
    Language : English
    Quote Quote  
  10. Member
    Join Date
    Jan 2016
    Location
    Sydney
    Search Comp PM
    guys, I don't mean to sound ignorant, I just didn't understand why. OK if you are saying that it will make all the difference, then so be it.... i can accept that.
    Quote Quote  
  11. looks like pal speed up.
    23.976 -> 25

    Calculate about 128mins * (25 / 23.976) = about 134 mins of the second file.
    Quote Quote  
  12. Member
    Join Date
    Jan 2016
    Location
    Sydney
    Search Comp PM
    Thank flash. But I'm on this website because I need instructions.
    Quote Quote  
  13. In MkvToolnix override the frame rate of the MP4 video making it 25 fps. Then determine the amount of audio delay (a negative delay of the audio is an advance) required to sync the audio to the video. Enter that value. Mux.
    Quote Quote  
  14. Member
    Join Date
    Jan 2016
    Location
    Sydney
    Search Comp PM
    just by changing the frame rate to 25fps, it worked PERFECTLY. I actually can't believe that worked without any hard work.
    Thank you guys for helping me with this..
    Quote Quote  
  15. Member
    Join Date
    Jan 2016
    Location
    Sydney
    Search Comp PM
    I also did the same thing with another movie, except this time both files were the same frame rate so i didn't really do anything. All i did was strip the audio off the one I wanted, and inserted it into the other file and remux it .... so the frame rate must of been throwing me off
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!