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
78306c51
Commit
78306c51
authored
Mar 07, 2012
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: show fps more accurately when it is small.
parent
a8cdb7b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
ffmpeg.c
ffmpeg.c
+4
-3
No files found.
ffmpeg.c
View file @
78306c51
...
...
@@ -1715,11 +1715,12 @@ static void print_report(OutputFile *output_files,
snprintf
(
buf
+
strlen
(
buf
),
sizeof
(
buf
)
-
strlen
(
buf
),
"q=%2.1f "
,
q
);
}
if
(
!
vid
&&
enc
->
codec_type
==
AVMEDIA_TYPE_VIDEO
)
{
float
t
=
(
cur_time
-
timer_start
)
/
1000000
.
0
;
float
fps
,
t
=
(
cur_time
-
timer_start
)
/
1000000
.
0
;
frame_number
=
ost
->
frame_number
;
snprintf
(
buf
+
strlen
(
buf
),
sizeof
(
buf
)
-
strlen
(
buf
),
"frame=%5d fps=%3d q=%3.1f "
,
frame_number
,
(
t
>
1
)
?
(
int
)(
frame_number
/
t
+
0
.
5
)
:
0
,
q
);
fps
=
t
>
1
?
frame_number
/
t
:
0
;
snprintf
(
buf
+
strlen
(
buf
),
sizeof
(
buf
)
-
strlen
(
buf
),
"frame=%5d fps=%3.*f q=%3.1f "
,
frame_number
,
fps
<
9
.
95
,
fps
,
q
);
if
(
is_last_report
)
snprintf
(
buf
+
strlen
(
buf
),
sizeof
(
buf
)
-
strlen
(
buf
),
"L"
);
if
(
qp_hist
)
{
...
...
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