I couldn't upload it with .pl extension so I changed it to .txt, rename it and you should be good to go.
Usage is fix_header_v3a.pl <filename>.mp4 -reso (R1, R2, R3, whichever it was recorded in)
Don't be surprised if you don't have all the video, I lost the part I most wanted to see, the last...