john_z
16th February 2013, 09:07
I learnt the GOP well by Wikipedia (http://en.wikipedia.org/wiki/Group_of_pictures) http://en.wikipedia.org/wiki/Group_of_pictures.
When I encoded a movie , I always check the encoding parameter by reviewing in Mediainfo.( thanks to this great software).
So I found a strange thing, in some movie there is a line when you checking in the Text view in mediainfo. It is “Format settings, GOP : M=1, N=49”, sometimes there is none.
Video #2
ID :2
Format/ Info: Advanced Video Codec
Format profile : High@L4.1
Format settings, CaBAC : Yes
Format settings, ReFrames : 16 frames
Format settings, GOP : M=1, N=49
Muxing mode : Header stripping
Codec ID : V_MPEG4/ISO/AVC
Duration : 2h 7mn
Bit rate : 3 305 Kbps
Nominal bit rate : 3 500 Kbps
Width : 1 024 pixels
Height : 432 pixels
Display aspect ratio : 2.35:1
Frame rate : 24.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.311
Stream size : 2.93 GiB (67%)
Writing library : x264 core 115 r1995 c1e60b9
Encoding settings : cabac=1 / ref=16 / deblock=1:-3:-3 / analyse=0x3:0x133 / me=umh / subme=7 / psy=1 / psy_rd=1.05:0.10 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-3 / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=250 / rc=2pass / mbtree=1 / bitrate=3500 / ratetol=1.0/ qcomp=0.50 / qpmin=0 / qpmax=61 / qpstep=5 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:0.70
Also in some h.264 movie not encoded by X264 there exist too.
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 1.10 GiB
Duration : 1h 0mn
Overall bit rate mode : Constant
Overall bit rate : 1 330 Kbps
Encoded date : UTC 2013-02-01 15:04:21
Tagged date : UTC 2013-02-01 15:04:21
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.0
Format settings, CABAC : No
Format settings, ReFrames : 1 frame
Format settings, GOP : M=1, N=33
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1h 58mn
Source duration : 1h 58mn
Bit rate mode : Constant
Bit rate : 1 141 Kbps
Nominal bit rate : 1 200 Kbps
Width : 720 pixels
Height : 404 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 29.970 fps
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.131
Stream size : 967 MiB (86%)
Source stream size : 1 016 MiB (90%)
Language : English
Encoded date : UTC 2013-02-01 15:04:21
Tagged date : UTC 2013-02-01 15:04:21
mdhd_Duration : 7097572
Color primaries : BT.601 NTSC
Transfer characteristics : BT.601
Matrix coefficients : BT.601
I googled a lot and found many threads discussing “M=/N= values” in mpeg2, not in AVC/H.264. I made a lot of testing encoding in MeGUI, no matter how big the value set for --Keyint/--min-keyint, or calculation based on --FPS or fixed. It seems there still NO such M=?, N=?.
When I checked the “enable Blu-Ray compatibility”, the Open GOP is enabled and my final video will show “blocks & colorful mosaic”. Even I tweak the win7 default AVC decoder to Microsoft/LAV/ffdshow/Dxva, the result is the same. Only a close GOP makes the final watchable. ( avs script is generated by MeGUI using DirectShowSource, because FFMSindex stopped by errors when indexing.)
the question is:
1. GOP size(M=) and GOP length(N=) still implement in X264, if so why sometimes it shows and sometime not?
2. When Open GOP enabled and there is a broken frame, will it cause consecutive errors and displays color blocks/ mosaic ? If shorter -keyint & close GOP solves this question, is -keyint=frame(24/30) rate and –min-keyint <=3 legal in X264?
When I encoded a movie , I always check the encoding parameter by reviewing in Mediainfo.( thanks to this great software).
So I found a strange thing, in some movie there is a line when you checking in the Text view in mediainfo. It is “Format settings, GOP : M=1, N=49”, sometimes there is none.
Video #2
ID :2
Format/ Info: Advanced Video Codec
Format profile : High@L4.1
Format settings, CaBAC : Yes
Format settings, ReFrames : 16 frames
Format settings, GOP : M=1, N=49
Muxing mode : Header stripping
Codec ID : V_MPEG4/ISO/AVC
Duration : 2h 7mn
Bit rate : 3 305 Kbps
Nominal bit rate : 3 500 Kbps
Width : 1 024 pixels
Height : 432 pixels
Display aspect ratio : 2.35:1
Frame rate : 24.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.311
Stream size : 2.93 GiB (67%)
Writing library : x264 core 115 r1995 c1e60b9
Encoding settings : cabac=1 / ref=16 / deblock=1:-3:-3 / analyse=0x3:0x133 / me=umh / subme=7 / psy=1 / psy_rd=1.05:0.10 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-3 / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=250 / rc=2pass / mbtree=1 / bitrate=3500 / ratetol=1.0/ qcomp=0.50 / qpmin=0 / qpmax=61 / qpstep=5 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:0.70
Also in some h.264 movie not encoded by X264 there exist too.
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 1.10 GiB
Duration : 1h 0mn
Overall bit rate mode : Constant
Overall bit rate : 1 330 Kbps
Encoded date : UTC 2013-02-01 15:04:21
Tagged date : UTC 2013-02-01 15:04:21
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.0
Format settings, CABAC : No
Format settings, ReFrames : 1 frame
Format settings, GOP : M=1, N=33
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1h 58mn
Source duration : 1h 58mn
Bit rate mode : Constant
Bit rate : 1 141 Kbps
Nominal bit rate : 1 200 Kbps
Width : 720 pixels
Height : 404 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 29.970 fps
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.131
Stream size : 967 MiB (86%)
Source stream size : 1 016 MiB (90%)
Language : English
Encoded date : UTC 2013-02-01 15:04:21
Tagged date : UTC 2013-02-01 15:04:21
mdhd_Duration : 7097572
Color primaries : BT.601 NTSC
Transfer characteristics : BT.601
Matrix coefficients : BT.601
I googled a lot and found many threads discussing “M=/N= values” in mpeg2, not in AVC/H.264. I made a lot of testing encoding in MeGUI, no matter how big the value set for --Keyint/--min-keyint, or calculation based on --FPS or fixed. It seems there still NO such M=?, N=?.
When I checked the “enable Blu-Ray compatibility”, the Open GOP is enabled and my final video will show “blocks & colorful mosaic”. Even I tweak the win7 default AVC decoder to Microsoft/LAV/ffdshow/Dxva, the result is the same. Only a close GOP makes the final watchable. ( avs script is generated by MeGUI using DirectShowSource, because FFMSindex stopped by errors when indexing.)
the question is:
1. GOP size(M=) and GOP length(N=) still implement in X264, if so why sometimes it shows and sometime not?
2. When Open GOP enabled and there is a broken frame, will it cause consecutive errors and displays color blocks/ mosaic ? If shorter -keyint & close GOP solves this question, is -keyint=frame(24/30) rate and –min-keyint <=3 legal in X264?