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
8409b8fe
Commit
8409b8fe
authored
Sep 12, 2002
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
error resilience command line option
Originally committed as revision 932 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
f3cfadd5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
ffmpeg.c
ffmpeg.c
+9
-0
No files found.
ffmpeg.c
View file @
8409b8fe
...
...
@@ -115,6 +115,7 @@ static int use_hq = 0;
static
int
use_4mv
=
0
;
static
int
do_deinterlace
=
0
;
static
int
workaround_bugs
=
0
;
static
int
error_resilience
=
0
;
static
int
dct_algo
=
0
;
static
int
gop_size
=
12
;
...
...
@@ -1030,6 +1031,7 @@ static int av_encode(AVFormatContext **output_files,
case
CODEC_TYPE_VIDEO
:
if
(
ist
->
st
->
codec
.
codec_id
==
CODEC_ID_RAWVIDEO
)
{
int
size
;
size
=
(
ist
->
st
->
codec
.
width
*
ist
->
st
->
codec
.
height
);
avpicture_fill
(
&
picture
,
ptr
,
ist
->
st
->
codec
.
pix_fmt
,
...
...
@@ -1383,6 +1385,11 @@ void opt_dct_algo(const char *arg)
dct_algo
=
atoi
(
arg
);
}
void
opt_error_resilience
(
const
char
*
arg
)
{
error_resilience
=
atoi
(
arg
);
}
void
opt_frame_rate
(
const
char
*
arg
)
{
frame_rate
=
(
int
)(
strtod
(
arg
,
0
)
*
FRAME_RATE_BASE
);
...
...
@@ -1713,6 +1720,7 @@ void opt_input_file(const char *filename)
frame_width
=
enc
->
width
;
rfps
=
ic
->
streams
[
i
]
->
r_frame_rate
;
enc
->
workaround_bugs
=
workaround_bugs
;
enc
->
error_resilience
=
error_resilience
;
if
(
enc
->
frame_rate
!=
rfps
)
{
fprintf
(
stderr
,
"
\n
Seems that stream %d comes from film source: %2.2f->%2.2f
\n
"
,
i
,
(
float
)
enc
->
frame_rate
/
FRAME_RATE_BASE
,
...
...
@@ -2236,6 +2244,7 @@ const OptionDef options[] = {
{
"me"
,
HAS_ARG
|
OPT_EXPERT
,
{(
void
*
)
opt_motion_estimation
},
"set motion estimation method"
,
"method"
},
{
"dct_algo"
,
HAS_ARG
|
OPT_EXPERT
,
{(
void
*
)
opt_dct_algo
},
"set dct algo"
,
"algo"
},
{
"er"
,
HAS_ARG
|
OPT_EXPERT
,
{(
void
*
)
opt_error_resilience
},
"set error resilience"
,
""
},
{
"bf"
,
HAS_ARG
|
OPT_EXPERT
,
{(
void
*
)
opt_b_frames
},
"use 'frames' B frames (only MPEG-4)"
,
"frames"
},
{
"hq"
,
OPT_BOOL
|
OPT_EXPERT
,
{(
void
*
)
&
use_hq
},
"activate high quality settings"
},
{
"4mv"
,
OPT_BOOL
|
OPT_EXPERT
,
{(
void
*
)
&
use_4mv
},
"use four motion vector by macroblock (only MPEG-4)"
},
...
...
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