VideoHelp Forum
+ Reply to Thread
Results 1 to 2 of 2
Thread
  1. Hello,

    I am encoding all of my movie DVDs into MP4 files to use them for adaptive streaming (6 different bit rates).

    I am using MeGUI for this encoding and everything seems to be pretty good except some few a/v sync issues.

    Many of my DVDs have full interlaced content or partial interlaced content.

    So, after selecting my input, I am doing "Analysis" of the input and selecting the deinterlace filter suggested by MeGUI.

    For many of the DVDs, it is "TIVTC".

    After that, I am selecting custom parameters for X264 and doing AAC audio encoding using Nero.

    Then, muxing the streams into MP4 using MP4 muxer.

    For all the outputs, I see a little a/v sync issues. The sync issue appears & disappears automatically for every 2 to 3 minutes. The issue looks as a cycle.

    If it is constant, I might have adjusted the delay. But, it is coming as cycles.

    Could you please suggest me something to fix this issue?

    Thank you for your time!
    Quote Quote  
  2. Here is more info:

    When I extract .VOB from DVD, DVDDecrypter created the following log:

    Code:
    Stream Type: MPEG2 Program
    Profile: main@main
    Frame Size: 720x480
    Display Size: [not specified]
    Aspect Ratio: 16:9 [3]
    Frame Rate: 29.970030 fps
    Video Type: NTSC
    Frame Type: Interlaced
    Coding Type: B
    Colorimetry: BT.470-2 B,G*
    Frame Structure: Frame
    Field Order: 
    Coded Number: 280211
    Playback Number: 2
    Frame Repeats: 0
    Field Repeats: 0
    VOB ID: 1
    Cell ID: 28
    Bitrate: 
    Bitrate (Avg): 
    Bitrate (Max): 
    Audio Stream: 80: AC3 3/2 448
    Timestamp: 2:35:49
    Elapsed: 0:01:21
    Remain: FINISH
    FPS: 
    Info:

    Below is the info from MediaInfo tool:

    Code:
    General
    Complete name                            : D:\Source\MyTestVideo.VOB
    Format                                   : MPEG-PS
    File size                                : 7.50 GiB
    Duration                                 : 2h 35mn
    Overall bit rate mode                    : Variable
    Overall bit rate                         : 6 891 Kbps
    
    Video
    ID                                       : 224 (0xE0)
    Format                                   : MPEG Video
    Format version                           : Version 2
    Format profile                           : Main@Main
    Format settings, BVOP                    : Yes
    Format settings, Matrix                  : Custom
    Format settings, GOP                     : M=3, N=15
    Duration                                 : 2h 35mn
    Bit rate mode                            : Variable
    Bit rate                                 : 6 306 Kbps
    Maximum bit rate                         : 8 000 Kbps
    Width                                    : 720 pixels
    Height                                   : 480 pixels
    Display aspect ratio                     : 16:9
    Frame rate                               : 29.970 fps
    Standard                                 : NTSC
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Interlaced
    Scan order                               : Top Field First
    Compression mode                         : Lossy
    Bits/(Pixel*Frame)                       : 0.609
    Stream size                              : 6.86 GiB (92%)
    
    Audio
    ID                                       : 189 (0xBD)-128 (0x80)
    Format                                   : AC-3
    Format/Info                              : Audio Coding 3
    Mode extension                           : CM (complete main)
    Format settings, Endianness              : Big
    Muxing mode                              : DVD-Video
    Duration                                 : 11s 40ms
    Bit rate mode                            : Constant
    Bit rate                                 : 448 Kbps
    Channel(s)                               : 6 channels
    Channel positions                        : Front: L C R, Side: L R, LFE
    Sampling rate                            : 48.0 KHz
    Bit depth                                : 16 bits
    Compression mode                         : Lossy
    Stream size                              : 604 KiB (0%)
    I am using below AVISynth script to resize and place watermark:

    Code:
    LoadPlugin("D:\MeGUI_2153_x86\tools\dgindex\DGDecode.dll")
    DGDecode_mpeg2source("D:\Output\MyTestVideo.d2v", info=3)
    LoadPlugin("D:\MeGUI_2153_x86\tools\avisynth_plugin\ColorMatrix.dll")
    ColorMatrix(hints=true, interlaced=true, threads=0)
    LoadPlugin("D:\MeGUI_2153_x86\tools\avisynth_plugin\TIVTC.dll")
    tfm(order=-1).tdecimate(hybrid=3)
    a1=LanczosResize(768,432) # Lanczos (Sharp)
    a2=ImageReader("D:\Logos\Watermark_80x80.png")
    a3=ImageReader("D:\Logos\Watermark_80x80.png",pixel_type="RGB32").ShowAlpha(pixel_type="RGB32")
    Overlay(a1,a2,mask=a3, x=640, y=1)
    Then, I am using the attached X264 profiles to encode the video into 1800k variant. I am NeroAAC to encode AC3 into AAC with 128k bitrate.

    Once the video & audio tracks are ready, I am muxing them using MP4muxer. But, when I play the MP4 file, av will be in perfectly sync for 1 minute (approx.) and then it will go out of sync for next 3 to 4 minutes. Audio comes 0.5 seconds before the video.

    The above cycle repeats through out the movie.

    Below is the info of MP4 from MediaInfo:

    Code:
    General
    Complete name                            : D:\Output\MyTestVideo_1800k.mp4
    Format                                   : MPEG-4
    Format profile                           : Base Media
    Codec ID                                 : isom
    File size                                : 2.09 GiB
    Duration                                 : 2h 35mn
    Overall bit rate                         : 1 921 Kbps
    Writing application                      : Lavf54.33.100
    
    Video
    ID                                       : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : Main@L3.1
    Format settings, CABAC                   : Yes
    Format settings, ReFrames                : 4 frames
    Codec ID                                 : avc1
    Codec ID/Info                            : Advanced Video Coding
    Duration                                 : 2h 35mn
    Bit rate                                 : 1 800 Kbps
    Width                                    : 768 pixels
    Height                                   : 432 pixels
    Display aspect ratio                     : 16:9
    Frame rate mode                          : Constant
    Frame rate                               : 29.970 fps
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Bits/(Pixel*Frame)                       : 0.181
    Stream size                              : 1.95 GiB (93%)
    Writing library                          : x264 core 125 r2200 999b753
    Encoding settings                        : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=8 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=60 / keyint_min=31 / scenecut=0 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=1800 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=1800 / vbv_bufsize=1800 / nal_hrd=none / ip_ratio=1.40 / aq=1:1.00
    Tagged date                              : UTC 2012-10-23 23:40:00
    
    Audio
    ID                                       : 2
    Format                                   : AAC
    Format/Info                              : Advanced Audio Codec
    Format profile                           : LC
    Codec ID                                 : 40
    Duration                                 : 2h 35mn
    Bit rate mode                            : Constant
    Bit rate                                 : 128 Kbps
    Channel(s)                               : 2 channels
    Channel positions                        : Front: L R
    Sampling rate                            : 48.0 KHz
    Compression mode                         : Lossy
    Delay relative to video                  : -2s 2ms
    Stream size                              : 143 MiB (7%)
    Tagged date                              : UTC 2012-10-23 23:40:00
    Please let me know, if you have any suggestions. Thank you for your time!
    Image Attached Files
    Quote Quote  



Similar Threads

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