1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

libx264: handle closed GOP codec flag

Also update libx264 presets to keep closed gop as default.

Signed-off-by: Jindrich Makovicka <makovick@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
Jindrich Makovicka 2011-05-10 15:11:45 +02:00 committed by Anton Khirnov
parent 29e3489602
commit e25c67108a
28 changed files with 30 additions and 28 deletions

4
configure vendored
View File

@ -2891,8 +2891,8 @@ enabled libvpx && {
enabled libvpx_encoder && { check_lib2 "vpx/vpx_encoder.h vpx/vp8cx.h" vpx_codec_enc_init_ver -lvpx ||
die "ERROR: libvpx encoder version must be >=0.9.1"; } }
enabled libx264 && require libx264 x264.h x264_encoder_encode -lx264 &&
{ check_cpp_condition x264.h "X264_BUILD >= 99" ||
die "ERROR: libx264 version must be >= 0.99."; }
{ check_cpp_condition x264.h "X264_BUILD >= 115" ||
die "ERROR: libx264 version must be >= 0.115."; }
enabled libxavs && require libxavs xavs.h xavs_encoder_encode -lxavs
enabled libxvid && require libxvid xvid.h xvid_global -lxvidcore
enabled mlib && require mediaLib mlib_types.h mlib_VectorSub_S16_U8_Mod -lmlib

View File

@ -1,5 +1,5 @@
coder=1
flags=+loop
flags=+loop+cgop
cmp=+chroma
partitions=+parti8x8+parti4x4+partp8x8+partb8x8
me_method=hex

View File

@ -1,5 +1,5 @@
coder=1
flags=+loop
flags=+loop+cgop
cmp=+chroma
partitions=-parti8x8-parti4x4-partp8x8-partb8x8
me_method=dia

View File

@ -1,5 +1,5 @@
coder=1
flags=+loop
flags=+loop+cgop
cmp=+chroma
partitions=+parti8x8+parti4x4+partp8x8+partb8x8
me_method=hex

View File

@ -1,5 +1,5 @@
coder=1
flags=+loop
flags=+loop+cgop
cmp=+chroma
partitions=-parti8x8-parti4x4-partp8x8-partb8x8
me_method=dia

View File

@ -1,5 +1,5 @@
coder=0
flags=+loop
flags=+loop+cgop
cmp=+chroma
partitions=-parti8x8+parti4x4+partp8x8-partp4x4-partb8x8
me_method=hex

View File

@ -1,5 +1,5 @@
coder=1
flags=+loop
flags=+loop+cgop
cmp=+chroma
partitions=+parti8x8+parti4x4+partp8x8+partp4x4-partb8x8
me_method=esa

View File

@ -1,5 +1,5 @@
coder=1
flags=+loop
flags=+loop+cgop
cmp=+chroma
partitions=-parti8x8+parti4x4+partp8x8+partp4x4-partb8x8
me_method=hex

View File

@ -1,5 +1,5 @@
coder=1
flags=+loop
flags=+loop+cgop
cmp=+chroma
partitions=+parti8x8+parti4x4+partp8x8+partp4x4-partb8x8
me_method=umh

View File

@ -1,5 +1,5 @@
coder=1
flags=+loop
flags=+loop+cgop
cmp=+chroma
partitions=+parti8x8+parti4x4+partp8x8+partp4x4-partb8x8
me_method=umh

View File

@ -1,5 +1,5 @@
coder=0
flags=+loop
flags=+loop+cgop
cmp=+chroma
partitions=-parti8x8-parti4x4-partp8x8-partp4x4-partb8x8
me_method=dia

View File

@ -1,5 +1,5 @@
coder=1
flags=+loop
flags=+loop+cgop
cmp=+chroma
partitions=+parti8x8+parti4x4+partp8x8+partb8x8
me_method=hex

View File

@ -1,5 +1,5 @@
coder=1
flags=+loop
flags=+loop+cgop
cmp=+chroma
partitions=-parti8x8-parti4x4-partp8x8-partb8x8
me_method=dia

View File

@ -1,5 +1,5 @@
coder=1
flags=+loop
flags=+loop+cgop
cmp=+chroma
partitions=+parti8x8+parti4x4+partp8x8+partp4x4+partb8x8
me_method=tesa

View File

@ -1,5 +1,5 @@
coder=1
flags=+loop
flags=+loop+cgop
cmp=+chroma
partitions=+parti8x8+parti4x4+partp8x8+partp4x4+partb8x8
me_method=tesa

View File

@ -1,5 +1,5 @@
coder=1
flags=+loop
flags=+loop+cgop
cmp=+chroma
partitions=+parti8x8+parti4x4+partp8x8+partb8x8
me_method=umh

View File

@ -1,5 +1,5 @@
coder=1
flags=+loop
flags=+loop+cgop
cmp=+chroma
partitions=-parti8x8-parti4x4-partp8x8-partb8x8
me_method=dia

View File

@ -1,5 +1,5 @@
coder=1
flags=+loop
flags=+loop+cgop
cmp=+chroma
partitions=+parti8x8+parti4x4+partp8x8+partp4x4+partb8x8
me_method=umh

View File

@ -1,5 +1,5 @@
coder=1
flags=+loop
flags=+loop+cgop
cmp=+chroma
partitions=-parti8x8-parti4x4-partp8x8-partb8x8
me_method=dia

View File

@ -1,5 +1,5 @@
coder=1
flags=+loop
flags=+loop+cgop
cmp=+chroma
partitions=+parti8x8+parti4x4-partp8x8-partb8x8
me_method=dia

View File

@ -1,5 +1,5 @@
coder=1
flags=+loop
flags=+loop+cgop
cmp=+chroma
partitions=-parti8x8-parti4x4-partp8x8-partb8x8
me_method=dia

View File

@ -1,5 +1,5 @@
coder=0
flags=-loop
flags=-loop+cgop
cmp=+chroma
partitions=-parti8x8-parti4x4-partp8x8-partb8x8
me_method=dia

View File

@ -1,5 +1,5 @@
coder=0
flags=-loop
flags=-loop+cgop
cmp=+chroma
partitions=-parti8x8-parti4x4-partp8x8-partb8x8
me_method=dia

View File

@ -1,5 +1,5 @@
coder=1
flags=+loop
flags=+loop+cgop
cmp=+chroma
partitions=+parti8x8+parti4x4+partp8x8+partb8x8
me_method=hex

View File

@ -1,5 +1,5 @@
coder=1
flags=+loop
flags=+loop+cgop
cmp=+chroma
partitions=-parti8x8-parti4x4-partp8x8-partb8x8
me_method=dia

View File

@ -1,5 +1,5 @@
coder=1
flags=+loop
flags=+loop+cgop
cmp=+chroma
partitions=+parti8x8+parti4x4+partp8x8+partp4x4+partb8x8
me_method=umh

View File

@ -1,5 +1,5 @@
coder=1
flags=+loop
flags=+loop+cgop
cmp=+chroma
partitions=-parti8x8-parti4x4-partp8x8-partb8x8
me_method=dia

View File

@ -298,6 +298,8 @@ static av_cold int X264_init(AVCodecContext *avctx)
x4->params.b_interlaced = avctx->flags & CODEC_FLAG_INTERLACED_DCT;
x4->params.b_open_gop = !(avctx->flags & CODEC_FLAG_CLOSED_GOP);
x4->params.i_slice_count = avctx->slices;
x4->params.vui.b_fullrange = avctx->pix_fmt == PIX_FMT_YUVJ420P;