MKV to VOB Out of Sync :-(

Discussion in 'MPEG-1 and MPEG-2 encoding (AVI to DVD)' started by Shinraboy, May 27, 2009.

  1. Shinraboy

    Shinraboy Regular member

    Joined:
    Jun 24, 2005
    Messages:
    385
    Likes Received:
    0
    Trophy Points:
    26
    Hi.

    Im using mkv2vob for a spanish movie I have. I try to mux it or whatever but the resulting video is out of sync with the audio. The original plays just fine though. Ive tried converting the video with Xilisoft HD converter and the same happens....This has NEVER happened to me with any other movie before either. I do this pretty regularly....

    please help :-(
     
  2. davexnet

    davexnet Active member

    Joined:
    Jul 7, 2003
    Messages:
    1,856
    Likes Received:
    0
    Trophy Points:
    66
  3. Shinraboy

    Shinraboy Regular member

    Joined:
    Jun 24, 2005
    Messages:
    385
    Likes Received:
    0
    Trophy Points:
    26
    Wait sorry im a bit confused. Do I o that to the resulting video or do I do that to the MKV. Cause it only shows the lag in the resulting video....
     
  4. Shinraboy

    Shinraboy Regular member

    Joined:
    Jun 24, 2005
    Messages:
    385
    Likes Received:
    0
    Trophy Points:
    26
    oh and now I feel like a total noob. I installed AVI synth but how do I go about using it....theres no UI?
     
  5. davexnet

    davexnet Active member

    Joined:
    Jul 7, 2003
    Messages:
    1,856
    Likes Received:
    0
    Trophy Points:
    66
    Correct .. there's no UI.
    Create simple scripts in Notepad and save them with a .avs
    extension.
    Something to get you going, install AVStoDVD. This product
    creates the avs script for you and passes it to HCenc to do the encode.
    The script can be edited and you can manually enter the "delay audio"
    For example, here is a script generated by AVStoDVD
    with the last line manually inserted:

    Import("J:\appz38\AVStoDVD_214_NoInstall\Lib\A2DSource.avsi")

    Video = A2DVideoSource("J:\media 1\Hey Jude recording session RARE_track2 b.mkv", CacheFolder = "K:\Temp")
    Video = Video.ConvertToYV12
    Video = Video.AddBorders(15,0,15,0)
    Video = Video.Lanczos4Resize(720,480)

    Audio = A2DAudioSource("J:\media 1\Hey Jude recording session RARE_track2 b.mkv", CacheFolder = "K:\Temp")
    Audio = Audio.SSRC(48000)
    AudioDub(Video, Audio)

    DelayAudio(0.75) # add this to delay audio 3/4 second
     
  6. Shinraboy

    Shinraboy Regular member

    Joined:
    Jun 24, 2005
    Messages:
    385
    Likes Received:
    0
    Trophy Points:
    26
    ...
     
    Last edited: May 28, 2009
  7. davexnet

    davexnet Active member

    Joined:
    Jul 7, 2003
    Messages:
    1,856
    Likes Received:
    0
    Trophy Points:
    66
    You lose resolution because you going from 1280*720 to
    720*480 (720*576 PAL). So you do lose detail.
    However, if the MKV is good quality, you can get excellent results.
     
  8. Shinraboy

    Shinraboy Regular member

    Joined:
    Jun 24, 2005
    Messages:
    385
    Likes Received:
    0
    Trophy Points:
    26
    OK got an avs


    Import("C:\Program Files\AVStoDVD\Lib\A2DSource.avsi")

    Video = A2DVideoSource("C:\Users\Rico\Desktop\The orphanage\El Orfanato.mpg", CacheFolder = "C:\Users\Rico\AppData\Local\Temp")
    Video = Video.ConvertToYV12
    Video = Video.AddBorders(0,88,0,88)
    Video = Video.Lanczos4Resize(720,576)

    Audio = GetChannel(A2DAudioSource("C:\Users\Rico\Desktop\The orphanage\El Orfanato.mpg", CacheFolder = "C:\Users\Rico\AppData\Local\Temp"), 1, 3, 2, 5, 6, 4)

    AudioDub(Video, Audio)

    DelayAudio(0.75)

    What do I do with it now? Thanks
     
  9. davexnet

    davexnet Active member

    Joined:
    Jul 7, 2003
    Messages:
    1,856
    Likes Received:
    0
    Trophy Points:
    66
    My advice, initially, is to actually use AVStoDVD.
    (set it up as you want it, check the avs script and press the
    big START button)
    It will create the avs file, pass it to the encoder, encode,
    create the audio (with delay as specified), author,
    create the video_ts and even burn the disk if you ask it to.
    (HCenc can't handle the audio so it is done in a separate app.
    controlled by AVStoDVD)

    A 2nd option would be to open that avs in an encoder that can do the
    audio, such as Tmpgenc Xpress. It will create the mpeg-2 file for you.
    If you use Tmpgenc Authoring Works, it should do the whole thing
    (including the authoring).

    In your script below, you have specified an mpg as source.
    I though you were working from and MKV source?

    If you have a different process or apps in mind, please clarify.
     
  10. Shinraboy

    Shinraboy Regular member

    Joined:
    Jun 24, 2005
    Messages:
    385
    Likes Received:
    0
    Trophy Points:
    26
    oh sorry if I haven't been clear.

    The File: El Orfanato.mkv (SPA/ITA/audio tracks)

    I used mkv2vob to mux it into mpeg. The mpeg has lag (the source ie mkv does not.)

    Im trying to make an mpeg file out of the MKV with just the spanish language for my PS3.

     
  11. Shinraboy

    Shinraboy Regular member

    Joined:
    Jun 24, 2005
    Messages:
    385
    Likes Received:
    0
    Trophy Points:
    26
    I GOT IT!!!!!!! ^_^

    Thanks for all your help. Though I actually used a program I already had. I used TsMUXER and opened my original MKV and Chose the Spanish language track and it's actually working. Pleasantly surprised. Thanks for your help ^_^
     

Share This Page