convert mp4 to hap

C++
# HAP
ffmpeg -i yourSourceFile.mp4 -c:v hap outputName.mov

# HAP Alpha
ffmpeg -i yourSourceFile.mp4 -c:v hap -format hap_alpha outputName.mov

#Hap Q
ffmpeg -i yourSourceFile.mp4 -c:v hap -format hap_q outputName.mov
Source

Also in C++: