VideoHelp Forum
+ Reply to Thread
Results 1 to 10 of 10
Thread
  1. Member
    Join Date
    Oct 2007
    Location
    United States
    Search Comp PM
    I have a downloaded Avi file where things are in sync.

    After conversion with DVD Flick 1.3.0.6 the audio is in sync near the beginning and gradually goes out of sync getting further and further apart.

    I guessed it may have been the conversion of the MP3 (Constant Bit Rate) audio to AC3 (192k) that seems to have caused the sync issue.

    Experimented with AviDemux 2.5 did a Copy on the video (so no encoding) but converted the audio from MP3 (CBR) to AC3 (192k) - and sure enough the audio was out of sync in a very similar manner to the DVD conversion.

    MediaInfo of original Avi (which was in sync)
    General
    Complete name : C:\vDownloads\Safety1\Safety2\1964 - L'Homme De Rio.avi
    Format : AVI
    Format/Info : Audio Video Interleave
    File size : 700 MiB
    Duration : 1h 50mn
    Overall bit rate : 888 Kbps
    Writing library : VirtualDub build 13870/release

    Video
    ID : 0
    Format : MPEG-4 Visual
    Format settings, BVOP : Yes
    Format settings, QPel : No
    Format settings, GMC : No warppoints
    Format settings, Matrix : Default (H.263)
    Codec ID : DIVX
    Codec ID/Info : Project Mayo
    Codec ID/Hint : DivX 4
    Duration : 1h 50mn
    Bit rate : 750 Kbps
    Width : 640 pixels
    Height : 352 pixels
    Display aspect ratio : 16:9
    Frame rate : 25.000 fps
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Compression mode : Lossy
    Bits/(Pixel*Frame) : 0.133
    Stream size : 592 MiB (84%)
    Writing library : FFmpeg0.4.6b4614

    Audio
    ID : 1
    Format : MPEG Audio
    Format version : Version 1
    Format profile : Layer 3
    Mode : Joint stereo
    Mode extension : MS Stereo
    Codec ID : 55
    Codec ID/Hint : MP3
    Duration : 1h 50mn
    Bit rate mode : Constant
    Bit rate : 128 Kbps
    Channel(s) : 2 channels
    Sampling rate : 48.0 KHz
    Compression mode : Lossy
    Stream size : 101 MiB (14%)
    Alignment : Split accross interleaves
    Interleave, duration : 40 ms (1.00 video frame)
    Interleave, preload duration : 500 ms
    MediaInfo of Avi with copied video but audio converted to AC3 (192k) -
    this is progressively out of sync -
    General
    Complete name : C:\vDownloads\Safety1\Safety2\1964 - L'Homme De RioAC3.avi
    Format : AVI
    Format/Info : Audio Video Interleave
    File size : 751 MiB
    Duration : 1h 50mn
    Overall bit rate : 951 Kbps

    Video
    ID : 0
    Format : MPEG-4 Visual
    Format settings, BVOP : Yes
    Format settings, QPel : No
    Format settings, GMC : No warppoints
    Format settings, Matrix : Default (H.263)
    Codec ID : DIVX
    Codec ID/Info : Project Mayo
    Codec ID/Hint : DivX 4
    Duration : 1h 50mn
    Bit rate : 750 Kbps
    Width : 640 pixels
    Height : 352 pixels
    Display aspect ratio : 16:9
    Frame rate : 25.000 fps
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Compression mode : Lossy
    Bits/(Pixel*Frame) : 0.133
    Stream size : 592 MiB (79%)
    Writing library : FFmpeg0.4.6b4614

    Audio
    ID : 1
    Format : AC-3
    Format/Info : Audio Coding 3
    Mode extension : CM (complete main)
    Codec ID : 2000
    Duration : 1h 49mn
    Bit rate mode : Constant
    Bit rate : 192 Kbps
    Channel(s) : 2 channels
    Channel positions : Front: L R
    Sampling rate : 48.0 KHz
    Bit depth : 16 bits
    Compression mode : Lossy
    Stream size : 150 MiB (20%)
    Alignment : Aligned on interleaves
    Interleave, duration : 32 ms (0.81 video frame)
    I have used DVD Flick for years and have had really good success converting all sorts of video files to DVD.
    Have had a very few Avi's that suffered from audio going out of sync.

    Usually I do the AviDemux trick of converting the audio to AC3 (192k) - format of the final audio on the DVD files - and all's back in sync.

    However this one time it did not do it - but the converted audio progressively goes more and more out of sync, in a similar way to the DVD Flick conversion.

    I tried various tricks like using VirtualDub's framerate "Change so video and audio durations match" on the converted AC3 version - strangely enough at first I thought it had re-sync'd - but the beginning and end are more or less in sync - but as early as about 10 minutes there was several seconds out of sync and toward the middle of the video they were pretty horribly out of sync....

    Not knowing or understanding what I was doing I tried use the interleaving parameters in the original file with the AC3 version - that didn't work either whether I changed framerate matching durations or not.

    I tried saving/converting the original Avi to other formats, and even tried DVD Flick to convert to PAL because of the 25fps of the original Avi - but no good.

    [Aside: In the end I found a very awkward Mkv version of the video which DVD Flick got stuck on the audio conversion, so used VirtualDub to convert/extract to Avi then DVD Flick managed to convert that in sync fine (even though version 1.3.0.6 complained of overflow error).]

    So there is no dire need to solve this problem -
    but perhaps some more experienced here can please give me some pointers
    to why an Avi file which was in sync
    - goes out of sync when using DVD Flick to convert to DVD
    and why AviDemux conversion of the audio only, to AC3 resulted in same/similar progressive out sync?

    Thanks
    Last edited by UnknownVT; 10th Jan 2012 at 19:10.
    Quote Quote  
  2. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    It usually occurs when either the video or audio has a variable frame rate, but I don't see any sign of it in your source.
    You don't really want to go to a non-standard frame rate to get it to match up.
    Probably OK if all you're going to do is play it on the PC, but not so good for DVD or external media devices.

    A thing to try is to open the source avi in Virtualdub. Set video to direct stream copy and audio to full processing.
    Audio/compression/no compression PCM.
    File /save as avi. Now you should have a copy of the avi file with uncompressed audio. Verify that it plays back in sync,
    if so try converting that version and see if it works.
    Quote Quote  
  3. Member
    Join Date
    Oct 2007
    Location
    United States
    Search Comp PM
    Originally Posted by davexnet View Post
    A thing to try is to open the source avi in Virtualdub. Set video to direct stream copy and audio to full processing.
    Audio/compression/no compression PCM.
    File /save as avi. Now you should have a copy of the avi file with uncompressed audio. Verify that it plays back in sync,
    Thank you so much for the response.

    Yes, I had actually tried what you suggested -
    as expanding to uncompressed audio seemed to be a frequent suggestion.
    Unfortunately that was out of sync as well.

    MediaInfo on VirtualDub direct stream copy of video and expansion of audio to PCM
    (out of sync - different duration of video and audio):
    General
    Complete name : C:\vDownloads\Safety1\Safety2\1964 - L'Homme De RiovDubPCM.avi
    Format : AVI
    Format/Info : Audio Video Interleave
    File size : 1.76 GiB
    Duration : 1h 50mn
    Overall bit rate : 2 284 Kbps
    Writing library : VirtualDub build 32842/release

    Video
    ID : 0
    Format : MPEG-4 Visual
    Format settings, BVOP : Yes
    Format settings, QPel : No
    Format settings, GMC : No warppoints
    Format settings, Matrix : Default (H.263)
    Codec ID : DIVX
    Codec ID/Info : Project Mayo
    Codec ID/Hint : DivX 4
    Duration : 1h 50mn
    Bit rate : 750 Kbps
    Width : 640 pixels
    Height : 352 pixels
    Display aspect ratio : 16:9
    Frame rate : 25.000 fps
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Compression mode : Lossy
    Bits/(Pixel*Frame) : 0.133
    Stream size : 592 MiB (33%)
    Writing library : FFmpeg0.4.6b4614

    Audio
    ID : 1
    Format : PCM
    Format settings, Endianness : Little
    Format settings, Sign : Signed
    Codec ID : 1
    Duration : 1h 49mn
    Bit rate mode : Constant
    Bit rate : 1 536 Kbps
    Channel(s) : 2 channels
    Sampling rate : 48.0 KHz
    Bit depth : 16 bits
    Stream size : 1.17 GiB (67%)
    Interleave, duration : 40 ms (1.01 video frame)
    Interleave, preload duration : 500 ms
    Quote Quote  
  4. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Well if you go into virtualdub, video/frame rate,
    it will tell you if the durations are different. It says something about "change video so durations match."

    Even if the durations are a little different, it should still be fixable. I may have to download your file to get any further with this.
    Quote Quote  
  5. Member
    Join Date
    Oct 2007
    Location
    United States
    Search Comp PM
    Originally Posted by davexnet View Post
    Well if you go into virtualdub, video/frame rate,
    it will tell you if the durations are different. It says something about "change video so durations match."

    Even if the durations are a little different, it should still be fixable. I may have to download your file to get any further with this.
    Thanks,
    matching durations in VirtualDub framerate is something I also tried:
    from my opening post -
    Originally Posted by UnknownVT View Post
    I tried various tricks like using VirtualDub's framerate "Change so video and audio durations match" on the converted AC3 version - strangely enough at first I thought it had re-sync'd - but the beginning and end are more or less in sync - but as early as about 10 minutes there was several seconds out of sync and toward the middle of the video they were pretty horribly out of sync....
    MediaInfo of VirtualDub direct stream copy video, and AC3 conversion -
    then matching durations:
    note: the durations now match at the shorter 1h49m -
    in sync at beginning and end - but out of sync by several seconds as early as 10mins, then horribly out of sync in the middle -
    General
    Complete name : C:\vDownloads\Safety1\Safety2\1964 - L'Homme De RioAC3vDubC.avi
    Format : AVI
    Format/Info : Audio Video Interleave
    File size : 745 MiB
    Duration : 1h 49mn
    Overall bit rate : 951 Kbps
    Writing library : VirtualDub build 32842/release

    Video
    ID : 0
    Format : MPEG-4 Visual
    Format settings, BVOP : Yes
    Format settings, QPel : No
    Format settings, GMC : No warppoints
    Format settings, Matrix : Default (H.263)
    Codec ID : DIVX
    Codec ID/Info : Project Mayo
    Codec ID/Hint : DivX 4
    Duration : 1h 49mn
    Bit rate : 750 Kbps
    Width : 640 pixels
    Height : 352 pixels
    Display aspect ratio : 16:9
    Frame rate : 25.000 fps
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Compression mode : Lossy
    Bits/(Pixel*Frame) : 0.133
    Stream size : 587 MiB (79%)
    Writing library : FFmpeg0.4.6b4614

    Audio
    ID : 1
    Format : AC-3
    Format/Info : Audio Coding 3
    Mode extension : CM (complete main)
    Codec ID : 2000
    Duration : 1h 49mn
    Bit rate mode : Constant
    Bit rate : 192 Kbps
    Channel(s) : 2 channels
    Channel positions : Front: L R
    Sampling rate : 48.0 KHz
    Bit depth : 16 bits
    Compression mode : Lossy
    Stream size : 150 MiB (20%)
    Alignment : Split accross interleaves
    Interleave, duration : 40 ms (1.00 video frame)
    Interleave, preload duration : 500 ms
    I downloaded the 700.32MB file from here
    I think this download is also the same file.

    That file has wrong display aspect ratio (which fortunately was easier to address)
    it is in French - if anyone's interested, the English subtitles (srt file) are here -
    had to use Subtitle Edit to visual sync the subtitles but that was straightforward.

    The movie is L'Homme de Rio (1964) - English title was "That Man from Rio"

    The original Avi file is in sync so was fine (except for the aspect ratio) - it was easy to sync the subtitles - and it is very watchable on the PC - but I wanted to convert it to DVD - which is normally simple with DVD Flick - but this file the audio goes progressively more out of sync.

    Thanks again for your response.

    In the end I downloaded another copy which was much, much bigger at 2.17Gb and in 9 parts - it un-rar'd to a mkv file with two audio tracks - default dubbed Russian, and the other was the original French. DVD Flick got stuck encoding the audio (the second audio track - French) - so I used VirtualDub to direct stream copy the video and chose the second audio track and saved to Avi - but it was still big at 1.8Gb - DVD Flick complained about overflow error (I'm using 1.3.0.6 as the latest v.1.3.0.7 does not recognize flv files on my pc) but it continued to process the video to DVD files - so I didn't question it and the DVD turned out to be fine and in sync.
    Quote Quote  
  6. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    I saw the loss of a second or so from the audio, probably some bad frames, but it stayed in synch.

    I opened the source in Virtualdub, video direct stream copy, audio full/PCM.
    Save as new avi

    Used this as input to avidemux,, version 2.6 build 7719. Video to copy, audio to ac3,
    format to MKV - saved the whole thing . It's still in synch.

    I tried AVStoDVD (instead of DVD flick) on the original file as-is.
    Created a small DVD from the first 17000 frames (~ 11 minutes). The result is perfect.
    Give AVStoDVD 2.42 a try. Install it, set the preferences, (pal/ntsc, paths, etc)

    Load the source file, right click the title and select "edit source title info"/aspect ratio/1.33
    Add your subs. Edit title just to check the settings and it's ready to go.

    This program needs avisynth, and haali media splitter, probably ffdshow (unless you have an alternate codec installed)
    Quote Quote  
  7. Member
    Join Date
    Oct 2007
    Location
    United States
    Search Comp PM
    WoW! thank you so much -
    I really appreciate all the effort you have gone to on this.

    Originally Posted by davexnet View Post
    I saw the loss of a second or so from the audio, probably some bad frames, but it stayed in synch.

    I opened the source in Virtualdub, video direct stream copy, audio full/PCM.
    Save as new avi

    Used this as input to avidemux,, version 2.6 build 7719. Video to copy, audio to ac3,
    format to MKV - saved the whole thing . It's still in synch.
    OK because of what you said I literally just used VirtualDub (v.1.9.11) again to do -
    direct stream copy video, full processing audio to no compression PCM - saved as new Avi

    BUT
    in my case the audio does go progressively more out of sync.

    At the beginning it is more or less in sync (nothing really to complain about)
    However - at ~20:17 the audio is for ~20:23 - about a 6sec early,
    then at 1:40:12 the audio (dialog/subtitle: "3, 4. The opening.") is actually for ~1:41:01 - that's almost 1min early!

    MediaInfo of resultant Avi with PCM audio
    General
    Complete name : C:\vDownloads\Safety1\Safety2\1964 - L'Homme De RiovDubPCM120111.avi
    Format : AVI
    Format/Info : Audio Video Interleave
    File size : 1.76 GiB
    Duration : 1h 50mn
    Overall bit rate : 2 284 Kbps
    Writing library : VirtualDub build 32842/release

    Video
    ID : 0
    Format : MPEG-4 Visual
    Format settings, BVOP : Yes
    Format settings, QPel : No
    Format settings, GMC : No warppoints
    Format settings, Matrix : Default (H.263)
    Codec ID : DIVX
    Codec ID/Info : Project Mayo
    Codec ID/Hint : DivX 4
    Duration : 1h 50mn
    Bit rate : 750 Kbps
    Width : 640 pixels
    Height : 352 pixels
    Display aspect ratio : 16:9
    Frame rate : 25.000 fps
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Compression mode : Lossy
    Bits/(Pixel*Frame) : 0.133
    Stream size : 592 MiB (33%)
    Writing library : FFmpeg0.4.6b4614

    Audio
    ID : 1
    Format : PCM
    Format settings, Endianness : Little
    Format settings, Sign : Signed
    Codec ID : 1
    Duration : 1h 49mn
    Bit rate mode : Constant
    Bit rate : 1 536 Kbps
    Channel(s) : 2 channels
    Sampling rate : 48.0 KHz
    Bit depth : 16 bits
    Stream size : 1.17 GiB (67%)
    Interleave, duration : 40 ms (1.01 video frame)
    Interleave, preload duration : 500 ms
    this looks like the same as my previous version in post #3, except for obviously the Avi filename

    Is there some setting I may have missed, to cause the audio to go progressively more out of sync/earlier?

    Originally Posted by davexnet View Post
    I tried AVStoDVD (instead of DVD flick) on the original file as-is.
    Created a small DVD from the first 17000 frames (~ 11 minutes). The result is perfect.
    Give AVStoDVD 2.42 a try. Install it, set the preferences, (pal/ntsc, paths, etc)

    Load the source file, right click the title and select "edit source title info"/aspect ratio/1.33
    Add your subs. Edit title just to check the settings and it's ready to go.

    This program needs avisynth, and haali media splitter, probably ffdshow (unless you have an alternate codec installed)
    Unfortunately for my case the audio goes progressively more out of sync -
    so it will be in sync near the beginning - but goes more and more out of sync -
    I'm pretty sure the conversion is dependent on the file length -
    at the beginning in sync, then by 1h40m it is almost 1 min out of sync (in my case).

    But I really want to thank you for your above and beyond efforts.
    Last edited by UnknownVT; 11th Jan 2012 at 12:59.
    Quote Quote  
  8. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    I encoded the whole thing this time, now I see the problem. It almost behaves as if the audio was abr/vbr but
    was being treated as cbr. In avidemux 254/255 you can create time map, but it didn't help.
    I'm out of idea's - perhaps somebody else may chime in .
    Quote Quote  
  9. Member
    Join Date
    Oct 2007
    Location
    United States
    Search Comp PM
    Originally Posted by davexnet View Post
    I encoded the whole thing this time, now I see the problem. It almost behaves as if the audio was abr/vbr but
    was being treated as cbr. In avidemux 254/255 you can create time map, but it didn't help.
    I'm out of idea's - perhaps somebody else may chime in .
    Ah! - OK...

    But I still want to thank you for taking the effort -
    that was really nice of you and much appreciated -
    like I said way above and beyond.

    Thanks so much!
    Quote Quote  
  10. Originally Posted by davexnet View Post
    I'm out of idea's - perhaps somebody else may chime in .
    How about this idea - he downloaded crap from the internet. It may have little glitches or corruptions at various places which causes it to go out of synch when reencoded. I wouldn't worry about it if I were you. If I were UnknownVT, I'd try first (maybe) to redownload it and, failing that, find a copy from somewhere else, or maybe even (gasp!) buy the DVD:

    http://www.amazon.fr/s/ref=nb_sb_noss/279-1883985-3018258?__mk_fr_FR=%C5M%C5Z%D5%D1&ur...+Rio&x=21&y=21

    http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Dmovies-tv&field-keywords=L%2...+Rio&x=17&y=21
    Quote Quote  



Similar Threads

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