Frame encoding standard structure: 3D video-standard frame structure for
0 Viewpoint Frame: I b b b b b b b I b b b b b b b 1 viewpoint frame: P b b b b b b p b b b b b b b A GOP group includes 16 frames, left 8 frames on the left, and 8 frames on the left. On the left, each GOP group has 1 I-frames, 7 B-frames, each GOP group has 1 P-frames and 7 B-frames on the left. JM18.4 when encoding 3D video, by default, the encoded frame is not a frame of the standard structure. IPPPBBBBBBBBBBBBBBPPBBBBBBBBBBBBBB 0 Viewpoint Frame: I b b b b b b b p b b b b b b b 1 viewpoint frame: P b b b b b b b p b b b b b b b left video only the first go The P group has 1 I frames, and the rest of the GOP groups take the P-frame as the first frame. On the on-the-off video each GOP group has 1 P-frames and 7 B-frames.
JM18.4 in the default case,
The encoded frame is shown as:
The two-way video frame that compares the default structure domain standard structure can be used to obtain the method of modification
Default structure: 0 Viewpoint Frame
I b b b b b B. B P b b b b b b B. b
Standard structure: 0 viewpoint Frame
I b b b b b b I b b b b b b
Default structure: 1 viewpoint frame
P b b b b b b P b b b b b b B. b
Standard structure: 1 viewpoint frame
P b b b b b b P b b b b b b B. b
Through the comparison of frame structure in the previous two cases, it can be seen that the frame structure of 1 viewpoints is consistent and the frame structure of 0 viewpoints is different.
The reason for this is primarily due to the fact that, by default, there are different settings for where I frames appear in the standard case.
Therefore, to find a solution to the problem, that is, changing the position of the I frame in the code, you can change the encoded frame into a frame of the standard structure.
has such a setting in the encoding configuration file:
intraperiod = 8
# Period of i-pictures (0=only first) The br> is an I-frame with an interval of 8 and an I-frame set per 8 frames.
This completes the setting to change the frame structure.
as shown in the figure is the program display results: NOTE: The program output when the B-frame display order in a GOP group can be set in the configuration file, by default and standard frame output order is consistent, do not modify according to the standard structure can be seen in the order of a GOP group B-Frame output:
t4- >t2->t1->t3->t6->t5->t7
Config file:/*r:reference, E:non reference.*/
Explicithierarchyformat = "B3r0b1r1b0e2b2e2b5r1b4e2b6e2"
that is, the output order of frame B is: B3->b1->b0->b2->b5->b4->b6
This output is in the same order as the B-frame output in the standard frame structure.