AviDemux is joining my 2 AVIs seamlessly, but is cutting out a sec. in between - solution?

Discussion in 'Other video questions' started by rstone, May 4, 2009.

  1. rstone

    rstone Guest

    This was a topic I've only just got to starting. I posted the topic question last spring. This was Attar's response. (Kudos to Attar.)

    "You can join the original AVI files with AVIDemux (load the first file, 'Append' the second.
    Set video and audio to 'copy' and 'format' to AVI - save the file with full name including extension (.avi)."

    I've followed this advice, and the result is seamless, however the result is that about one second is missing between the end of AVI #1 and the start of AVI #2.

    Any way to solve this? Any parameters/settings/preferences change in
    AviDemux which I should make?

    Really close to solving this, but need guidance. Really like AviDemux, from what I can see.
     
  2. attar

    attar Senior member

    Joined:
    Jun 17, 2005
    Messages:
    11,147
    Likes Received:
    41
    Trophy Points:
    128
    I haven't seen this behaviour and I can only guess at a fix - but assuming the missing frames are from the first file:

    Load the first file in AviDemux.

    Seek to the last frame and mark as 'B'.
    Press the 'Keyframe' button and go back to the previous Key Frame.
    Mark that as 'A'.

    On the left side, change 'Format' to 'AVI'.
    Change 'Video' to 'Mpeg4-XviD'.
    Select 'Configure'
    'Motion and Misc' tab.
    'I Frame Interval' 'Min' 1 'Max' 1.

    Click the 'Save' logo and give it a name (lastkey.avi).

    'Edit' 'Delete' (deletes the A/B selection)
    'File' 'Append' and load 'lastkey.avi' (I guess at this point you could optionally append part 2 of the file).

    Set 'video' to 'Copy' and 'Save'.

    Good luck.
     
  3. rstone

    rstone Guest


    Attar,

    Cheers for the reply. I'm a bit stuck. You said.

    "Seek to the last frame and mark as 'B'.
    Press the 'Keyframe' button and go back to the previous Key Frame.
    Mark that as 'A'."

    1) By "seek to the last frame", do you mean drag the first AVI to the very last frame?

    2) How do I mark as "B". Sorry, where do I find the mark button?

    3) Where's the keyframe button, and how do I go back to the previous key frame?

    Thanks in advance. Sorry, new to this area.
     
  4. attar

    attar Senior member

    Joined:
    Jun 17, 2005
    Messages:
    11,147
    Likes Received:
    41
    Trophy Points:
    128
    See if this helps.

    [​IMG]
     
  5. rstone

    rstone Guest


    Thanks for the screen help, Attar. A visual guide is always good! Now I know where those buttons are should I use AviDemux in the future. However, it now seems that the end words of the last part of AVI #1 aren't missing when I use VirtualDub, so I'm now back to working soley with VirtualDub.

    I used Direct Stream Copy setting after appending AVI #1 to AVI #2, and then saved the AVI. However, the deal with the resulting combined and seamless AVI file is that the second part of the movie's video (comprising AVI #2) is out of synch with the audio.

    What gives, and how can I solve this? Any settings changes in VirtualDub which will fully synch the audio and video finally? Or recommend another free program to get this fixed? Getting P'd off with this :-/

    PS. When I load the AVI #1 in VirtualDub, I get a message telling me:
    "AVI: Variable bitrate audio detected. VBR audio in AVI is non-standard and you may encounter synch errors up to 0ms when attempting to extract WAV files or playing in some players."


    I've also done "full processing" within VirtualDub (which created a 100 GB AVI file), but still the second part of resulting AVi wasn't synched.)
     
  6. attar

    attar Senior member

    Joined:
    Jun 17, 2005
    Messages:
    11,147
    Likes Received:
    41
    Trophy Points:
    128
    In VirtualDub, to convert the VBR audio to CBR, click:

    Audio > Full Processing Mode > Compression > No Compression
    File > Save WAV
    After the audio file has been saved, click:
    Audio > Audio from other file (load the wav file).
    Audio > Compression > Lame mp3 and choose 48000, 128,CBR Stereo from the menu.

    Click Video > Direct Stream Copy.
    File > Save as AVI.


    This assumes you have the Lame mp3 codec installed.

    http://users.tpg.com.au/mtam/install_lame.htm

    Don't click 'Full processing' under 'Video' unless you also select a compressor - you get a huge, uncompressed file and since you are not changing the video properties, you should set it to 'Direct stream Copy'.
     
  7. rstone

    rstone Guest


    Cheers for the quick reply, Attar. Much appreciated. Should I therefore start again, by opening the original AVI #1, and then append original AVI #2, before proceeding with the steps you outlined?
     
  8. attar

    attar Senior member

    Joined:
    Jun 17, 2005
    Messages:
    11,147
    Likes Received:
    41
    Trophy Points:
    128
    I would make sure that both files had CBR audio before joining.
     

Share This Page