Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
c5010ad3
Commit
c5010ad3
authored
Jun 05, 2010
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: default gop=120 for vp80
parent
02a7f81f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
modules/codec/avcodec/encoder.c
modules/codec/avcodec/encoder.c
+3
-0
No files found.
modules/codec/avcodec/encoder.c
View file @
c5010ad3
...
@@ -602,6 +602,9 @@ int OpenEncoder( vlc_object_t *p_this )
...
@@ -602,6 +602,9 @@ int OpenEncoder( vlc_object_t *p_this )
{
{
/* Lets give bitrate tolerance */
/* Lets give bitrate tolerance */
p_context
->
bit_rate_tolerance
=
__MAX
(
2
*
p_enc
->
fmt_out
.
i_bitrate
,
p_sys
->
i_vtolerance
);
p_context
->
bit_rate_tolerance
=
__MAX
(
2
*
p_enc
->
fmt_out
.
i_bitrate
,
p_sys
->
i_vtolerance
);
/* default to 120 frames between keyframe */
if
(
!
var_GetInteger
(
p_enc
,
ENC_CFG_PREFIX
"keyint"
)
)
p_context
->
gop_size
=
120
;
/* 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_width
>=
720
)
if
(
p_enc
->
fmt_out
.
video
.
i_width
>=
720
)
{
{
...
...
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