Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
ad49dd76
Commit
ad49dd76
authored
Aug 02, 2020
by
Limin Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/mpeg12enc: support mpeg2 encoder const level
Signed-off-by:
Limin Wang
<
lance.lmwang@gmail.com
>
parent
9f702fc8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
encoders.texi
doc/encoders.texi
+10
-0
mpeg12enc.c
libavcodec/mpeg12enc.c
+6
-0
No files found.
doc/encoders.texi
View file @
ad49dd76
...
...
@@ -2902,6 +2902,16 @@ SNR Scalable
@item simple
@end table
@item level
Select the mpeg2 level to encode:
@table @samp
@item high
@item high1440
@item main
@item low
@end table
@item seq_disp_ext @var{integer}
Specifies if the encoder should write a sequence_display_extension to the
output.
...
...
libavcodec/mpeg12enc.c
View file @
ad49dd76
...
...
@@ -1167,6 +1167,12 @@ static const AVOption mpeg2_options[] = {
{
"secam"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
VIDEO_FORMAT_SECAM
},
0
,
0
,
VE
,
"video_format"
},
{
"mac"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
VIDEO_FORMAT_MAC
},
0
,
0
,
VE
,
"video_format"
},
{
"unspecified"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
VIDEO_FORMAT_UNSPECIFIED
},
0
,
0
,
VE
,
"video_format"
},
#define LEVEL(name, value) name, NULL, 0, AV_OPT_TYPE_CONST, { .i64 = value }, 0, 0, VE, "avctx.level"
{
LEVEL
(
"high"
,
4
)
},
{
LEVEL
(
"high1440"
,
6
)
},
{
LEVEL
(
"main"
,
8
)
},
{
LEVEL
(
"low"
,
10
)
},
#undef LEVEL
FF_MPV_COMMON_OPTS
FF_MPEG2_PROFILE_OPTS
{
NULL
},
...
...
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