Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
x264
Commits
3d03b619
Commit
3d03b619
authored
Jul 18, 2012
by
Fiona Glaser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert r2204
People don't seem to like this so I'm just going to get rid of it.
parent
2ec69418
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
22 deletions
+7
-22
x264.c
x264.c
+7
-22
No files found.
x264.c
View file @
3d03b619
...
...
@@ -1694,7 +1694,6 @@ static int64_t print_status( int64_t i_start, int64_t i_previous, int i_frame, i
if
(
i_previous
&&
i_time
-
i_previous
<
UPDATE_INTERVAL
)
return
i_previous
;
int64_t
i_elapsed
=
i_time
-
i_start
;
int
secs
=
i_elapsed
/
1000000
;
double
fps
=
i_elapsed
>
0
?
i_frame
*
1000000
.
/
i_elapsed
:
0
;
double
bitrate
;
if
(
last_ts
)
...
...
@@ -1704,14 +1703,13 @@ static int64_t print_status( int64_t i_start, int64_t i_previous, int i_frame, i
if
(
i_frame_total
)
{
int
eta
=
i_elapsed
*
(
i_frame_total
-
i_frame
)
/
((
int64_t
)
i_frame
*
1000000
);
sprintf
(
buf
,
"x264 [%
5
.1f%%]
%6d/%-6d
%
6
.2f %
9
.2f
%3d:%02d:%02d
%
3
d:%02d:%02d"
,
sprintf
(
buf
,
"x264 [%.1f%%]
%d/%d frames,
%.2f
fps,
%.2f
kb/s, eta
%d:%02d:%02d"
,
100
.
*
i_frame
/
i_frame_total
,
i_frame
,
i_frame_total
,
fps
,
bitrate
,
secs
/
3600
,
(
secs
/
60
)
%
60
,
secs
%
60
,
eta
/
3600
,
(
eta
/
60
)
%
60
,
eta
%
60
);
eta
/
3600
,
(
eta
/
60
)
%
60
,
eta
%
60
);
}
else
{
sprintf
(
buf
,
"x264 %6d %6.2f %9.2f %3d:%02d:%02d"
,
i_frame
,
fps
,
bitrate
,
secs
/
3600
,
(
secs
/
60
)
%
60
,
secs
%
60
);
sprintf
(
buf
,
"x264 %d frames: %.2f fps, %.2f kb/s"
,
i_frame
,
fps
,
bitrate
);
}
fprintf
(
stderr
,
"%s
\r
"
,
buf
+
5
);
SetConsoleTitle
(
buf
);
...
...
@@ -1801,14 +1799,6 @@ static int encode( x264_param_t *param, cli_opt_t *opt )
if
(
opt
->
tcfile_out
)
fprintf
(
opt
->
tcfile_out
,
"# timecode format v2
\n
"
);
if
(
opt
->
b_progress
)
{
if
(
param
->
i_frame_total
)
fprintf
(
stderr
,
" %6s %13s %6s %9s %9s %9s
\n
"
,
""
,
"frames "
,
"fps "
,
"kb/s "
,
"elapsed"
,
"remain "
);
else
fprintf
(
stderr
,
"%6s %6s %9s %9s
\n
"
,
"frames"
,
"fps "
,
"kb/s "
,
"elapsed"
);
}
/* Encode frames */
for
(
;
!
b_ctrl_c
&&
(
i_frame
<
param
->
i_frame_total
||
!
param
->
i_frame_total
);
i_frame
++
)
{
...
...
@@ -1904,11 +1894,8 @@ fail:
i_end
=
x264_mdate
();
/* Erase progress indicator before printing encoding stats. */
if
(
opt
->
b_progress
&&
i_frame_output
)
{
print_status
(
i_start
,
0
,
i_frame_output
,
param
->
i_frame_total
,
i_file
,
param
,
2
*
last_dts
-
prev_dts
-
first_dts
);
fprintf
(
stderr
,
"
\n
"
);
}
if
(
opt
->
b_progress
)
fprintf
(
stderr
,
"
\r
"
);
if
(
h
)
x264_encoder_close
(
h
);
fprintf
(
stderr
,
"
\n
"
);
...
...
@@ -1923,11 +1910,9 @@ fail:
{
double
fps
=
(
double
)
i_frame_output
*
(
double
)
1000000
/
(
double
)(
i_end
-
i_start
);
int
secs
=
(
i_end
-
i_start
)
/
1000000
;
fprintf
(
stderr
,
"encoded %d frames, %.2f fps, %.2f kb/s, duration %d:%02d:%02d.%02d
\n
"
,
i_frame_output
,
fps
,
(
double
)
i_file
*
8
/
(
1000
*
duration
),
secs
/
3600
,
(
secs
/
60
)
%
60
,
secs
%
60
,
(
int
)((
i_end
-
i_start
)
%
1000000
/
10000
)
);
fprintf
(
stderr
,
"encoded %d frames, %.2f fps, %.2f kb/s
\n
"
,
i_frame_output
,
fps
,
(
double
)
i_file
*
8
/
(
1000
*
duration
)
);
}
return
retval
;
...
...
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