Appunti


Misurare il volume audio e seguire lo standard EBU R 128 2019/04/07

-23 LUFS di media su tutta la traccia.
Si calcola dopo aver ascoltato per intero la clip, non è un livello da tenere in ogni istante; come conseguenza di questo, invita ad usare un'ampia dinamica e ammette picchi fino a -1 dBTP.

Fonte: 1, 2, 3


Aree di sicurezza per la produzione televisiva 16:9 secondo EBU R 095 2019/04/06

Action safe area: inizia da ciascun lato al 3,5% dell'immagine intera
Graphics safe area: inizia da ciascun lato al 5% dell'immagine intera

Esempio di configurazione per Adobe After Effects.

Fonte: 1


Velocizzare Mail su macOS 2019/01/30

Creare un nuovo script con Script Editor:

(*
Speed up Mail.app by vacuuming the Envelope Index
Code from: http://www.hawkwings.net/2007/03/03/scripts-to-automate-the-mailapp-envelope-speed-trick/
Originally by "pmbuko" with modifications by Romulo
Updated by Brett Terpstra 2012
Updated by Mathias Törnblom 2015 to support V3 in El Capitan and still keep backwards compability
Updated by @lbutlr for V5 and Container folder in High Sierra and use du
https://gist.github.com/ttscoff/3728277
*)

tell application "Mail" to quit
set os_version to do shell script "sw_vers -productVersion"
set mail_version to "V2"
considering numeric strings
if "10.10" ≤ os_version then set mail_version to "~/Library/Mail/V3/Maildata/Envelope\\ Index"
if "10.12" < os_version then set mail_version to "~/Library/Mail/V4/Maildata/Envelope\\ Index"
if "10.13" ≤ os_version then set mail_version to "~/Library/Containers/com.apple.mail/Data/Library/Mail/V5/Maildata/Envelope\\ Index"
if "10.14" ≤ os_version then set mail_version to "~/Library/Containers/com.apple.mail/Data/Library/Mail/V6/MailData/Envelope\\ Index"
end considering

set sizeBefore to do shell script "du -h " & mail_version & "| awk {'print $1'}"
do shell script "/usr/bin/sqlite3 " & mail_version & " vacuum"
set sizeAfter to do shell script "du -h " & mail_version & "| awk {'print $1'}"
display dialog ("Mail index before: " & sizeBefore & return & "Mail index after: " & sizeAfter & return & return & "Enjoy the new speed!")
tell application "Mail" to activate


Su Mojave, prima di eseguire lo script dall'app, aggiungere Script Editor all'elenco in Preferenze di Sistema > Sicurezza e Privacy > Privacy > Accesso completo al disco; conclusa l'operazione è possibile rimuovere l'app dall'elenco.

Fonte: 1, 2


Esempio di calibrazione e profilatura colore con Argyll CMS e DisplayCAL 2019/01/24

How to Calibrate Wide Gamut Monitors dell'utente "Color Consultant" su Photography Life.

Copia: 1


Flusso di lavoro dei film 2019/01/23


Adobe After Effects — preset e espressione "counter" 2018/04/15

CounterPro preset di Studio Blou.

numDecimals = 2;
commas = true;
dollarSign = true;
beginCount = -1999;
endCount = 1999;
dur = 4;

t = time - inPoint;
s = linear (t, 0, dur, beginCount, endCount).toFixed(numDecimals);
s = s.replace (".",",");

prefix = "";
if (s[0] == "-"){
prefix = "-";
s = s.substr(1);
}
if(dollarSign) prefix += "$";

if (commas){
decimals = "";
if (numDecimals > 0){
decimals = s.substr(-(numDecimals + 1));
s = s.substr(0,s.length - (numDecimals + 1));
}
outStr = s.substr(-s.length, (s.length-1)%3 +1);
for (i = Math.floor((s.length-1)/3); i > 0; i--){
outStr += "," + s.substr(-i*3,3);
}
prefix + outStr + decimals;
}else{
prefix + s;
}

Fonte: 1, 2


youtube-dl — config 2018/03/10

# Lines starting with # are comments

# Download best video mp4 format available and the best audio format except webm without meging them, then save all videos under Downloads directory in your home directory
-f 'bestvideo[ext=mp4],bestaudio[ext!=webm]' -o ~/Downloads/%(title)s-%(id)s-%(uploader)s.%(ext)s

Fonte: 1


Adobe After Effects — espressione "keyframe bounce back" 2018/03/01

e = .7;
g = 5000;
nMax = 9;

n = 0;
if (numKeys > 0){
n = nearestKey(time).index;
if (key(n).time > time) n--;
}
if (n > 0){
t = time - key(n).time;
v = -velocityAtTime(key(n).time - .001)*e;
vl = length(v);
if (value instanceof Array){
vu = (vl > 0) ? normalize(v) : [0,0,0];
}else{
vu = (v < 0) ? -1 : 1;
}
tCur = 0;
segDur = 2*vl/g;
tNext = segDur;
nb = 1; // number of bounces
while (tNext < t && nb <= nMax){
vl *= e;
segDur *= e;
tCur = tNext;
tNext += segDur;
nb++
}
if(nb <= nMax){
delta = t - tCur;
value + vu*delta*(vl - g*delta/2);
}else{
value
}
}else
value

Fonte: 1


Adobe After Effects — espressione "inertial bounce" 2018/02/25

// Inertial Bounce (moves settle into place after bouncing around a little)
n = 0;
if (numKeys > 0){
n = nearestKey(time).index;
if (key(n).time > time){
n--;
}
}
if (n == 0){
t = 0;
}else{
t = time - key(n).time;
}

if (n > 0 && t < 1){
v = velocityAtTime(key(n).time - thisComp.frameDuration/10);
amp = .05;
freq = 4.0;
decay = 2.0;
value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t);
}else{
value;
}

Fonte: 1, 2


Adobe After Effects — espressione "throw" 2018/02/24

// Throw (move at a constant speed without keyframes)
veloc = -10; //horizontal velocity (pixels per second)
x = position[0] + (time - inPoint) *veloc;
y = position[1];
[x,y]

Fonte: 1


Adobe After Effects — espressione "titoli di coda" 2018/02/23

t = time;
fr = (time - inPoint)/thisComp.frameDuration;
s = -4; //Speed in pixels per frame
y = value[1]+(fr*s);

[value[0], y]

Fonte: 1, 2, 3