DVD Reauthoring Discussion

Discussion regarding the entirety of the franchise in a general (meta) sense, including such aspects as: production, trends, merchandise, fan culture, and more.
User avatar
Acid_Reign
Advanced Regular
Posts: 1056
Joined: Wed Jan 24, 2007 5:59 am
Location: Massachusetts, USA
Contact:

Post by Acid_Reign » Mon Jan 05, 2009 6:07 pm

Couldn't those one or two frames cause gradually less in-sync audio, though, as was the case with the subtitles? Also, what method did you use for determining the sync points? I imagine it could be done relatively simply once the subtitles were all correctly timed, as you'd only have to find out where a particular line of dialogue is spoken, and then match it up with the same point from the other version (or something to that effect...)

In any case, we should discuss this on AIM first and present our findings, lest things get overly technical.

User avatar
ect5150
Advanced Regular
Posts: 1063
Joined: Fri Sep 15, 2006 9:17 pm
Location: Tenkaichi Tournament Grounds

Post by ect5150 » Mon Jan 05, 2009 7:27 pm

Acid_Reign wrote:Couldn't those one or two frames cause gradually less in-sync audio, though, as was the case with the subtitles?
Not gradually less, just constant. So, if it was one frame off at time interval 0:05:23.756, it is still one frame off at time interval 0:08:02.334. Unless there is another 'break point' (which sometimes there is). So basically, the widescreen version is always X frames behind.

Both the Region 1 and Region 2 releases both move at the same rate (video rate and audio rate). So, any delay is a constant delay. Most episodes have two break points, but a few have several.

I've come to realize that the problems with ALL of the re-syncing is FUNIs masters and the masters used for the DragonBox has a different number of frames in a lot of the scenes. For whatever reason, when they remade the DragonBoxes, the left a frame out (or put one more in).

What I've done in my scripts is get the episode to line up roughly frame by frame. The typical break points are at the title care and the eyecatches. Both of these points have no real audio if a frame goes missing. So I remove those frame (or add in blank frames) and I can't notice anything. However, if we have another delay in an action scene, well... that presents a whole other problem. Removing this frame (and thus its audio) WILL create a problem with the audio in playback.

Here is the script for episode DBZ 162. Apparently for this episode, there is only one real break point (at the eyecatches... many of the eps are fine at the title card, but not all). So the first half of the episode is off by rouhgly 8 frames, and the back half is off by something like 20 frames. Add in a few frame discrepancies at the eyecatches, and it all lines up.

Code: Select all

video_jap = DGDecode_mpeg2source("C:\Video\Eps\DBZ\162\VTS_01_1.d2v").tfm(order=1).tdecimate(hybrid=1).PointResize(320,240).ConvertToYV12

video_eng = DGDecode_mpeg2source("C:\Video\Images\DRAGON_BALL_Z_S5_D5\162\VTS_01_1.d2v").tfm(order=1).tdecimate(hybrid=1).PointResize(320,240).ConvertToYV12

audio_eng = DirectShowSource(".\VTS_01_1 T03 3_2ch 448Kbps DELAY -231ms.ac3").DelayAudio(-0.231)

video_temp = audiodub(video_eng, audio_eng)

BlankClipBegin = BlankClip(length=8, width=320, height=240, fps = 24000, fps_denominator = 1001, color=$000000, audio_rate=48000, stereo=true).ConvertToYV12

video1 = video_temp.trim(8, 17495)
video2 = video_temp.trim(17516, 29831)
video = video1 + BlankClipBegin + video2

stackhorizontal(video, video_jap)
I use megui to encode the resulting video's audio to run against the DragonBox video. To apply this to another episode, all that is needed is to swap the path names, and apply different "trims" (trim(8, 17495)) for the different parts of the video and you're done.

Now, for the episodes where the frame difference in the middle of some action, I just leave it a single frame off (possibly two all things depending) and I line it up to the "important" action of the scene if needed.

Feel free to improve upon it, but please try it yourself first. Like I said, episode 160 has more breakpoints, so go for an episode like that to improve on anything. I'll probably try episode 161 tonight (maybe).
ect5150
Better to keep your mouth shut and appear stupid than to open it and remove all doubt.
DB DBox color corrections & DBox color corrections.

Post Reply