2016-11-13, 02:25 AM
(This post was last modified: 2021-03-29, 12:08 AM by Chewtobacca.
Edit Reason: updated st3 sync script
)
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.
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.
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.
Excalibur (1981)
This syncs the lossless audio from the BD to the video of the HD DVD.
Fistful of Dollars, A (1964)
This syncs the DE BD (00021.mpls) to the IT BD (00000.mpls).
Before remuxing, slow down the IT BD.
Goldeneye (1995)
This syncs the BD to the 4k Netflix WEB-DL.
This syncs the BD to the 4k Amazon re-encode.
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.)
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.
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.
Licence to Kill (1989)
This syncs the BD to the 4k WEB-DL.
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.
R1 DVD
1. This syncs the R1 DVD with the first and second JP BDs.
2. This syncs the R1 DVD with the US BD.
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:
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.
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.
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).
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.
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.
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.
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.
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.
Terminator 2 (1991)
Geneon
This syncs the JP Geneon BD to the 2015 BD.
Skynet
This syncs the Skynet BD to the 2015 BD.
Top Gun (1986)
This syncs the 2008 US BD and 2009 EU/UK BD to the 3D BD.
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).
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)