Hello guest, if you like this forum, why don't you register? https://fanrestore.com/member.php?action=register (December 14, 2021) x


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
eac3to The Audio Delay Thread
#1
I have something of a thing for audio delays.  Over the years, I've worked out quite a few.  Here are some for starters.  If you come up with any more, post them here, and I'll happily update the original post.

Requirements

eac3to

(It's important that you demux BDs with eac3to.)

Applying delays with other audio tools should be possible, but I use eac3to, so I've posted everything in terms of that and flagged the thread accordingly.

Alien (1979)

To sync the standard BD to the UHD BD, apply a delay.

Code:
eac3to input output -2002ms
(48 frames)

Demux playlist 00800.mpls.  Then remux.

Blade Runner (1982)

The branching disc from the 30th Anniversary Collector's Edition has a different encode (AVC not VC-1) from the original. If you want to sync Buster D/NeonBible's LD PCM (director's cut and international cut) to the new disc, apply a delay.

Code:
eac3to.exe  input.wav output.wav" +1751ms
(42 frames)

Bram Stoker's Dracula (1992)

This syncs the PCM 5.1 from the 2007 BD to the remastered BD from 2015.  (Demux the audio on playlist 00011.mpls of the former with eac3to, applying the delay as you go; then remux with the video on playlist 00001.mpls of the latter.)  The same delay-value should work for the UHD BD as well.
Code:
eac3to input.pcm output.w64 -1001ms
(24 frames)

Excalibur (1981)

This syncs the lossless audio from the BD to the video of the HD DVD.
Code:
eac3to input.dtshd output.dtshd -1001ms
(24 frames)

Fistful of Dollars, A (1964)

This syncs the DE BD (00021.mpls) to the IT BD (00000.mpls).

Code:
eac3to input output -22981ms
(551frames)

Before remuxing, slow down the IT BD.

Code:
input_bd_structure 1) 2: output.264 -slowdown

Goldeneye (1995)

This syncs the BD to the 4k Netflix WEB-DL.

Code:
eac3to input output +7007ms

This syncs the BD to the 4k Amazon re-encode.

Code:
eac3to input output +7049ms

Halloween (1978)

This syncs the LD PCM that was synced to the 35th Anniversary BD to the old (pre-2019) DE BD. (I prefer its colors.)

Code:
eac3to input output  +15012ms
(360 frames)

Laputa: Castle in the Sky (1986) AKA The Flying Island

This syncs the 24-bit audio on the US BD to the superior video on the first JP BD and the disc that is in the boxset called The Collected Works of Hayao Miyazaki.

Code:
eac3to input output -792ms
(19 frames)

Legend (1985)

This syncs the US BD to the UK BD (director's cut for both, of course) so you can add the DTS-HD MA 5.1 to the AVC-encoded UK video.  The relevant playlist for both discs is 00801.mpls.

Code:
eac3to input output +959ms
(23 frames)

Licence to Kill (1989)

This syncs the BD to the 4k WEB-DL.

Code:
eac3to input output +7925ms

Nausicaä of the Valley of the Wind (1984)

US (Disney) BD

This syncs the 24-bit audio on the US (Disney) BD to the superior video on the first and second JP BDs.

Code:
eac3to input output -11217ms
(269 frames)

R1 DVD

1. This syncs the R1 DVD with the first and second JP BDs.

Code:
eac3to input output -12218ms
(293 frames)

2. This syncs the R1 DVD with the US BD.

Code:
eac3to input output -1001ms
(24 frames)

Spartacus (1960)

To sync the commentaries on the Criterion Collection DVD to the 55th Anniversary Restored Edition BD (Region A -- though they should all be the same), rip the DVD with AnyDVD, demux the disc with PGCDemux, decode tracks AudioFile_82.ac3 and AudioFile_82.ac3 to WAV with eac3to, and apply the following script to each in turn:

Code:
audio=
\WavSource("filename.wav")

dub =
\AudioDub(
\BlankClip(audio,fps=24000,fps_denominator=1001,width=720, height=480),
\audio
\)

sync=
\Dissolve(
\Trim(dub,226,215875),
\Trim(dub,215857,0),
\4)

return sync

You can use NIcAC3Source() instead of converting to WAV with eac3to.  The idea is not to achieve 100% frame accuracy, just to make a one-size-fits-both adjustment.  At worst, the result is a frame out at times, nothing that would affect the commentary.

Star Trek: The Motion Picture (1979)

After correctly slowing down the Sky HDTV cap with eac3to, apply the following delay to sync the BD tracks.

Code:
eac3to input output -102603ms
(2460 frames)

Both the BD and the cap are the theatrical cut.

Star Trek II: The Wrath of Khan (1982)

Blu-rays

This syncs the 2009 BD to the 2016 one.  Demux playlist 00800.mpls (the theatrical cut) of the new BD with eac3to. Then remux.

Code:
eac3to input output +834ms
(20 frames)

Synchronizing the R1 DC DVD to the Sky HDTV Broadcast

After correctly slowing down the Sky HDTV cap of the DC with eac3to, you need apply only a negative delay (and account for the +4ms delay with which the DVD's tracks are flagged).

Code:
eac3to input output -1747ms
(-42*41.7ms=-1751.4ms)
-1751+4ms=-1747ms

Star Trek II: The Search for Spock (1984)

The Sky HDTV cap is missing three frames from the BD; consequently, an initial delay is not sufficient to achieve perfect sync.  First, demux the BD with eac3to, decoding the audio to w64 as you do so.  Secondly, install AviSynth+ and apply the following script. 

Code:
LoadPlugin("NicAudio.dll")

aud=RaWavSource("file.w64",1)

bd=
\AudioDub(
\BlankClip(aud,fps=24000,fps_denominator=1001,width=720, height=480),
\aud
\)

sync =
\Dissolve(
\Trim(bd, 71, 26593 ),
\Trim(bd, 26593, 50000 ),
\2) ++
\Dissolve(
\Trim(bd, 50001, 53510 ),
\Trim(bd, 53510, 80000 ),
\2) ++
\Dissolve(
\Trim(bd, 80001, 81435 ),
\Trim(bd, 81435, 151303 ),
\2)

return sync

Render with VirtualDub2.  You can find NicAudio.dll in BeHappy's plugins32 directory.

Star Trek IV: The Voyage Home (1986)

After correctly slowing down the Sky HDTV cap with eac3to, apply the following delay to sync the BD tracks.

Code:
eac3to input output -3754ms
(90 frames)

Star Trek V: The Final Frontier (1989)

After correctly slowing down the Sky HDTV cap with eac3to, apply the following delay to sync the BD tracks.

Code:
eac3to input output -4546ms
(109 frames)

Star Trek VI: The Undiscovered Country (1991)

After correctly slowing down the Sky HDTV cap with eac3to, apply the following delay to sync the BD tracks.

Code:
eac3to input output -2002ms
(48 frames)

Both the BD and the cap are the theatrical cut.

Star Trek: Generations (1994)

After correctly slowing down the Sky HDTV cap with eac3to, apply the following delay to sync the BD tracks.

Code:
eac3to input output -4296ms
(103 frames)

Terminator 2 (1991)

Geneon

This syncs the JP Geneon BD to the 2015 BD.

Code:
eac3to input output +917ms
(22 frames)

Skynet

This syncs the Skynet BD to the 2015 BD.

Code:
eac3to input. output -2002ms
(48 frames)

Top Gun (1986)

This syncs the 2008 US BD and 2009 EU/UK BD to the 3D BD.

Code:
eac3to.exe input output +5921ms
(142 frames)

Demux playlist 00800.mpls with eac3to (i.e. extract the left-eye stream); then remux.

Total Recall (1990)

This syncs anything on the UK Ultimate Rekall Edition (= US Mind-Bending Edition) to the first UK BD (from Optimum).

Code:
eac3to.exe input output -2294ms
(55 frames)
Reply
Thanks given by: PDB , DoomBot , BusterD , bronan , Falcon , Vlaflip , pipefan413 , resolution
#2
Ah, didn't know the 3-cut disc for Blade Runner had been re-encoded, I thought it was just the workprint version. Will have to make use of your delay, thanks!
Too bad they didn't re-do the Final Cut, as colors aside it had worse detail than the 3-cut disc, and I prefer that cut overall.
Reply
Thanks given by:
#3
*added Total Recall*

*more accurate delay-value for Excalibur*
Reply
Thanks given by: BusterD
#4
Alien (1979)-Theatrical Cut

The isolated audio stream containing the in-complete production audio (with some alternate music cues) from the film’s 1999 20th Anniversary DVD edition has not been carried-over to the current Blu Ray.  So, this post explains how to apply that stream (or any of that DVD’s audio streams that you choose to use) to the MKV container of PDB’s Alien Color Regrade (Fox THX Laserdisc) that was ripped from the Blu Ray.

I have not used eac3to, but there are some guides to follow if you use this software.

  1. Rip the DVD: I used DVDShrink It’s free.
  2. Before demuxing the audio from the DVD, convert the DVD video’s fps from 29.97 to 23.97 to fit the MKV fps format. I used TSMuxer for this.  It’s also free.
  3. Take the converted DVD, mux its audio (not demux the audio from its DVD and then mux it's AC3 audio file) to the MKV with a delay of +1000ms.  I used MKVToolNix, also free. (I previously demuxed the AC3 audio stream from the converted DVD and muxed that file to the MKV applying the +1000ms delay, but the audio and video were still out of sync—it was in-sync in the beginning but by the end of the film, the audio came before the video).  

    Why a delay at +1000ms:  I compared some frames between the converted DVD and the Blu Ray, some at the beginning of the film and others at the end of the film, and I found that the converted DVD has between 24 to 25 frames less than the Blu Ray (actually, the processed DVD’s beginning was 24 frames less than the Blu, but by its end is was 25.  I suspect the converting software left behind anomalies of the original DVD’s 3:2 pulldown scheme).  So, if I applied the audio to the MKV, as is, the sound will appear one second before the video.  Also, MKV video frames are displayed at 23.97 frames per second and you have 1 second being made up of 1000ms.

I realized that I’ve used 3 different programs to do this work.  Maybe I should learn how to use eac3to.   Shy
Reply
Thanks given by:
#5
*added extensive information on Nausicaä of the Valley of the Wind (1984)*
Reply
Thanks given by: BusterD
#6
Don't have the US BDs, but are the Disney BDs actually 24-bit and not padded? Sometimes even JP BDs use 16-bit padded to 24-bit (although the one specific example I'm thinking of is LPCM and not DTS-MA, and it was just a concert included with a Kawada Mami Best CD).
Reply
Thanks given by:
#7
^ That's true, but Nausicaä's Japanese track is a genuine 24-bit one according to eac3to, which is very good at stripping superfluous bytes.

Quote:The original audio track has a constant bit depth of 24 bits.

And the main attraction of the Japanese track on the US BD lies in the fact that it's unfiltered, rather than its bit depth.  See here.
Reply
Thanks given by: BusterD
#8
Ah, forgot about that blog, thanks. Interesting, Maybe I should check out the JP LDs as well, I'm sure they're quite common over here.
Reply
Thanks given by:
#9
(2017-11-13, 05:58 PM)BusterD Wrote: Maybe I should check out the JP LDs as well,

That might prove worthwhile. Smile
Reply
Thanks given by:
#10
Found the Ghibli ga Ippai LD box for about $40 shipped (amazing considering its MSRP was 100000 yen (give or take $1000) back in the day), but according to LDDB the Nausicaa disc is just a repress of the analog-only LD from 1984. Even if that's true, I'll still at least capture the audio for posterity.
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
  AviSynth PAL <-> NTSC audio conversion spoRv 10 11,954 2020-04-11, 07:14 PM
Last Post: spoRv
  AviSynth The GOUT Sync Thread Chewtobacca 12 12,482 2017-03-22, 10:02 PM
Last Post: Chewtobacca

Forum Jump:


Users browsing this thread: 5 Guest(s)