Caution
15th April 2010, 14:46
Avisynth v2.5.8
Windows 7 Home Premium
I have a small MP4 video clip (H264/AAC) that, for some reason, when sourced through avisynth via an avs script, plays completely out of sync. The resulting audio plays through at about 4 times the original speed. This happens no matter what the frame-rate is defined as. Playback is perfect if I produce the AAC stream with 6 channels of audio but problematic with 2 channel stereo.
directshowsource("TestHL2.mp4")
AssumeFPS(60, 1, true)
Source (Mediainfo)
Video
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 2 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 19s 983ms
Bit rate mode : Variable
Bit rate : 1 627 Kbps
Nominal bit rate : 1 500 Kbps
Maximum bit rate : 6 734 Kbps
Width : 960 pixels
Height : 540 pixels
Display aspect ratio : 16/9
Frame rate mode : Constant
Frame rate : 60.000 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.052
Stream size : 3.88 MiB (93%)
Writing library : x264 core 80 r1376 3feaec2
Encoding settings : cabac=1 / ref=1 / deblock=1:-1:-1 / analyse=0x3:0x133 / me=umh / subme=7 / psy=1 / psy_rd=1.0:0.0 / mixed_ref=0 /
me_range=32 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / mbaff=0 /constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=3 / wpredb=1 / wpredp=2 / keyint=250 / keyint_min=25 / scenecut=40 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=1500 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Audio
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Format settings, SBR : No
Codec ID : 40
Duration : 19s 989ms
Bit rate mode : Variable
Bit rate : 120 Kbps
Maximum bit rate : 135 Kbps
Channel(s) : 2 channels
Channel positions : L R
Sampling rate : 48.0 KHz
Resolution : 16 bits
Stream size : 293 KiB (7%)
Windows 7 Home Premium
I have a small MP4 video clip (H264/AAC) that, for some reason, when sourced through avisynth via an avs script, plays completely out of sync. The resulting audio plays through at about 4 times the original speed. This happens no matter what the frame-rate is defined as. Playback is perfect if I produce the AAC stream with 6 channels of audio but problematic with 2 channel stereo.
directshowsource("TestHL2.mp4")
AssumeFPS(60, 1, true)
Source (Mediainfo)
Video
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 2 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 19s 983ms
Bit rate mode : Variable
Bit rate : 1 627 Kbps
Nominal bit rate : 1 500 Kbps
Maximum bit rate : 6 734 Kbps
Width : 960 pixels
Height : 540 pixels
Display aspect ratio : 16/9
Frame rate mode : Constant
Frame rate : 60.000 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.052
Stream size : 3.88 MiB (93%)
Writing library : x264 core 80 r1376 3feaec2
Encoding settings : cabac=1 / ref=1 / deblock=1:-1:-1 / analyse=0x3:0x133 / me=umh / subme=7 / psy=1 / psy_rd=1.0:0.0 / mixed_ref=0 /
me_range=32 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / mbaff=0 /constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=3 / wpredb=1 / wpredp=2 / keyint=250 / keyint_min=25 / scenecut=40 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=1500 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Audio
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Format settings, SBR : No
Codec ID : 40
Duration : 19s 989ms
Bit rate mode : Variable
Bit rate : 120 Kbps
Maximum bit rate : 135 Kbps
Channel(s) : 2 channels
Channel positions : L R
Sampling rate : 48.0 KHz
Resolution : 16 bits
Stream size : 293 KiB (7%)