Log in

View Full Version : Frame-packing 1


zilee
13th March 2012, 15:57
I took stereo pair footage and did column alternation. There's no difference in filesize with --frame-packing 1 or without it.

Is it supposed to increase quality instead or something?


C:\>x264.exe columnAlternation_Original_360frames.y4m --frame-packing 1 -o test.h264
y4m [info]: 1920x1080p 0:0 @ 25/1 fps (cfr)
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
x264 [info]: profile High, level 4.0
x264 [info]: frame I:2 Avg QP:20.63 size:440774
x264 [info]: frame P:99 Avg QP:22.88 size: 38717
x264 [info]: frame B:259 Avg QP:27.85 size: 8795
x264 [info]: consecutive B-frames: 0.8% 7.8% 5.8% 85.6%
x264 [info]: mb I I16..4: 8.1% 47.8% 44.1%
x264 [info]: mb P I16..4: 1.9% 4.3% 1.3% P16..4: 26.7% 8.2% 6.7% 0.0% 0.0% skip:51.0%
x264 [info]: mb B I16..4: 0.2% 0.5% 0.1% B16..8: 22.4% 2.1% 0.7% direct: 1.2% skip:72.8% L0:39.4% L1:55.6% BI: 4.9%
x264 [info]: 8x8 transform intra:55.9% inter:76.0%
x264 [info]: coded y,uvDC,uvAC intra: 71.1% 51.8% 23.9% inter: 9.5% 5.3% 0.4%
x264 [info]: i16 v,h,dc,p: 54% 7% 2% 38%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 23% 16% 7% 7% 6% 9% 8% 8%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 41% 16% 10% 6% 5% 5% 6% 6% 7%
x264 [info]: i8c dc,h,v,p: 57% 17% 19% 8%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: ref P L0: 59.8% 16.4% 17.5% 6.3%
x264 [info]: ref B L0: 84.8% 12.7% 2.6%
x264 [info]: ref B L1: 94.2% 5.8%
x264 [info]: kb/s:3884.69

encoded 360 frames, 28.14 fps, 3884.69 kb/s

C:\>x264.exe columnAlternation_Original_360frames.y4m -o test2.h264
y4m [info]: 1920x1080p 0:0 @ 25/1 fps (cfr)
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
x264 [info]: profile High, level 4.0
x264 [info]: frame I:2 Avg QP:20.63 size:440751
x264 [info]: frame P:99 Avg QP:22.88 size: 38717
x264 [info]: frame B:259 Avg QP:27.85 size: 8795
x264 [info]: consecutive B-frames: 0.8% 7.8% 5.8% 85.6%
x264 [info]: mb I I16..4: 8.1% 47.8% 44.1%
x264 [info]: mb P I16..4: 1.9% 4.3% 1.3% P16..4: 26.7% 8.2% 6.7% 0.0% 0.0% skip:51.0%
x264 [info]: mb B I16..4: 0.2% 0.5% 0.1% B16..8: 22.4% 2.1% 0.7% direct: 1.2% skip:72.8% L0:39.4% L1:55.6% BI: 4.9%
x264 [info]: 8x8 transform intra:55.9% inter:76.0%
x264 [info]: coded y,uvDC,uvAC intra: 71.1% 51.8% 23.9% inter: 9.5% 5.3% 0.4%
x264 [info]: i16 v,h,dc,p: 54% 7% 2% 38%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 23% 16% 7% 7% 6% 9% 8% 8%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 41% 16% 10% 6% 5% 5% 6% 6% 7%
x264 [info]: i8c dc,h,v,p: 57% 17% 19% 8%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: ref P L0: 59.8% 16.4% 17.5% 6.3%
x264 [info]: ref B L0: 84.8% 12.7% 2.6%
x264 [info]: ref B L1: 94.2% 5.8%
x264 [info]: kb/s:3884.66

encoded 360 frames, 31.81 fps, 3884.66 kb/s

LoRd_MuldeR
13th March 2012, 16:03
The "--frame-packing" option adds the required "frame packing" SEI message to the H.264 stream. And you have to set the packing mode that matches your source.

If, e.g., your source uses column alternation (L and R are interlaced by column) then you have to set "--frame-packing 1". Otherwise the decoder/player won't be able to determine how to display the video correctly!

And if you don't set "--frame-packing" at all, the player/decoder will probably assume that the video is 2D and disable all 3D playback features for that video...

zilee
14th March 2012, 14:04
The "--frame-packing" option adds the required "frame packing" SEI message to the H.264 stream. And you have to set the packing mode that matches your source.

If, e.g., your source uses column alternation (L and R are interlaced by column) then you have to set "--frame-packing 1". Otherwise the decoder/player won't be able to determine how to display the video correctly!

And if you don't set "--frame-packing" at all, the player/decoder will probably assume that the video is 2D and disable all 3D playback features for that video...


Ah, thanks for the information, makes much more sense now.