Read frame sizes before actual recording