+ Reply to Thread
Results 1 to 11 of 11
Thread
  1. Member
    Join Date: Nov 2009
    Location: United States
    I didn't know where to put this but I really need help, I want to encode this mkv file so that It would stay in sync with the audio.

    I've read about Avisynth but I understand very little since there's so many filters and plugins. So is there anyone who could help me I would give the link to the video so that someone could point me in the right direction since this isn't the only one I wan't to sync I just want an example.

    Once I get the hang of it with the first actually example and explanation I think I can do it by myself.

    here's the link to the video:

    http://www.megaupload.com/?d=3J5ZK51W
    Quote Quote  

  2. Member
    Join Date: Dec 2005
    Location: none
    AviSynth won't directly help you with audio sync. What software are you using? What are you converting to? DVD?
    Quote Quote  

  3. And I, for one, don't want to download a 360 MB file just to check the audio synch. If you want to find out the delay to set, play it in Media Player Classic Home Cinema and use the +/- keys to find the delay. Demux and then either remove the delay entirely from the audio (DelayCut, depending on the type of audio), or set that same delay when remuxing to MKV or authoring the DVD or whatever you're doing with it.
    Quote Quote  

  4. Member
    Join Date: Feb 2004
    Location: Australia
    Audio needs stretching by about 1.0 second

    Decode to wav and use audacity to stretch using pitch adjustment

    Video is h.264, audio is aac
    Quote Quote  

  5. Member
    Join Date: Dec 2005
    Location: none
    From what I saw, all the audio needs is to be moved forward by a bit. That is, the audio is playing late by the same amount through the entire video. Use MkvMerge to set the audio delay to -500 ms.
    Quote Quote  

  6. Member
    Join Date: Nov 2009
    Location: United States
    anyway of dropping frames rather than actually messing with the audio.

    I tried changing the frame rate of the video with avisynth but no luck the video gets more out of sync I need to know what exactly do I need to do with the video, so that it can stay in sync with the audio, at this point I don't care if I need to delete repeated frames as long as it plays smoothly, and in sync with the audio.
    Quote Quote  

  7. Member
    Join Date: Dec 2005
    Location: none
    I told you exactly what to do. It will only take a minute and there will be absolutely no change in audio or video quality. All it does is tell the player to start playing the audio 500 ms before the video. Most players also have an audio delay feature so you can play your original file with the audio moved forward.



    Note: it's also possible that some of us are seeing different issues. Playback of A/V files will sometimes vary depending on what player you are using and what DirectShow filters you have installed.
    Quote Quote  

  8. Member
    Join Date: Nov 2009
    Location: United States
    Thanks it worked and also could someone help me with this

    http://www.megaupload.com/?d=7HGV2SL0

    This is an mpv file about 2 minutes long and I want to encode to a vc1 file but as you can see there's jitteriness going on, and at least I want to fix that I tried converting the file via vc1conv VC-1 Elementary Stream Converter 0.4 which converts HD DVD 29.97 fps streams with pulldown flags to 23.976 fps progressive but nothing happened I got this:

    C:\vc1conv> vc1conv C:\vc1conv\original_clip.mpv C:\vc1conv\converted_clip.mpv
    vc1conv VC-1 Elementary Stream Converter 0.4
    Sequence Header found
    0 frames before first I-frame
    Reserved Profile
    Level = 1
    Chroma Format = 4:2:0
    Horizontal size = 2310
    Pulldown = 0
    Interlace = 0
    Aspect ratio = unspecifed
    Forbidden Frame Rate!
    Forbidden Frame Rate!
    Frame Rate = -1.#10
    frames = 0, running time 0:0:0.000000
    Since that didn't work I muxed the file in tsmuxer to a m2ts and encoded it with XVID4PSP and I got this:0

    http://www.megaupload.com/?d=BQ0LSSG1

    I really want to get rid of the jitteriness so that the video would look smooth could someone help with this I would really appreciate it.
    Quote Quote  

  9. Member
    Join Date: Dec 2005
    Location: none
    It looks like normal telecined film to me. 12 fps character animation, 24 fps pans. It's not going to get any smoother because of the low frame rate of the character animation.

    Code:
    MPEG2Source("00003_original.d2v")
    AssumeTFF()
    TFM()
    TDecimate()
    Since it's upscaled standard definition material you can even use a simple bob.

    Code:
    MPEG2Source("00003_original.d2v")
    AssumeTFF()
    Bob()
    SelectEven()
    TDecimate()
    And since it's upscaled SD you might as well reduce the frame size too.

    Code:
    MPEG2Source("00003_original.d2v")
    AssumeTFF()
    SeparateFields()
    SelectEven()
    BilinearResize(704,400)
    TDecimate()
    Quote Quote  

  10. Member
    Join Date: Nov 2009
    Location: United States
    Thanks for the fast reply. I did some research and since I didn't want the video to have a resolution 2 times lower than what it is this now I read some guides, and here are the results:

    This is without SAA

    import("C:\Program Files\AviSynth 2.5\plugins\AAA.avs")
    import("C:\Program Files\AviSynth 2.5\plugins\SAA.avs")
    import("C:\Program Files\AviSynth 2.5\plugins\Antialiasing.avs")
    loadplugin("C:\Program Files\AviSynth 2.5\plugins\SangNom.dll")
    loadplugin("C:\Program Files\AviSynth 2.5\plugins\UnFilter.dll")
    loadplugin("C:\Program Files\AviSynth 2.5\plugins\MaskTools.dll")

    MPEG2Source("C:\Documents and Settings\HP_Administrator\My Documents\Vocabulary\air sample.index\air sample.d2v",cpu=0,info=3)
    AAA(xres=1024, yres=576, xshrp=20, yshrp=20, us=1, ds=2, chroma=true)
    AntiAliasing(th_luma=20, th_croma=20)
    http://i49.tinypic.com/2zoho55.jpg

    http://i48.tinypic.com/2yl8gog.jpg

    This is with SAA:

    import("C:\Program Files\AviSynth 2.5\plugins\AAA.avs")
    import("C:\Program Files\AviSynth 2.5\plugins\SAA.avs")
    import("C:\Program Files\AviSynth 2.5\plugins\Antialiasing.avs")
    loadplugin("C:\Program Files\AviSynth 2.5\plugins\SangNom.dll")
    loadplugin("C:\Program Files\AviSynth 2.5\plugins\UnFilter.dll")
    loadplugin("C:\Program Files\AviSynth 2.5\plugins\MaskTools.dll")

    MPEG2Source("C:\Documents and Settings\HP_Administrator\My Documents\Vocabulary\air sample.index\air sample.d2v",cpu=0,info=3)
    AAA(xres=1024, yres=576, xshrp=20, yshrp=20, us=1, ds=2, chroma=true)
    AntiAliasing(th_luma=20, th_croma=20)
    SAA()
    http://i48.tinypic.com/mvn6v7.jpg

    http://i49.tinypic.com/v5ctwh.jpg

    So here's my question I believe the one without SAA to be better, which should I chose and also, I want the resolution to be 1280x720, and since I got the above script from somewhere else, I know I need to change something so when I change the resolution to 1280x720 it would be of the same quality as the one above.

    What do I need to change here:

    AAA(xres=1024, yres=576, xshrp=20, yshrp=20, us=1, ds=2, chroma=true)
    AntiAliasing(th_luma=20, th_croma=20)
    Quote Quote  

  11. Member
    Join Date: Dec 2005
    Location: none
    I don't use AAA() but since 1280x720 isn't much different than 1024x576 you can probably use the same arguments for everything else.
    Quote Quote  




Similar Threads

  1. Audio Video in sync pre-burn, out of sync during playback. Please Help.
    By TheManWhoCan in forum Newbie / General discussions
    Replies: 3
    Last Post: 25th Jan 2007, 12:02
  2. CAPTURED VIDEO BURNED TO DVD - AUDIO NOT IN SYNC WITH VIDEO - HELP !
    By kona1984 in forum Newbie / General discussions
    Replies: 2
    Last Post: 2nd Nov 2006, 01:06
  3. Replies: 13
    Last Post: 30th Apr 2004, 09:53
  4. Video and Audio out of Sync and Video is pausing on DVD play
    By NWT Extreme Video in forum Newbie / General discussions
    Replies: 0
    Last Post: 29th Aug 2003, 17:19
  5. Replies: 8
    Last Post: 15th Jul 2002, 15:57
About   Advertise   Forum   RSS Feeds   Statistics   Tools