Advanced encoding notes for House (2004)
These notes are primarily used for precision audio sync, XML shift-script recommendations for different sources of the film/series, and notes on any peculiarities with the source material. Please note that these are situational, for example the precision audio sync details are meant for advanced/perfectionist users and not required to encode a decent quality edit.

If you're encoding an edit for the first time it's best to just use the default mp4 export from your NLE program and not mess with trying to get absolutely perfect quality until you're comfortable with the basics of loading, calibrating, and exporting an edit video. However, some Advanced pages list "Shift script values" that may make life easier for beginners trying to calibrate their BluRays.


Shift script values for BluRay encoding:
-----

# house bluray
$fta_ht = @{
"776" = 0; #1-14
"787" = 0; #1-17
"777" = 0; #1-22
"778" = 0; #2-3
"779" = 0; #3-3
"780" = 0; #3-4
"781" = 0; #3-12
"782" = 0; #3-17
"786" = 0; #3-24
"785" = 0; #4-1
"784" = 0; #4-2
"788" = 0; #4-3
"783" = 0; #4-4
"789" = 0; #4-5
"791" = 0; #4-6
"792" = 0; #4-7
"793" = 0; #4-8
"790" = 0; #4-9
"794" = 0; #4-13
"796" = 0; #4-16
"797" = 0; #5-5
"798" = 0; #5-17
"804" = 0; #5-21
"803" = -17; #6-13
"795" = -18; #6-19
"800" = -18; #6-21
"799" = -18; #7-1
"807" = -23; #7-16 # this is wrong, correct value around +6 but the patches fix so leave it for now
"802" = -19; #8-3
"801" = -19; #8-5
"805" = -19; #8-10
"806" = -19; #8-18
"809" = -19; #8-19
"810" = -19; #8-21
"808" = -19; #8-22
}

# Requires version 10 or above of the XML shift script.
# Critical to remember that you can't just "patch" anywhere, there has to
# be a cut in the edit and your patch adjustment has to be placed prior to the cut.
$patchframes = @{
"803" = @(15392,30414,38919,45629,52954); # 10 frames after start of commercial break black
"800" = @(13468,26974,34240,44440,54149);
# don't need 799 patch, never use anything after first commercial break
"807" = @(38324,51950);
"806" = @(10888,20991,30349,36716);
"809" = @(16246,25094,32805,42486,54140);
"810" = @(13592,24463,34676,44390,50474);
"808" = @(10486,20303,29138,40324,48809);
}

$patchamount = @{
"803" = @(-20,-36,-59,-77,-103);
"800" = @(10,20,16,30,23); # this one is odd, the values fluctuate between +_ frames per break
"807" = @(53,58);
"806" = @(30,55,80,105);
"809" = @(33,47,76,102,122);
"810" = @(26,46,59,80,102);
"808" = @(24,59,87,116,129);
}