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
3460dd8a
Commit
3460dd8a
authored
Oct 09, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv: add -stats option to enable/disable printing encoding progress
parent
c6007065
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
avconv.c
avconv.c
+6
-0
avconv.texi
doc/avconv.texi
+3
-0
No files found.
avconv.c
View file @
3460dd8a
...
...
@@ -132,6 +132,8 @@ static int input_sync;
static
float
dts_delta_threshold
=
10
;
static
int
print_stats
=
1
;
static
uint8_t
*
audio_buf
;
static
uint8_t
*
audio_out
;
static
unsigned
int
allocated_audio_out_size
,
allocated_audio_buf_size
;
...
...
@@ -1313,6 +1315,9 @@ static void print_report(OutputFile *output_files,
static
int64_t
last_time
=
-
1
;
static
int
qp_histogram
[
52
];
if
(
!
print_stats
&&
!
is_last_report
)
return
;
if
(
!
is_last_report
)
{
int64_t
cur_time
;
/* display the report every 0.5 seconds */
...
...
@@ -3980,6 +3985,7 @@ static const OptionDef options[] = {
#if CONFIG_AVFILTER
{
"filter"
,
HAS_ARG
|
OPT_STRING
|
OPT_SPEC
,
{.
off
=
OFFSET
(
filters
)},
"set stream filterchain"
,
"filter_list"
},
#endif
{
"stats"
,
OPT_BOOL
,
{
&
print_stats
},
"print progress report during encoding"
,
},
/* video options */
{
"vframes"
,
HAS_ARG
|
OPT_VIDEO
|
OPT_FUNC2
,
{(
void
*
)
opt_video_frames
},
"set the number of video frames to record"
,
"number"
},
...
...
doc/avconv.texi
View file @
3460dd8a
...
...
@@ -191,6 +191,9 @@ codec-dependent.
the stream. Use @code
{
-filters
}
to show all the available filters
(including also sources and sinks).
@item -stats (@emph
{
global
}
)
Print encoding progress/statistics. On by default.
@end table
@section Video Options
...
...
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