Audio AVI Reencoding

Discussion in 'DivX / XviD' started by BlairF27, Sep 14, 2005.

  1. BlairF27

    BlairF27 Guest

    I use VirtualDub to reencode avi's that don't play properly. Usually I end up with a viewable avi file that has no problems. However, once in awhile I end up with an avi which is virtually unwatchable because the audio lags behind the video for up to 30 seconds! Can anyone recommend a solution? There must be a way to reencode the audio and sync it up with the video. A different software program? Or just special settings in VirtualDub?

    Any help is greatly appreciated.

    Blair :)
     
  2. celtic_d

    celtic_d Regular member

    Joined:
    Jan 23, 2005
    Messages:
    3,352
    Likes Received:
    0
    Trophy Points:
    46
    You could try mencoder.
    Basically just -ovc copy to copy the video then -oac whatever for the audio, so -oac mp3lame or -oac lavc -lavcopts acodec=ac3, etc.
    Combined:
    mencoder -ovc copy -oac mp3lame input.avi -o output.avi
     
  3. BlairF27

    BlairF27 Guest

    can you give me a link to the software and tell me the step by step to do what you suggest? i'm fairly new at all this.
     
  4. celtic_d

    celtic_d Regular member

    Joined:
    Jan 23, 2005
    Messages:
    3,352
    Likes Received:
    0
    Trophy Points:
    46
  5. BlairF27

    BlairF27 Guest

    thanks mch!
     
  6. BlairF27

    BlairF27 Guest

    actually, i do have another question. suppose i have a bunch of avi files in a directory. example: c:\tv\2005\new stuff how do i easily get mencoder to find the file? or do i need to have the file in the same directory as mencoder?

    another question is file name length. do i need to shorten file names from (let's say) the.wonder.years.s01e01.avi to wy.0101.avi? or is it not any big deal?
     
  7. celtic_d

    celtic_d Regular member

    Joined:
    Jan 23, 2005
    Messages:
    3,352
    Likes Received:
    0
    Trophy Points:
    46
    You mean process all the avi files automatically? Use a for command.
    If you use "" then it should handle any input eg. "c:\movies & stuff\he.wonder.years.s01e01.avi" will be fine.
     

Share This Page