digitalFAQ.com Forum

digitalFAQ.com Forum (https://www.digitalfaq.com/forum/)
-   Restore, Filter, Improve Quality (https://www.digitalfaq.com/forum/video-restore/)
-   -   Avisynth audio sync errors (https://www.digitalfaq.com/forum/video-restore/11153-avisynth-audio-sync.html)

av_123 11-02-2020 04:48 PM

Avisynth audio sync errors
 
Capturing using a SR-VS30U, a Pinnacle Moviebox USB-510, and Virtualdub. Finished AVI test looks pretty good (perhaps absent some color correction) and audio is in sync. Using an Avisynth script to encode, the finished file looks great, but the audio is not in sync for most of the 10 minutes (though it seems to sync toward the end and the duration is the same).

Script

SetFilterMTMode("QTGMC", 2)
FFmpegSource2("C:/Users/Allen/Videos/Captures\3.avi", atrack=1)
ConvertToYV12()
AssumeFPS("ntsc_video",sync_audio=true)
AssumeBFF()
QTGMC(Preset="Slower", FPSDivisor=2, Edithreads=4)
Crop(10,4,-10,-10)
Spline64Resize(1448,1080)
LimitedSharpenFaster(ss_x=1.9, ss_y=1.9, Smode=1, strength=60, radius=4, Lmode=1, wide=false, overshoot=1, soft=-1, edgemode=0, special=false, exborder=1)
AddBorders(236, 0, 236, 0, color_black)
Prefetch(threads=10)

Media Info for AVI:

Complete nameC:\Users\Allen\Videos\Captures\3.avi
FormatAVI
Format/InfoAudio Video Interleave
Format profileOpenDML
File size3.78 GiB
Duration10 min 23 s
Overall bit rate52.1 Mb/s
Writing libraryVirtualDub build 32842/release
  
Video 
ID0
FormatLagarith
Codec IDLAGS
Duration10 min 23 s
Bit rate50.5 Mb/s
Width720 pixels
Height480 pixels
Display aspect ratio3:2
Frame rate29.970 (30000/1001) FPS
StandardNTSC
Color spaceYUV
Chroma subsampling4:02:02
Bit depth8 bits
Bits/(Pixel*Frame)4.876
Stream size3.66 GiB (97%)
  
Audio 
ID1
FormatPCM
Format settingsLittle / Signed
Codec ID1
Duration10 min 23 s
Bit rate modeConstant
Bit rate1 536 kb/s
Channel(s)2 channels
Sampling rate48.0 kHz
Bit depth16 bits
Stream size114 MiB (3%)
AlignmentAligned on interleaves
Interleave, duration33 ms (1.00 video frame)
Interleave, preload duration500 ms

Media Info for Output MP4

FormatMPEG-4
Format profileBase Media
Codec IDisom (isom/iso2/avc1/mp41)
File size3.63 GiB
Duration10 min 20 s
Overall bit rate50.2 Mb/s
Writing applicationLavf58.46.101
  
Video 
ID1
FormatAVC
Format/InfoAdvanced Video Codec
Format profileHigh@L5
Format settingsCABAC / 4 Ref Frames
Format settings, CABACYes
Format settings, Reference frames4 frames
Codec IDavc1
Codec ID/InfoAdvanced Video Coding
Duration10 min 20 s
Bit rate50.0 Mb/s
Width1 920 pixels
Height1 080 pixels
Display aspect ratio16
Frame rate modeConstant
Frame rate29.970 (30000/1001) FPS
Color spaceYUV
Chroma subsampling4
Bit depth8 bits
Scan typeProgressive
Bits/(Pixel*Frame)0.805
Stream size3.62 GiB (100%)
Writing libraryx264 core 160
Encoding settingscabac=1 / ref=3 / deblock=1
Codec configuration boxavcC
  
Audio 
ID2
FormatAAC LC
Format/InfoAdvanced Audio Codec Low Complexity
Codec IDmp4a-40-2
Duration10 min 20 s
Duration_LastFrame-6 ms
Bit rate modeConstant
Bit rate128 kb/s
Channel(s)2 channels
Channel layoutL R
Sampling rate48.0 kHz
Frame rate46.875 FPS (1024 SPF)
Compression modeLossy
Stream size9.50 MiB (0%)
DefaultYes
Alternate group1


All times are GMT -5. The time now is 10:42 AM

Site design, images and content © 2002-2026 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2026 Jelsoft Enterprises Ltd.