% Load the AAC file (extracted using ffmpeg)

clear; close all;
afname = '../../Videos/2017_09_27/Top/MAH00370.aac';
vfname = '../../Videos/2017_09_27/Top/MAH00370.mp4';
[y, Fs] = audioread(afname)

%
% Create a timeline

dt = 1/Fs;
t  = [0:length(y)-1]'*dt;
tdate = datetime(0,0,0,0,0,t);
p = y(:,1);
dp = diff(p);

clf;
plot(tdate,y(:,1));
datetick('x','HH:MM:SS');

%

figure;
plot(tdate(1:end-1),diff(y(:,1)));

%


starttime = datetime(2017,9,27,