Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
ab2f29bf
Commit
ab2f29bf
authored
Jul 27, 2005
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/ffmpeg: New --no-sout-ffmpeg-interlace-me option. Fixed
repeat_first_field handling.
parent
91b6f326
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
4 deletions
+23
-4
modules/codec/ffmpeg/encoder.c
modules/codec/ffmpeg/encoder.c
+17
-4
modules/codec/ffmpeg/ffmpeg.c
modules/codec/ffmpeg/ffmpeg.c
+2
-0
modules/codec/ffmpeg/ffmpeg.h
modules/codec/ffmpeg/ffmpeg.h
+4
-0
No files found.
modules/codec/ffmpeg/encoder.c
View file @
ab2f29bf
...
...
@@ -134,7 +134,7 @@ struct encoder_sys_t
float
f_rc_buffer_aggressivity
;
vlc_bool_t
b_pre_me
;
vlc_bool_t
b_hurry_up
;
vlc_bool_t
b_interlace
;
vlc_bool_t
b_interlace
,
b_interlace_me
;
float
f_i_quant_factor
;
int
i_noise_reduction
;
vlc_bool_t
b_mpeg4_matrix
;
...
...
@@ -261,6 +261,9 @@ int E_(OpenEncoder)( vlc_object_t *p_this )
var_Get
(
p_enc
,
ENC_CFG_PREFIX
"interlace"
,
&
val
);
p_sys
->
b_interlace
=
val
.
b_bool
;
var_Get
(
p_enc
,
ENC_CFG_PREFIX
"interlace-me"
,
&
val
);
p_sys
->
b_interlace_me
=
val
.
b_bool
;
var_Get
(
p_enc
,
ENC_CFG_PREFIX
"pre-me"
,
&
val
);
p_sys
->
b_pre_me
=
val
.
b_bool
;
...
...
@@ -439,9 +442,19 @@ int E_(OpenEncoder)( vlc_object_t *p_this )
if
(
p_sys
->
b_interlace
)
{
p_context
->
flags
|=
CODEC_FLAG_INTERLACED_DCT
;
if
(
p_context
->
height
<=
280
)
{
msg_Warn
(
p_enc
,
"disabling interlaced video because height=%d <= 280"
,
p_context
->
height
);
}
else
{
p_context
->
flags
|=
CODEC_FLAG_INTERLACED_DCT
;
#if LIBAVCODEC_BUILD >= 4698
p_context
->
flags
|=
CODEC_FLAG_INTERLACED_ME
;
if
(
p_sys
->
b_interlace_me
)
p_context
->
flags
|=
CODEC_FLAG_INTERLACED_ME
;
}
#endif
}
...
...
@@ -664,7 +677,7 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
/* Let ffmpeg select the frame type */
frame
.
pict_type
=
0
;
frame
.
repeat_pict
=
2
-
p_pict
->
i_nb_fields
;
frame
.
repeat_pict
=
p_pict
->
i_nb_fields
-
2
;
#if LIBAVCODEC_BUILD >= 4685
frame
.
interlaced_frame
=
!
p_pict
->
b_progressive
;
...
...
modules/codec/ffmpeg/ffmpeg.c
View file @
ab2f29bf
...
...
@@ -137,6 +137,8 @@ vlc_module_begin();
ENC_HURRYUP_LONGTEXT
,
VLC_FALSE
);
add_bool
(
ENC_CFG_PREFIX
"interlace"
,
0
,
NULL
,
ENC_INTERLACE_TEXT
,
ENC_INTERLACE_LONGTEXT
,
VLC_TRUE
);
add_bool
(
ENC_CFG_PREFIX
"interlace-me"
,
1
,
NULL
,
ENC_INTERLACE_ME_TEXT
,
ENC_INTERLACE_ME_LONGTEXT
,
VLC_TRUE
);
add_integer
(
ENC_CFG_PREFIX
"vt"
,
0
,
NULL
,
ENC_VT_TEXT
,
ENC_VT_LONGTEXT
,
VLC_TRUE
);
add_bool
(
ENC_CFG_PREFIX
"pre-me"
,
0
,
NULL
,
ENC_PRE_ME_TEXT
,
...
...
modules/codec/ffmpeg/ffmpeg.h
View file @
ab2f29bf
...
...
@@ -186,6 +186,10 @@ void E_(ClosePostproc)( decoder_t *, void * );
#define ENC_INTERLACE_LONGTEXT N_( "Allows you to enable dedicated " \
"algorithms for interlaced frames." )
#define ENC_INTERLACE_ME_TEXT N_( "Enable interlaced motion estimation" )
#define ENC_INTERLACE_ME_LONGTEXT N_( "Allows you to enable interlaced " \
"motion estimation algorithms. It requires more CPU." )
#define ENC_PRE_ME_TEXT N_( "Enable pre motion estimation" )
#define ENC_PRE_ME_LONGTEXT N_( "Allows you to enable the pre motion " \
"estimation." )
...
...
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