Audio/video sync problems on converted file.

Discussion in 'MPEG-1 and MPEG-2 encoding (AVI to DVD)' started by john03, Jun 13, 2003.

  1. john03

    john03 Member

    Joined:
    Jun 10, 2003
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    11
    I downloaded a film which is in .avi format and there is hardly any problems with it. As with most films, it glitches up for a few seconds now and again and it glitches up for about a 30 seconds to a minute near the start.

    To play this file on a video cd, it needs to be in Mpeg-1 format.Right.

    I convert the file from .avi to .mpeg and I play my newly converted file. It plays fine until the minute long glitching near the start occurs. This stops when the next scene in the film starts. From now on, the film is near unwatchable because the audio is around a minute ahead of the video.

    This does not happen on the .avi file.

    I have used three different programs to convert the file.

    1.)Blaze Media Pro: The file is completely converted.I recieve audio problems.

    2.)avi2vcd: This converts most of the film but I get an error saying there was a problem with a single frame. However if I play back what has been created, I recieve the audio problem.

    3.)TMPGenc: When I choose to open my video file, I choose "compressible video source" or "avi" as the type of files and select my movie, it gives me an error message saying that that type of file is not supported.

    I have also used GSpot to determine the audio type.I use TMPGenc to extract the video and Virtualdub to extract the audio. I convert the audio to .mp2 and merge the extracted video and mp2 file together. When I play this file, I hear a "scratching" sound at the start for about a second and then there is no sound at all!

    As I said, the sound is perfect on my .avi file. How can I combat the problem on my Mpeg file?

    2.)
     
  2. Dela

    Dela Administrator Staff Member

    Joined:
    Aug 25, 2002
    Messages:
    8,895
    Likes Received:
    3
    Trophy Points:
    118
    backup the avi file then run it through divfix and avifixed to see if they can fix the avi! now remember i said make a backup before u do anything!
     
  3. john03

    john03 Member

    Joined:
    Jun 10, 2003
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    11
    The .avi file is perfect and I do not have problems with it. It is the output mpeg file that has audio problems. Whatever happens during the file conversion process is the problem.

    Also, does anyones know a link to get TMPGenc to recognise .avi files?
     
  4. Dela

    Dela Administrator Staff Member

    Joined:
    Aug 25, 2002
    Messages:
    8,895
    Likes Received:
    3
    Trophy Points:
    118
    Well I can help with that, u see the biggest problem tmpgenc has with avi's the audio so i recommend you decompress the audio and then run it through tmpgenc.

    Use virtualdub

    1. open the avi in virtualdub
    2. click video - direct stream copy
    3. click audio - full processing mode
    4. click audio - compression. select no compression pcm and click ok!
    5. click file - save as avi, now try the avi u save with TMPGEnc!
     
  5. john03

    john03 Member

    Joined:
    Jun 10, 2003
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    11
    Do I use the .avi file that I created with virtual dub as the source for my audio also?

    I tried to solve the problem for hours last night and am only trying your solution now Dela.

    LAst night, I extracted the video as a seperate file and the audio as a .wav file. If I use Real Player and Media player to play them over each other, there is no audio problems. However, if I use TMPGenc to merge the two files together, I recieve the audio problem.

    Also, if I convert the .wav file to .mp2, it looses about 5 minutes off the length. The same happens with .mp3 and this creates the audio problem I talked about.

    I even used a program to add a 57 second silence at the start of the .wav file and then converted it to .mp2 and the audio problem was still present , although the delay in the sound was reduced by about 10 seconds so it is now around 45 instead of 57.

    Dela, if this works I will kiss you.

     
  6. john03

    john03 Member

    Joined:
    Jun 10, 2003
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    11
    I used my newly created .avi file as the souce input for my video and audio files with TMPGenc and the output Mpeg file still has the audio problem.

    I forgot ot mention in my last post that:

    1.) When I used my old .avi file (not the newly created one with virtual dub) and the extracted .wav file (remember they play perfectly when played together on two different players) in TMPGenc, the sound is still 57 seconds behind the video. So whatever happens when TMPGenc converts the file causes it to do this.

    2.) I tried using cool edit to add a 57 second silence to the .wav file. However when I open the sound file from the film, I can only edit around the first minute and a half of it. I am using the full version which is registered, however i cannot seem to view the entire audio file.

    Well Dela (or anyone), anymore suggestions?
     
  7. Dela

    Dela Administrator Staff Member

    Joined:
    Aug 25, 2002
    Messages:
    8,895
    Likes Received:
    3
    Trophy Points:
    118
    well try running the avi through avifixed

    make a backup copy before you do!

    And do not ever kiss me! I am male!! Dela is the first 4 letters of my last name! :D
     
  8. john03

    john03 Member

    Joined:
    Jun 10, 2003
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    11
    Ok I won't kiss you, partly because your last solution didn't work and also because I too am male.

    Anyways, I tried using TMPGenc to seperate the video and audio into 2 seperate files. Both files are the same length (ie. the video file(Mpeg1) is 60.28 long and the audio(mp2) file is 60.28 long.)

    An improvement?

    No. I am no longer losing 5 mins of audio like when I converted from .wav to .mp2 or .mp3.

    However, when I play the files over each other, the audio is still a good minute behind the video (ie. I hear the audio and then a minute later I see the actual scene where the audio took place).

    I cannot understand this. Essentially there is a second of audio for every second of video? So why aren't they synchronised?

    When I try merging the two files that I created with TMPGenc, I still get the same problem.

    NB: When I'm merging the files, I usually stop the process about 20% through. Thereby I can open the partailly created file to see if there is an audio problem. Will this make a difference?

    I'm now going to run the file through that program you listed and I'll let you know how it goes. What should be my next step then?
     
  9. john03

    john03 Member

    Joined:
    Jun 10, 2003
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    11
    I ran the file through avifixed and on the output .avi file that it created the audio problem is present.

    Using the full length .mp2 file that TMPGenc created, I converted it to .mp3.
    The audio problem is present in the converted file.
    I open the file with cool edit and add silence to the start of the file to get the voices in sync.This works.

    However about 15 minuts in, the audio is gone behind the video again by about 2 seconds. I keep losing audio slowly like this throughout the film untill a large gap in synchronisation is present at the end.

    Please, can you think of anything I can do?
    There must be a solution, because as I said before, the original .avi file is perfect.
     
  10. Dela

    Dela Administrator Staff Member

    Joined:
    Aug 25, 2002
    Messages:
    8,895
    Likes Received:
    3
    Trophy Points:
    118
    the avi cant be perfect there must be something fucked up with it, what kinda specs your pc got?
     
  11. john03

    john03 Member

    Joined:
    Jun 10, 2003
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    11
    512 MB Ram
    AMD Athelon 2000+ Processor
    120 GB Hard Drive
    32 Mb Graphics Card (SV Graphics ProSavageDDR)
    Windows XP Home Edition

    I sill havn't solved the problem but at least we've narrowed it down to the fact the it has something to do with converting the audio.

    Is it possible that the video stream is conpressed?

    Or that the audio becomes compressed when converted to .mp2 format? Is it possible to use an uncompressed form of audio such as .wav for example, and make it run in an MPEG-1 file?

    That's my guess, that the audio becomes compressed and such, loses sync with the video slowly and gradualy.

    Maybe it has something to do with the settings on TMPGenc?
     
  12. masterv

    masterv Guest

    Yo, I have had the same problem.
    No problem it can be fixed easyly. Listen I know exactly what happens, the video has bad frames and it will stop for a time wile the audio play's further. That's why it get out of sinc. I had the same problem whit harry potter the chamber of secrets only this time it was a bad frame part of 3 sec. So if you open tmgenc and go to options environmentol settings. And then vfapi plugin. Change it in the folowwing order:
    Direct show multimedia file reader: 3
    Avi vfw....: 2
    Avi2(opendml)...: 1
    And set the others to zero.

    Now listen when I did this and open my movie:
    video source: avi file
    audio source: avi file

    Then at the bad frame part when the video stops the audio will stop too automaticly.

    This is what solved my problem. Please reply again I wan't too know what happen'd whit your mpg after doing this.

    Sorry for my bad engilsh.
     
  13. john03

    john03 Member

    Joined:
    Jun 10, 2003
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    11
    First off, your english isn't bad.

    Next, I tried those settings and am creating an MPeg file as we speak.

    Just to clarify, I sed my original .AVI file that I downloaded as the source for my video and audio?

    I will create about 10 minutes of the MPEG file and then reply to let you know how it went.
     
  14. john03

    john03 Member

    Joined:
    Jun 10, 2003
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    11
    well, I used TMPGenc to create an MPEG file using my original .avi file (which I downloaded first) as the video and audio source.

    I adjusted the settings as you said in that exact order. I double checked them and then triple checked to make sure they were correct. I'm just after checking them again a few seconds ago.

    No luck. The output MPEG file still has audio sync problems. I don't know what to do.

    Please can anybody suggest other ideas?
     
  15. masterv

    masterv Guest

    Yo, it's me again.
    Well I tried it again on my harry potter and I don't have problems this time either. So when I set all the plugins to another priyority I just don't get any sound. The multimedia file reader must be on top I think. But I tried to get the problem back where we speaking off. And I just CAN'T get it back. Really weard but i can't. So maybe it's is another thing. If I use a wav file as audio source I keep the audio problem. So I must use the avi as audio source. So I think there must be another setting. Or maybe what I think. Try to install the divx version which the movie is encoded to divx. You can check which divx version is your movie whit virtualdub. I hope it works.
     
  16. john03

    john03 Member

    Joined:
    Jun 10, 2003
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    11
    I checked my settings again in TMPGenc and they are as you said them to be. The multimedia file reader is on top.

    How do I find what version of divx my avi file is?

    And when I do and install that version, what should I do then?

    Your theory sounds plausible(that the video is corrupted in parts and takes longer to switch frames, whilst the audio is playing). However, if this was the case, surely the audio would be ahead of the video?

    I used Sound Forge today to resample the .mp3 file(the one that is out of sync with the video). I changed the frequency to 37,460 instead of 44,100. There is a reason for this number and I calculated this.

    However, the output .mp3 file is exactly the same as the input. The audio is in the exact same position as before.

    This really is driving me crazy, to the point that I stay up till about 2 or 2.30 in the morning trying to fix the problem.

    Can anyone give me anymore suggestions?
     
  17. john03

    john03 Member

    Joined:
    Jun 10, 2003
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    11
  18. john03

    john03 Member

    Joined:
    Jun 10, 2003
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    11
    anyone?
     
  19. john03

    john03 Member

    Joined:
    Jun 10, 2003
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    11
    please?
     
  20. Dela

    Dela Administrator Staff Member

    Joined:
    Aug 25, 2002
    Messages:
    8,895
    Likes Received:
    3
    Trophy Points:
    118
    Ok i missed out a lot on this thread when i went away for a while, so man, fill me in on where you stand and i will see what i can do for ya!
     

Share This Page