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
dc26318c
Commit
dc26318c
authored
Aug 31, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv: move mux_preload and mux_max_delay to options context
parent
d821cbe2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
avconv.c
avconv.c
+9
-8
No files found.
avconv.c
View file @
dc26318c
...
...
@@ -140,9 +140,6 @@ static unsigned int subtitle_codec_tag = 0;
static
int
data_disable
=
0
;
static
unsigned
int
data_codec_tag
=
0
;
static
float
mux_preload
=
0
.
5
;
static
float
mux_max_delay
=
0
.
7
;
static
int
file_overwrite
=
0
;
static
int
do_benchmark
=
0
;
static
int
do_hex_dump
=
0
;
...
...
@@ -319,6 +316,8 @@ typedef struct OptionsContext {
int64_t
recording_time
;
uint64_t
limit_filesize
;
float
mux_preload
;
float
mux_max_delay
;
SpecifierOpt
*
metadata
;
int
nb_metadata
;
...
...
@@ -368,6 +367,8 @@ static void reset_options(OptionsContext *o)
memset
(
o
,
0
,
sizeof
(
*
o
));
o
->
mux_preload
=
0
.
5
;
o
->
mux_max_delay
=
0
.
7
;
o
->
recording_time
=
INT64_MAX
;
o
->
limit_filesize
=
UINT64_MAX
;
o
->
chapters_input_file
=
INT_MAX
;
...
...
@@ -3569,8 +3570,8 @@ static void opt_output_file(void *optctx, const char *filename)
}
}
oc
->
preload
=
(
int
)(
mux_preload
*
AV_TIME_BASE
);
oc
->
max_delay
=
(
int
)(
mux_max_delay
*
AV_TIME_BASE
);
oc
->
preload
=
(
int
)(
o
->
mux_preload
*
AV_TIME_BASE
);
oc
->
max_delay
=
(
int
)(
o
->
mux_max_delay
*
AV_TIME_BASE
);
oc
->
flags
|=
AVFMT_FLAG_NONBLOCK
;
/* copy chapters */
...
...
@@ -3935,7 +3936,7 @@ static int opt_target(OptionsContext *o, const char *opt, const char *arg)
and the first pack from the other stream, respectively, may also have
been written before.
So the real data starts at SCR 36000+3*1200. */
mux_preload
=
(
36000
+
3
*
1200
)
/
90000
.
0
;
//0.44
o
->
mux_preload
=
(
36000
+
3
*
1200
)
/
90000
.
0
;
//0.44
}
else
if
(
!
strcmp
(
arg
,
"svcd"
))
{
opt_video_codec
(
o
,
"c:v"
,
"mpeg2video"
);
...
...
@@ -4130,8 +4131,8 @@ static const OptionDef options[] = {
{
"isync"
,
OPT_BOOL
|
OPT_EXPERT
|
OPT_GRAB
,
{(
void
*
)
&
input_sync
},
"sync read on input"
,
""
},
/* muxer options */
{
"muxdelay"
,
OPT_FLOAT
|
HAS_ARG
|
OPT_EXPERT
,
{(
void
*
)
&
mux_max_delay
},
"set the maximum demux-decode delay"
,
"seconds"
},
{
"muxpreload"
,
OPT_FLOAT
|
HAS_ARG
|
OPT_EXPERT
,
{(
void
*
)
&
mux_preload
},
"set the initial demux-decode delay"
,
"seconds"
},
{
"muxdelay"
,
OPT_FLOAT
|
HAS_ARG
|
OPT_EXPERT
|
OPT_OFFSET
,
{.
off
=
OFFSET
(
mux_max_delay
)
},
"set the maximum demux-decode delay"
,
"seconds"
},
{
"muxpreload"
,
OPT_FLOAT
|
HAS_ARG
|
OPT_EXPERT
|
OPT_OFFSET
,
{.
off
=
OFFSET
(
mux_preload
)},
"set the initial demux-decode delay"
,
"seconds"
},
{
"bsf"
,
HAS_ARG
|
OPT_STRING
|
OPT_SPEC
,
{.
off
=
OFFSET
(
bitstream_filters
)},
"A comma-separated list of bitstream filters"
,
"bitstream_filters"
},
...
...
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