Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
734045e3
Commit
734045e3
authored
Jun 13, 2010
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: don't play rc-max/min for vp8, doesn't seem to work as it worked before
parent
2fffa228
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
modules/codec/avcodec/encoder.c
modules/codec/avcodec/encoder.c
+4
-5
No files found.
modules/codec/avcodec/encoder.c
View file @
734045e3
...
@@ -605,6 +605,10 @@ int OpenEncoder( vlc_object_t *p_this )
...
@@ -605,6 +605,10 @@ int OpenEncoder( vlc_object_t *p_this )
/* default to 120 frames between keyframe */
/* default to 120 frames between keyframe */
if
(
!
var_GetInteger
(
p_enc
,
ENC_CFG_PREFIX
"keyint"
)
)
if
(
!
var_GetInteger
(
p_enc
,
ENC_CFG_PREFIX
"keyint"
)
)
p_context
->
gop_size
=
120
;
p_context
->
gop_size
=
120
;
/* Don't set rc-values atm, they were from time before
libvpx was officially in ffmpeg */
//p_context->rc_max_rate = 24 * 1000 * 1000; //24M
//p_context->rc_min_rate = 40 * 1000; // 40k
/* seems that ffmpeg presets have 720p as divider for buffers */
/* seems that ffmpeg presets have 720p as divider for buffers */
if
(
p_enc
->
fmt_out
.
video
.
i_height
>=
720
)
if
(
p_enc
->
fmt_out
.
video
.
i_height
>=
720
)
{
{
...
@@ -621,17 +625,12 @@ int OpenEncoder( vlc_object_t *p_this )
...
@@ -621,17 +625,12 @@ int OpenEncoder( vlc_object_t *p_this )
p_context
->
mb_lmax
=
p_context
->
lmax
=
42
*
FF_QP2LAMBDA
;
p_context
->
mb_lmax
=
p_context
->
lmax
=
42
*
FF_QP2LAMBDA
;
}
}
p_context
->
rc_max_rate
=
24
*
1000
*
1000
;
//24M
p_context
->
rc_min_rate
=
100
*
1000
;
// 100k
}
else
{
}
else
{
if
(
!
var_GetInteger
(
p_enc
,
ENC_CFG_PREFIX
"qmin"
)
)
if
(
!
var_GetInteger
(
p_enc
,
ENC_CFG_PREFIX
"qmin"
)
)
{
{
p_context
->
mb_qmin
=
p_context
->
qmin
=
1
;
p_context
->
mb_qmin
=
p_context
->
qmin
=
1
;
p_context
->
mb_lmin
=
p_context
->
lmin
=
FF_QP2LAMBDA
;
p_context
->
mb_lmin
=
p_context
->
lmin
=
FF_QP2LAMBDA
;
}
}
p_context
->
rc_max_rate
=
1
.
5
*
1000
*
1000
;
//1.5M
p_context
->
rc_min_rate
=
40
*
1000
;
// 40k
}
}
...
...
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