DVD Lab / Power Vcr help!

Discussion in 'Video capturing from analog sources' started by naveedh, Jun 9, 2005.

  1. naveedh

    naveedh Guest

    Ok guys heres my situation. Ive been battling with this for 3 weeks now i guess i definately need help. I have used power vcr to capture from my camcorder in DVD pal settings using analog source which was my VHS-C camcorder. Then i needed to join all thh files up which i used mpeg video wizard, it out putted a 3 gb file. Great, now i needed to de-mux into elementary streams which i did using tmpgenc but i got audio sych error when i used dvd lab which stated that the audio was 5 mins longer than my video. SO i turned to Virtual dub mod, which then saved the audio as WAV then converted the WAV into ac3 using ffmpeggui which got the audio spot on with the video but still once i author the dvd using dvd lab i get audio sych problems. Oh and i did try to author dvd using ffmpeggui directly to extract the audio to ac3 directly from the system stream, but now im completely lost. Help is all i can say, but if you have spent time reading this i thank you very much so help! Lol
     
  2. rebootjim

    rebootjim Active member

    Joined:
    May 13, 2004
    Messages:
    2,630
    Likes Received:
    0
    Trophy Points:
    66
    Use the audio delay feature in dvdlab. If audio trails video, you can enter a negative number. Usually this is 500ms (1/2 a second).
    If the audio is progressively out of sync (close at the beginning, and getting worse towards the end), then there's another method.
     
  3. naveedh

    naveedh Guest

    thats my exact problem, its a bit alright at the begininng and gets worser at the end.
     
  4. naveedh

    naveedh Guest

    so whats the other method mate?
     
  5. rebootjim

    rebootjim Active member

    Joined:
    May 13, 2004
    Messages:
    2,630
    Likes Received:
    0
    Trophy Points:
    66
    I hope you're ready for this. It's not exactly beginner stuff, but here goes:
    1. The basic principle involved here is to strip out the Audio file (de-mux) then stretch or compress the audio frequency, 48kHz, and re-sample to 48 Then convert to *.MP2 format and re-multiplex with video stream.
    You will need:
    A demuxing app (tmpgenc).
    Goldwave.
    A remuxing app (tmpgenc).

    2. Demux the MPG file so we can manipulate the Audio file. Run TMPGEnc (or other demuxer), click on File and select MPEG Tools. Select Simple De-multiplex tab and for Input, browse to your problem MPG. Video and Audio output names will be automatically generated. The Audio being *.MP2 and video being *.M1V or *.M2V. Click Run and wait until its finished. Exit TMPGEnc.

    3. We now have to estimate the approx time, in seconds, that the audio is out of sync and nearest to the end of the movie as possible. Simply play the original movie with WinDVD or similar player. Windows Media Player is not recommended as it can A/V sync problems of its own. Move slider to near the end of the movie and look for speech, gun fire, explosions, door slamming, etc where you have a precise Audio to Video match up. Estimate the time difference and not the length of the movie. Lets say we find the Audio trails the Video by about 1 second and the movie length was 48 min or 2880 sec (the door slams and about 1 sec later we hear the thud).

    3. Run Goldwave and load in the *.MP2 file. Its also best to turn OFF the Undo feature to speed up the conversions (in Options / File...) Click on Effects and then Playback Rate. We need to change the 48000 Hz to sync the movie, use these formulae:

    New Hz (Audio trails Video) = (Movie length in sec + Out of Sync in sec)/(Movie length in sec) * 48000

    or

    New Hz (Audio precedes Video) = (Movie length in sec - Out of Sync in sec)/(Movie length in sec) * 48000

    So for our example, we have:

    New Hz = (48x60 + 1) / (43x60) * 48000 = 48015

    So change the Rate from 48000 to 48015 (or the number you calculated) and hit OK. Now click Effects again and select Resample. Change the 48015 (or what ever figure you have) back to 48000 and hit OK. Once the conversion is finished, hit Save. For Type select Wave (*.wav) and Attributes as 16bit, Stereo, Signed. Change File name if needed and hit Save. When it finish's answer No and exit the program.

    4. We now need to convert our WAV file back to an MP2 form. Ffmpeggui is the simplest to use for this. Run ffmpeggui, browse to our new WAV file and Open it. Rename the Output file name to something different than the original MP2 file. Now click Settings and change the Bitrate from 192 to 224, this is ESSENTIAL for a VCD. Then click OK and finally click Start.

    5. Run Tmpgenc and under Tools, select MPEG System Multiplexor. Browse for the original Video *.M1V/*.M2V file after changing Files Type to All(*.*). Do the same for the new fixed Audio *.MP2 file. Now select MPEG-2 Program Stream. Enter an output file name (different from the original) and click Save. When done, play the new MPG file in WinDVD and check that A/V sync has been fixed. If its still out a bit, you need to start all over again from Point 3 changing the frequency Rate a bit higher or lower. Repeat until its fixed.

    6. It normally takes me 2 tries to get it right, but luckily I rarely have A/V sync problems.
     
    Last edited: Jun 18, 2005
  6. naveedh

    naveedh Guest

    sorry but im a right ass i guess i wasnt clear in my question. The audio sych problem only happens once iv compiled using dvd lab. The oringal mpeg 2 file plays great in any player e.g. power dvd, win dvd etc only the issue happens after i compile the dvd movie.
     
  7. rebootjim

    rebootjim Active member

    Joined:
    May 13, 2004
    Messages:
    2,630
    Likes Received:
    0
    Trophy Points:
    66
    This is typical. Everyone blames dvdlab, and it's not so.
    The file may play perfectly on your computer, because it's got any number of codecs and software to use. A dvd player only has it's decoder chip.
    If you demux the original file, saving the audio somewhere, encode only video, then transcode audio to 48khz, then add the two back in dvdlab, you rarely have any troubles like this.
     
  8. naveedh

    naveedh Guest

    mate the video is already 48Khz so do i still transcode it into 48Khz?
     
  9. rebootjim

    rebootjim Active member

    Joined:
    May 13, 2004
    Messages:
    2,630
    Likes Received:
    0
    Trophy Points:
    66
    You still need to make it dvd compliant.
    A 48khz VBR mp3 is totally out of spec, and ffmpeggui can't fix crap like that.
    You will need to extract the audio to .wav, then fix the .wav in Goldwave, adjusting sync as needed, then transcode the fixed .wav to ac3 in ffmpeggui.
     
  10. naveedh

    naveedh Guest

    Mate firstly its not a VBR MP3, the audio is a CBR MP2. So how is that totaly out of spec. Isnt there any software available to fix this? i could spend up to $150.
     
  11. rebootjim

    rebootjim Active member

    Joined:
    May 13, 2004
    Messages:
    2,630
    Likes Received:
    0
    Trophy Points:
    66
    You don't need to spend that much.
    I already explained how to fix it in Goldwave.
    If the audio is compliant (48khz) mp2, then it shouldn't go out of sync.
    Demux externally (tmpgenc or whatever).
    Import the audio and video.
    Author it.
    If it's out of sync on your computer, burn a test to DVDRW.
    If you're playing it back in WMP, that could be half the problem.
     
  12. naveedh

    naveedh Guest

    i had only dvd-r and i tested, still i went out of sync. Can you please tell me anything else i can do?
     
  13. naveedh

    naveedh Guest

    I forgot to mention one thing that now i think might be a key thing. since i have line in on my creative sound blaster live digital i used that line in jack instead of the one on my capture card, now could that be a reason for these problems?
     
  14. rebootjim

    rebootjim Active member

    Joined:
    May 13, 2004
    Messages:
    2,630
    Likes Received:
    0
    Trophy Points:
    66
    Yes, because the clock chip on the sound card is running at a different frequency than the clock chip on the capture card.
    It only takes a few Hz out, and everyting desyncs.
     
  15. naveedh

    naveedh Guest

    again it screwed up. The way that my manual states i connected the line out from the capture card in to the line in on my sound card and in the line in on my capture card i connected my camcorder sound input. This still goes through my sound card, but now for the 1st time i recieved a error that the file was 44.1 Khz and dvd lab ran transcode and the audio was spot on. Way more in sync than ever before but now it gets out of sync throught the end?
     
  16. rebootjim

    rebootjim Active member

    Joined:
    May 13, 2004
    Messages:
    2,630
    Likes Received:
    0
    Trophy Points:
    66
    Set your capture software to cap audio at 48khz, and all should be well.
     
  17. naveedh

    naveedh Guest

    well how do i do that in cyberlink power vcr ?
     
  18. rebootjim

    rebootjim Active member

    Joined:
    May 13, 2004
    Messages:
    2,630
    Likes Received:
    0
    Trophy Points:
    66
    I haven't a clue. I don't use, and never have, that software.
    I only use things that allow me to tweak and modify everything I want.
     
  19. naveedh

    naveedh Guest

    what software you recommend for capturing. Im thinkin about virtual dub but it dont let me capture in 720x576 can you help me with that?
     
  20. rebootjim

    rebootjim Active member

    Joined:
    May 13, 2004
    Messages:
    2,630
    Likes Received:
    0
    Trophy Points:
    66

Share This Page