Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
bc54c2ae
Commit
bc54c2ae
authored
Aug 05, 2013
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libx264: add shortcut for the bluray compatibility option
As for intra-refresh it is just a commodity.
parent
c84ea750
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
encoders.texi
doc/encoders.texi
+3
-0
libx264.c
libavcodec/libx264.c
+6
-0
No files found.
doc/encoders.texi
View file @
bc54c2ae
...
...
@@ -554,6 +554,9 @@ Possible values:
Calculate and print SSIM stats.
@item -intra-refresh @var{integer}
Use Periodic Intra Refresh instead of IDR frames.
@item -bluray-compat @var{integer}
Configure the encoder to be compatible with the bluray standard.
It is a shorthand for setting "bluray-compat=1 force-cfr=1".
@item -b-bias @var{integer}
Influences how often B-frames are used.
@item -b-pyramid @var{integer}
...
...
libavcodec/libx264.c
View file @
bc54c2ae
...
...
@@ -61,6 +61,7 @@ typedef struct X264Context {
int
weightb
;
int
ssim
;
int
intra_refresh
;
int
bluray_compat
;
int
b_bias
;
int
b_pyramid
;
int
mixed_refs
;
...
...
@@ -358,6 +359,10 @@ static av_cold int X264_init(AVCodecContext *avctx)
x4
->
params
.
analyse
.
b_ssim
=
x4
->
ssim
;
if
(
x4
->
intra_refresh
>=
0
)
x4
->
params
.
b_intra_refresh
=
x4
->
intra_refresh
;
if
(
x4
->
bluray_compat
>=
0
)
{
x4
->
params
.
b_bluray_compat
=
x4
->
bluray_compat
;
x4
->
params
.
b_vfr_input
=
0
;
}
if
(
x4
->
b_bias
!=
INT_MIN
)
x4
->
params
.
i_bframe_bias
=
x4
->
b_bias
;
if
(
x4
->
b_pyramid
>=
0
)
...
...
@@ -524,6 +529,7 @@ static const AVOption options[] = {
{
"smart"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
X264_WEIGHTP_SMART
},
INT_MIN
,
INT_MAX
,
VE
,
"weightp"
},
{
"ssim"
,
"Calculate and print SSIM stats."
,
OFFSET
(
ssim
),
AV_OPT_TYPE_INT
,
{
.
i64
=
-
1
},
-
1
,
1
,
VE
},
{
"intra-refresh"
,
"Use Periodic Intra Refresh instead of IDR frames."
,
OFFSET
(
intra_refresh
),
AV_OPT_TYPE_INT
,
{
.
i64
=
-
1
},
-
1
,
1
,
VE
},
{
"bluray-compat"
,
"Bluray compatibility workarounds."
,
OFFSET
(
bluray_compat
)
,
AV_OPT_TYPE_INT
,
{
.
i64
=
-
1
},
-
1
,
1
,
VE
},
{
"b-bias"
,
"Influences how often B-frames are used"
,
OFFSET
(
b_bias
),
AV_OPT_TYPE_INT
,
{
.
i64
=
INT_MIN
},
INT_MIN
,
INT_MAX
,
VE
},
{
"b-pyramid"
,
"Keep some B-frames as references."
,
OFFSET
(
b_pyramid
),
AV_OPT_TYPE_INT
,
{
.
i64
=
-
1
},
-
1
,
INT_MAX
,
VE
,
"b_pyramid"
},
{
"none"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
X264_B_PYRAMID_NONE
},
INT_MIN
,
INT_MAX
,
VE
,
"b_pyramid"
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment