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
23b13015
Commit
23b13015
authored
Jul 22, 2010
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x264: Relax requirement to X264_BUILD >= 83 iso 86
Some distributions do not use x264 >= 86 yet.
parent
efcf59a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
configure.ac
configure.ac
+2
-2
modules/codec/x264.c
modules/codec/x264.c
+9
-2
No files found.
configure.ac
View file @
23b13015
...
...
@@ -3123,7 +3123,7 @@ if test "${enable_x264}" != "no"; then
AC_MSG_ERROR([the specified tree doesn't have x264.h])
fi
else
PKG_CHECK_MODULES(X264,x264 >= 0.8
6
, [
PKG_CHECK_MODULES(X264,x264 >= 0.8
3
, [
VLC_ADD_PLUGIN([x264])
VLC_ADD_LDFLAGS([x264],[${X264_LIBS}])
...
...
@@ -3143,7 +3143,7 @@ if test "${enable_x264}" != "no"; then
fi
],[
if test "${enable_x264}" = "yes"; then
AC_MSG_ERROR([Could not find libx264 >= 0.8
6
on your system: you may get it from http://www.videolan.org/x264.html])
AC_MSG_ERROR([Could not find libx264 >= 0.8
3
on your system: you may get it from http://www.videolan.org/x264.html])
fi
])
LDFLAGS="${LDFLAGS_save}"
...
...
modules/codec/x264.c
View file @
23b13015
...
...
@@ -478,9 +478,11 @@ vlc_module_begin ()
add_string
(
SOUT_CFG_PREFIX
"level"
,
"0"
,
NULL
,
LEVEL_TEXT
,
LEVEL_LONGTEXT
,
false
)
#if X264_BUILD >= 86
add_string
(
SOUT_CFG_PREFIX
"profile"
,
"high"
,
NULL
,
PROFILE_TEXT
,
PROFILE_LONGTEXT
,
false
)
change_string_list
(
x264_profile_names
,
x264_profile_names
,
0
);
#endif
add_bool
(
SOUT_CFG_PREFIX
"interlaced"
,
false
,
NULL
,
INTERLACED_TEXT
,
INTERLACED_LONGTEXT
,
false
)
...
...
@@ -676,11 +678,12 @@ vlc_module_begin ()
add_string
(
SOUT_CFG_PREFIX
"stats"
,
"x264_2pass.log"
,
NULL
,
STATS_TEXT
,
STATS_LONGTEXT
,
false
)
#if X264_BUILD >= 86
add_string
(
SOUT_CFG_PREFIX
"preset"
,
NULL
,
NULL
,
PRESET_TEXT
,
PRESET_TEXT
,
false
)
change_string_list
(
x264_preset_names
,
x264_preset_names
,
0
);
add_string
(
SOUT_CFG_PREFIX
"tune"
,
NULL
,
NULL
,
TUNE_TEXT
,
TUNE_TEXT
,
false
)
change_string_list
(
x264_tune_names
,
x264_tune_names
,
0
);
#endif
vlc_module_end
()
/*****************************************************************************
...
...
@@ -756,6 +759,8 @@ static int Open ( vlc_object_t *p_this )
p_sys
->
psz_stat_name
=
NULL
;
x264_param_default
(
&
p_sys
->
param
);
#if X264_BUILD >= 86
char
*
psz_preset
=
var_GetString
(
p_enc
,
SOUT_CFG_PREFIX
"preset"
);
char
*
psz_tune
=
var_GetString
(
p_enc
,
SOUT_CFG_PREFIX
"tune"
);
if
(
*
psz_preset
==
'\0'
)
...
...
@@ -766,6 +771,7 @@ static int Open ( vlc_object_t *p_this )
x264_param_default_preset
(
&
p_sys
->
param
,
psz_preset
,
psz_tune
);
free
(
psz_preset
);
free
(
psz_tune
);
#endif
p_sys
->
param
.
i_width
=
p_enc
->
fmt_in
.
video
.
i_width
;
p_sys
->
param
.
i_height
=
p_enc
->
fmt_in
.
video
.
i_height
;
...
...
@@ -1154,6 +1160,7 @@ static int Open ( vlc_object_t *p_this )
p_sys
->
param
.
rc
.
i_vbv_buffer_size
/=
p_sys
->
param
.
i_fps_num
;
}
#if X264_BUILD >= 86
/* Check if user has given some profile (baseline,main,high) to limit
* settings, and apply those*/
psz_val
=
var_GetString
(
p_enc
,
SOUT_CFG_PREFIX
"profile"
);
...
...
@@ -1176,7 +1183,7 @@ static int Open ( vlc_object_t *p_this )
/* high profile don't restrict stuff*/
}
free
(
psz_val
);
#endif
unsigned
i_cpu
=
vlc_CPU
();
if
(
!
(
i_cpu
&
CPU_CAPABILITY_MMX
)
)
...
...
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