Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Newbies

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 29th November 2019, 23:27   #1  |  Link
Logan9778
Registered User
 
Join Date: Mar 2017
Posts: 118
How to deal with audio sync when encoding from Variable Frame Rate video?

Hey guys,

I've tried about everything I can think of to encode x264 video from a VFR mkv file. Audio sync is always off by about a second or so.

I use MakeMKV to turn the VOB file into MKV's (They're short cartoons). This gives me an MKV with the video, audio, and subs.

I then use DGIndexNV to make .dgi files for frame serving.

I then load the .dgi into AVSPmod to filter it and send it to Simple x264 for encoding.

I can load the avs file into MPC-HC, and it plays perfectly. But after I encode the file, and mux the new x264 video with the old audio file from the DVD, the sound is off.

Never have messed with a VFR video, so I don't know what I'm doing wrong. Help Appreciated!

Here is my mediainfo

Code:
 General
Unique ID                                : 147060965416153412374963467168538817045 (0x6EA2E964D05565EA0E28DEBB4C19F215)
Complete name                            : D:\Test Space\The Chronological Donald Vol. 1\Donald Duck 1\title08.mkv
Format                                   : Matroska
Format version                           : Version 2
File size                                : 368 MiB
Duration                                 : 8 min 25 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 6 108 kb/s
Encoded date                             : UTC 2018-05-01 04:16:37
Writing application                      : MakeMKV v1.12.0 win(x64-release)
Writing library                          : libmakemkv v1.12.0 (1.3.5/1.4.7) win(x64-release)

Video
ID                                       : 1
ID in the original source medium         : 224 (0xE0)
Format                                   : MPEG Video
Format version                           : Version 2
Format profile                           : Main@Main
Format settings                          : CustomMatrix / BVOP
Format settings, BVOP                    : Yes
Format settings, Matrix                  : Custom
Format settings, GOP                     : Variable
Format settings, picture structure       : Frame
Codec ID                                 : V_MPEG2
Codec ID/Info                            : MPEG 1 or 2 Video
Duration                                 : 8 min 25 s
Bit rate mode                            : Variable
Bit rate                                 : 5 907 kb/s
Maximum bit rate                         : 9 800 kb/s
Width                                    : 720 pixels
Height                                   : 480 pixels
Display aspect ratio                     : 4:3
Frame rate mode                          : Variable
Frame rate                               : 24.323 FPS
Original frame rate                      : 29.970 (30000/1001) FPS
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.703
Time code of first frame                 : 01:59:08;17
Time code source                         : Group of pictures header
GOP, Open/Closed                         : Open
GOP, Open/Closed of first frame          : Closed
Stream size                              : 356 MiB (97%)
Language                                 : English
Default                                  : No
Forced                                   : No
Original source medium                   : DVD-Video

Audio
ID                                       : 2
ID in the original source medium         : 189 (0xBD)128 (0x80)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : A_AC3
Duration                                 : 8 min 24 s
Bit rate mode                            : Constant
Bit rate                                 : 192 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Stream size                              : 11.6 MiB (3%)
Title                                    : Stereo
Language                                 : English
Service kind                             : Complete Main
Default                                  : Yes
Forced                                   : No
Original source medium                   : DVD-Video

Text
ID                                       : 3
ID in the original source medium         : 189 (0xBD)32 (0x20)
Format                                   : VobSub
Codec ID                                 : S_VOBSUB
Codec ID/Info                            : Picture based subtitle format used on DVDs
Duration                                 : 8 min 9 s
Bit rate                                 : 3 617 b/s
Count of elements                        : 118
Stream size                              : 216 KiB (0%)
Language                                 : English
Default                                  : Yes
Forced                                   : No
Original source medium                   : DVD-Video
and my avs script (avisynth+)

Code:
LoadPlugin("C:\DGDecNV2053\x64 binaries\dgdecodenv.dll")
DGSource("D:\Test Space\The Chronological Donald Vol. 1\Donald Duck 1\title08.dgi",fieldop=0) #Honor Pulldown Flags
TFM(mode=0,order=1,pp=7,micmatching=0).TDecimate(mode=1) #TFF.
Prefetch(8)
Dgi file shows hybrid interlaced/3:2 pulldown with interlaced opening credits and soft telecine 3:2 main video.



EDIT: Well, I'm trying out TMPGEnc Works 7, and after a few hours of kicking it, I think I finally got it near what I want. I can only set about half the x264 options I want though.

Doesn't seem near as good as what the Community has made.

Last edited by Logan9778; 30th November 2019 at 06:06.
Logan9778 is offline   Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:26.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.