VideoHelp Forum




+ Reply to Thread
Results 1 to 30 of 30
  1. I have an .avi file, and when I convert it in TMPGEnc it ends up having no sound. So I put the audio into a .wav with virtualdub and converted it again, and this time it played sound but it was about 2 seconds ahead of the video.
    Is there any way I can get it to just convert both audio and video in tmpgenc? The original .avi file plays perfectly. Or if you have any other suggestions, I'd really appreciate it. Thanks!
    Quote Quote  
  2. Member Immortal25's Avatar
    Join Date
    May 2004
    Location
    Malaysia
    Search Comp PM
    Hmm.. sounds a bit like my prob. The audio won't sync with the video eh? But mine happens only after at least 30min of the movie...and that is if I've mux it using dvdlab. I don't get it... before this it was ok, but just recently it's proving to be troublesome. I'm making the avi into a dvd btw.. what about you?
    Quote Quote  
  3. VH Veteran jimmalenko's Avatar
    Join Date
    Aug 2003
    Location
    Down under
    Search PM
    extract the audio to a WAV (as you have done), then play around with the audio skew correction (found in audio > interleaving). This should allow you to add a delay, or make the sound start before the video, depending on what you need to do.
    If in doubt, Google it.
    Quote Quote  
  4. Member Immortal25's Avatar
    Join Date
    May 2004
    Location
    Malaysia
    Search Comp PM
    Hmm...but for that skewing thingy, what if only the back portion of the video is out of synch...by skewing that way u change the audio of the whole movie?
    Quote Quote  
  5. Member ZippyP.'s Avatar
    Join Date
    Nov 2002
    Location
    Lotus Land
    Search Comp PM
    Originally Posted by Immortal25
    .. what if only the back portion of the video is out of synch...by skewing that way u change the audio of the whole movie?
    When a video suddenly goes out of sync that indicates bad frames. You can:
    A) Try to scan and find them using Virtualdub (see fix your file below).
    B) Manually use Virtualdub to cut out the offending frames. (Look in the Edit section for a guide.)
    C) Alternatively you can cut the file and make a skew adjustment only to the out-of-sync portion.
    "Art is making something out of nothing and selling it." - Frank Zappa
    Quote Quote  
  6. VH Veteran jimmalenko's Avatar
    Join Date
    Aug 2003
    Location
    Down under
    Search PM
    Originally Posted by ZippyP.
    Originally Posted by Immortal25
    .. what if only the back portion of the video is out of synch...by skewing that way u change the audio of the whole movie?
    When a video suddenly goes out of sync that indicates bad frames. You can:
    A) Try to scan and find them using Virtualdub (see fix your file below).
    B) Manually use Virtualdub to cut out the offending frames. (Look in the Edit section for a guide.)
    C) Alternatively you can cut the file and make a skew adjustment only to the out-of-sync portion.
    ... or use goldwave's timewarp to stretch the section of audio from the last frame it is in synch to the end of the movie.
    Quote Quote  
  7. Member Immortal25's Avatar
    Join Date
    May 2004
    Location
    Malaysia
    Search Comp PM
    Actually I said it wrongly, I meant the audio was out of sync not the video... umm that's cos the audio comes later..about 1-2sec later than the video. So I guess this would mean the video is right on time while the audio is lagging?
    But anyway, same solution?
    Quote Quote  
  8. VH Veteran jimmalenko's Avatar
    Join Date
    Aug 2003
    Location
    Down under
    Search PM
    Originally Posted by Immortal25
    Actually I said it wrongly, I meant the audio was out of sync not the video... umm that's cos the audio comes later..about 1-2sec later than the video. So I guess this would mean the video is right on time while the audio is lagging?
    But anyway, same solution?
    Yep. You can stretch or shrink the runtime of the audio, depending on if the audio is ahead or behind the video. You are right - we say that the video is our datum and is correct, and adjust the audio to suit.
    If in doubt, Google it.
    Quote Quote  
  9. Member Immortal25's Avatar
    Join Date
    May 2004
    Location
    Malaysia
    Search Comp PM
    Thanks for the feedback. Alright, rather than creating another thread, I now have some new questions regarding this whole prob.
    This is what I get everytime I try to open the xvid/divx avi files in VirtualDub. I've attached the image...hopefully you guys can view it.
    What does the warning message mean? And what should I do?

    Edit: Bah I can't seem to post the image? Here's the link anyway.. I think it's alright to post? Correct me if I'm wrong. http://img.photobucket.com/albums/v623/Sandro25/virtualdub.jpg
    Quote Quote  
  10. Member Immortal25's Avatar
    Join Date
    May 2004
    Location
    Malaysia
    Search Comp PM
    Here's something interesting. Btw, this is DVD-LAB which I use to author the dvd. Note the time for the video and audio at the bottom left of the screen. The audio seems to be longer than the video! Maybe that's why the audio is slower? It's always a sec or two after the video has shown?
    Am I correct?
    So, how do I rectify this?

    http://img.photobucket.com/albums/v623/Sandro25/audioandvideotime.jpg
    Quote Quote  
  11. Member
    Join Date
    Sep 2003
    Location
    Belgium
    Search Comp PM
    Originally Posted by Immortal25
    What does the warning message mean? And what should I do?

    Edit: Bah I can't seem to post the image? Here's the link anyway.. I think it's alright to post? Correct me if I'm wrong. http://img.photobucket.com/albums/v623/Sandro25/virtualdub.jpg
    Let me guess: MP3 audio ?

    Originally Posted by Immortal25
    Here's something interesting. Btw, this is DVD-LAB which I use to author the dvd. Note the time for the video and audio at the bottom left of the screen. The audio seems to be longer than the video! Maybe that's why the audio is slower? It's always a sec or two after the video has shown?
    I have the same kind of difference in DVDLab even when my video and audio are in-synch on the final product...
    Quote Quote  
  12. Member Immortal25's Avatar
    Join Date
    May 2004
    Location
    Malaysia
    Search Comp PM
    Well the that message actually appeared before I started anything. But if you are asking whether the source audio is encoded in mp3... then yes. I think most divx/xvid files are in either mp3 or ac3 audio. But... what about it? Anyway what's the message trying to say?

    As for the DVD-Lab thingy....umm maybe you're right. I haven't really noticed the time when it was running fine. Maybe now that I'm paranoid...I start noticing things lol

    Darn... so I'm still left with the audio sync prob
    Quote Quote  
  13. VH Veteran jimmalenko's Avatar
    Join Date
    Aug 2003
    Location
    Down under
    Search PM
    VBR MP3 audio is like a curse for any re-encoding. Typical behaviour is showing running times that are not correct, or in TMPGEnc, encoding the video and then sometimes hours of a blacks creen afterwards. That "error" message is just a warning, too

    The universally-accepted way to overcome this is listed here. You save the audio out to a WAV file, then re-encode it to MP2 or AC3 using ffmpeggui or besweet, to name just two.
    If in doubt, Google it.
    Quote Quote  
  14. Member Immortal25's Avatar
    Join Date
    May 2004
    Location
    Malaysia
    Search Comp PM
    Well Jim, that's the way I always do. It's part of the steps I take to create the dvd. Yet only recently it's giving sync probs. I always extract the audio and then in tempgenc use that audio as source and the video as it is...then encode it into m2v and mp2.
    Then I use the m2v adn mp2 in dvd-lab to author the dvd.


    Edit: In VirtualDub, what does Direct Stream Copy and Full Processing Mode mean anyway and what's the difference?
    Quote Quote  
  15. VH Veteran jimmalenko's Avatar
    Join Date
    Aug 2003
    Location
    Down under
    Search PM
    You might try re-encoding the audio to MP2 in ffmpeggui or besweet instead, just to see if it is TMPGEnc that is causing your synch problems. It used to be the case that TMPGEnc's audio engine was not too flash, and it was recommended that you reconfigure TMPGEnc to use Lame for MP3, toolame for MP2 and SSRC as the resampler (you can change this under Option > Environmental setting > Audio Engine):




    Originally Posted by Immortal25
    In VirtualDub, what does Direct Stream Copy and Full Processing Mode mean anyway and what's the difference?
    Direct Stream Copy .... ummmm .... directly copies the stream as is ... be it video or audio.

    Full processing mode re-encodes every single sample/frame.
    If in doubt, Google it.
    Quote Quote  
  16. Member ZippyP.'s Avatar
    Join Date
    Nov 2002
    Location
    Lotus Land
    Search Comp PM
    Originally Posted by jimmalenko
    Full processing mode re-encodes every single sample/frame.
    And if you don't select some type of compression in full processing you will get a very large uncompressed file.
    "Art is making something out of nothing and selling it." - Frank Zappa
    Quote Quote  
  17. VH Veteran jimmalenko's Avatar
    Join Date
    Aug 2003
    Location
    Down under
    Search PM
    Originally Posted by ZippyP.
    Originally Posted by jimmalenko
    Full processing mode re-encodes every single sample/frame.
    And if you don't select some type of compression in full processing you will get a very large uncompressed file.
    True

    Not like I didn't do that a few times when I was learning ...
    If in doubt, Google it.
    Quote Quote  
  18. Member Immortal25's Avatar
    Join Date
    May 2004
    Location
    Malaysia
    Search Comp PM
    wow I'v ebeen like spending the whole day doing this darn thing. Encoding and then using dvd-lab to author and powerdvd to test if it's in sync or not. Sigh..
    So far the results aren't good. What I've done is use Besweet to convert the wav(which I've extracted using VirtualDub) to mp2. Then I used TMPGenc to encode the video(which I use the mp2 as audio source...) and then dvd-lab to mux both the video(m2v) and mp2 audio.
    Btw what stream type should I choose in TMPGenc? There's ES(Video Only), ES(Audio Only) and ES(V+A). Then there's System(V) and System (V+A).

    Usually ES(V+A) would produce a m2v and mp2 which I would then use in dvd-lab. But now I already have the mp2. So I just need video right? Should I choose ES(V) or System(V)? OR still go on with the (V+A)...

    This is what I don't understand and as far as I can tell, no guide mentioned anything about this.

    Hmm but still concerning the sync thingy I doubt it's anything to do with stream type? So I still got a few more alternatives....then I'm really stuck.

    If all else fails, what other encoding program do you guys recommend? Besides TMPGenc... but something easy to use would be preferable...

    PS: Could it be the fault of DVD-Lab? Could it be that the muxing isn't right? I can't check before muxing it because according to my steps I separate the m2v and mp2.. so I need to mux them before I can check to see if they are in-sync.


    Btw, Jim, I did as you said about the audio engine in TMPGenc. Thanks for the extra tip though so far nothing is helping...

    PSS: As for the full processing and direct stream copy...yeah I did choose full once and wow... 40GB+ for a 1hour file... LOL
    Quote Quote  
  19. Member Immortal25's Avatar
    Join Date
    May 2004
    Location
    Malaysia
    Search Comp PM
    Btw I've checked a thread which tells of bad frames of a video file but when I checked using VirtualDubMOD it says no errors.. so it's not bad frames causing the out of sync prob? Then what is?

    Edit: Regarding the full processing thingy in VirtualDub... why must we choose Full Processing Mode when saving the wav? Why not direct stream copy?
    Quote Quote  
  20. Member ZippyP.'s Avatar
    Join Date
    Nov 2002
    Location
    Lotus Land
    Search Comp PM
    Originally Posted by Immortal25
    Btw I've checked a thread which tells of bad frames of a video file but when I checked using VirtualDubMOD it says no errors.. so it's not bad frames causing the out of sync prob? Then what is?

    Edit: Regarding the full processing thingy in VirtualDub... why must we choose Full Processing Mode when saving the wav? Why not direct stream copy?
    Bad frames can still be present even if Vdub does not catch them, it happens all the time. You have to seek them out manually and cut them.

    You need to set full processing if you want a wav (uncompressed) audio file otherwise it saved as-is (MP3, AC3 etc.).
    "Art is making something out of nothing and selling it." - Frank Zappa
    Quote Quote  
  21. Member ZippyP.'s Avatar
    Join Date
    Nov 2002
    Location
    Lotus Land
    Search Comp PM
    Originally Posted by Immortal25
    Usually ES(V+A) would produce a m2v and mp2 which I would then use in dvd-lab. But now I already have the mp2. So I just need video right? Should I choose ES(V) or System(V)?
    ES(V) will produce an M2V.

    ES= elementary streams
    System=.mpg
    "Art is making something out of nothing and selling it." - Frank Zappa
    Quote Quote  
  22. Member Immortal25's Avatar
    Join Date
    May 2004
    Location
    Malaysia
    Search Comp PM
    Does motion fast capture have anything to do with this sync prob? Cos that's what I recently choose after reading that high quality encoding doesn't really show the difference. Which is true btw...

    How do I see the bad frames???

    Ahh, so this means I should choose ES(V) or the System(V) then?
    Quote Quote  
  23. Member ZippyP.'s Avatar
    Join Date
    Nov 2002
    Location
    Lotus Land
    Search Comp PM
    If you mean the motion search precision setting, then that does not affect the sync.

    You will usually notice the video freeze for a second or go all blocky just when it goes out of sync. That's the part you need to cut out.
    "Art is making something out of nothing and selling it." - Frank Zappa
    Quote Quote  
  24. Member Immortal25's Avatar
    Join Date
    May 2004
    Location
    Malaysia
    Search Comp PM
    Hmm what do you guys think of Goldwave... thinking of trying Goldwave and not VirtualDub for once... just to continue troubleshooting this sync prob.
    Quote Quote  
  25. Member ZippyP.'s Avatar
    Join Date
    Nov 2002
    Location
    Lotus Land
    Search Comp PM
    [quote=Immortal25]Hmm what do you guys think of Goldwave... thinking of trying Goldwave and not [url=https://www.videohelp.com/tools.[/quote]

    It's kinda slow but it's what I use.
    "Art is making something out of nothing and selling it." - Frank Zappa
    Quote Quote  
  26. Member Immortal25's Avatar
    Join Date
    May 2004
    Location
    Malaysia
    Search Comp PM
    Yup just gave it a try and it's slower and more complex than VirtualDub...but more importantly it's still the same results. Not sync...

    Alright nearing no alternatives already... umm what encoding prog do you guys recommend? Gonna try something else other than TMPGenc..
    Quote Quote  
  27. I figured out it was a bad frames problem. In virtualdub the problem was from frame 49953 to 50034. I tried fixing that frame using this guide: https://www.videohelp.com/forum/userguides/153907.php but when I previewed the avi the sound was about 2 seconds before the video just like it was after i encoded it. So right now I'm encoding the new avi I saved with the frames fixed and the audio wav file. Hopefully it will work. I didn't really understand that skewing audio stuff. Does it let you pick which frame to start pushing the audio ahead at?

    EDIT/// No.. it didn't work.
    Quote Quote  
  28. Member Immortal25's Avatar
    Join Date
    May 2004
    Location
    Malaysia
    Search Comp PM
    Well my prob is that the avi file is fine. Perfectly fine. It's just that after encoding it to be ready for dvd it goes out of sync...
    Quote Quote  
  29. Yes that was my problem too, the original avi was perfect.

    What I did was just delete the entire bad frame sequence in virtualdub. Now I have it on dvd and it's perfect.
    Quote Quote  
  30. Member Immortal25's Avatar
    Join Date
    May 2004
    Location
    Malaysia
    Search Comp PM
    You deleted the bad frame? But I tried that guide you linked and my avi didn't have any bad frames
    Quote Quote  



Similar Threads

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