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
4184d344
Commit
4184d344
authored
Jan 08, 2015
by
raxon1s
Committed by
Michael Niedermayer
Jan 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: Add bitrate value under -progress action
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
2c22042a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
ffmpeg.c
ffmpeg.c
+9
-4
No files found.
ffmpeg.c
View file @
4184d344
...
...
@@ -1526,10 +1526,15 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti
snprintf
(
buf
+
strlen
(
buf
),
sizeof
(
buf
)
-
strlen
(
buf
),
"%02d:%02d:%02d.%02d "
,
hours
,
mins
,
secs
,
(
100
*
us
)
/
AV_TIME_BASE
);
if
(
bitrate
<
0
)
snprintf
(
buf
+
strlen
(
buf
),
sizeof
(
buf
)
-
strlen
(
buf
),
"bitrate=N/A"
);
else
snprintf
(
buf
+
strlen
(
buf
),
sizeof
(
buf
)
-
strlen
(
buf
),
"bitrate=%6.1fkbits/s"
,
bitrate
);
if
(
bitrate
<
0
)
{
snprintf
(
buf
+
strlen
(
buf
),
sizeof
(
buf
)
-
strlen
(
buf
),
"bitrate=N/A"
);
av_bprintf
(
&
buf_script
,
"bitrate=N/A
\n
"
);
}
else
{
snprintf
(
buf
+
strlen
(
buf
),
sizeof
(
buf
)
-
strlen
(
buf
),
"bitrate=%6.1fkbits/s"
,
bitrate
);
av_bprintf
(
&
buf_script
,
"bitrate=%6.1fkbits/s
\n
"
,
bitrate
);
}
if
(
total_size
<
0
)
av_bprintf
(
&
buf_script
,
"total_size=N/A
\n
"
);
else
av_bprintf
(
&
buf_script
,
"total_size=%"
PRId64
"
\n
"
,
total_size
);
av_bprintf
(
&
buf_script
,
"out_time_ms=%"
PRId64
"
\n
"
,
pts
);
...
...
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