I'm trying to improve the video quality of my video recording app, the resulted video always have 1 reference frames (see below), while we do see videos from other apps having this value of 2, I checked apple documents and searched SO, but not able to find any solution to specify this parameter, can anybody shed some lights here? many thanks!
Video
ID : 2
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L3.1
Format settings, CABAC : Yes
**Format settings, ReFrames : 1 frame**
Format settings, GOP : M=1, N=30
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 14s 868ms
Bit rate : 1 527 Kbps
Width : 540 pixels
Height : 960 pixels
Display aspect ratio : 0.562
Frame rate mode : Variable
Frame rate : 25.221 fps
Minimum frame rate : 3.750 fps
Maximum frame rate : 30.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive