Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
c1ebd402
Commit
c1ebd402
authored
Feb 09, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
multipass x264 patch courtesy of Sašo Kiselkov
parent
dffddfae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
3 deletions
+57
-3
THANKS
THANKS
+2
-2
modules/codec/x264.c
modules/codec/x264.c
+55
-1
No files found.
THANKS
View file @
c1ebd402
...
...
@@ -149,11 +149,11 @@ Rene Gollent <rgollent at u.arizona.edu> - BeOS interface fix
Rob Casey (rob dot casey AT swishgroup dot com dot au) - Amino RTSP fix
Roine Gustafsson <roine at popstar.com> - spudec bug fixes
Rudolf Cornelissen <rag.cornelissen at inter.nl.net> - BeOS fixes
Sa
so Kiselkov <skiselkov _at_ gmail dot com> - RTSP session timeout fix for some STBs
Sa
šo Kiselkov <skiselkov _at_ gmail dot com> - RTSP session timeout fix for some STBs, multipass x264 patch
Scott Caudle <dorkmanzcot at gmail dot com> - Visualization, WX
improvements
Sebastien Chaumat <Sebastien.Chaumat at ens-lyon.fr> - YOPY port tests
Simon Damkj
�
r Andersen <simondamkjaer at gmail.com> - playmode icons and the entire Fullscreen Panel design for the OSX GUI (v0.8.6)
Simon Damkj
æ
r Andersen <simondamkjaer at gmail.com> - playmode icons and the entire Fullscreen Panel design for the OSX GUI (v0.8.6)
Steve Lhomme <steve dot lhomme at free dot fr> - MSVC fixes and Matroska enhancements
Steve Brown <sbrown at cortland.com> - fix for optional PES size bug
Steven M. Schultz <sms at TO.GD-ES.COM> - BSD/OS port
...
...
modules/codec/x264.c
View file @
c1ebd402
...
...
@@ -285,6 +285,14 @@ static void Close( vlc_object_t * );
#define ASM_TEXT N_("CPU optimizations")
#define ASM_LONGTEXT N_( "Use assembler CPU optimizations.")
#define STAT_IN_TEXT N_("Statistics input file")
#define STAT_IN_LONGTEXT N_( "Read rate-control stastics from provided file (for multi-pass " \
"encoding.")
#define STAT_OUT_TEXT N_("Statistics output file")
#define STAT_OUT_LONGTEXT N_( "Write rate-control stastics to provided file (for multi-pass " \
"encoding.")
#define PSNR_TEXT N_("PSNR computation")
#define PSNR_LONGTEXT N_( "Compute and print PSNR stats. This has no effect on " \
"the actual encoding quality." )
...
...
@@ -587,6 +595,12 @@ vlc_module_begin();
VERBOSE_LONGTEXT
,
VLC_FALSE
);
#endif
add_string
(
SOUT_CFG_PREFIX
"stat-in"
,
NULL
,
NULL
,
STAT_IN_TEXT
,
STAT_IN_LONGTEXT
,
VLC_FALSE
);
add_string
(
SOUT_CFG_PREFIX
"stat-out"
,
NULL
,
NULL
,
STAT_OUT_TEXT
,
STAT_OUT_LONGTEXT
,
VLC_FALSE
);
vlc_module_end
();
/*****************************************************************************
...
...
@@ -602,7 +616,8 @@ static const char *ppsz_sout_options[] = {
"pbratio"
,
"psnr"
,
"qblur"
,
"qp"
,
"qcomp"
,
"qpstep"
,
"qpmax"
,
"qpmin"
,
"qp-max"
,
"qp-min"
,
"quiet"
,
"ratetol"
,
"ref"
,
"scenecut"
,
"sps-id"
,
"ssim"
,
"subme"
,
"subpel"
,
"tolerance"
,
"trellis"
,
"verbose"
,
"vbv-bufsize"
,
"vbv-init"
,
"vbv-maxrate"
,
"weightb"
,
NULL
"vbv-bufsize"
,
"vbv-init"
,
"vbv-maxrate"
,
"weightb"
,
"stat-in"
,
"stat-out"
,
NULL
};
static
block_t
*
Encode
(
encoder_t
*
,
picture_t
*
);
...
...
@@ -1067,6 +1082,35 @@ static int Open ( vlc_object_t *p_this )
p_sys
->
param
.
i_threads
=
p_enc
->
i_threads
;
#endif
/* Statistics input/output preferences */
var_Get
(
p_enc
,
SOUT_CFG_PREFIX
"stat-in"
,
&
val
);
if
(
val
.
psz_string
&&
*
val
.
psz_string
)
{
p_sys
->
param
.
rc
.
b_stat_read
=
1
;
p_sys
->
param
.
rc
.
psz_stat_in
=
val
.
psz_string
;
msg_Dbg
(
p_enc
,
"Reading encoding statistics from
\"
%s
\"\n
"
,
p_sys
->
param
.
rc
.
psz_stat_in
);
}
else
{
p_sys
->
param
.
rc
.
b_stat_read
=
0
;
}
var_Get
(
p_enc
,
SOUT_CFG_PREFIX
"stat-out"
,
&
val
);
if
(
val
.
psz_string
&&
*
val
.
psz_string
)
{
p_sys
->
param
.
rc
.
b_stat_write
=
1
;
p_sys
->
param
.
rc
.
psz_stat_out
=
val
.
psz_string
;
msg_Dbg
(
p_enc
,
"Writing encoding statistics to
\"
%s
\"\n
"
,
p_sys
->
param
.
rc
.
psz_stat_out
);
}
else
{
p_sys
->
param
.
rc
.
b_stat_write
=
0
;
}
/* Open the encoder */
p_sys
->
h
=
x264_encoder_open
(
&
p_sys
->
param
);
...
...
@@ -1184,6 +1228,16 @@ static void Close( vlc_object_t *p_this )
{
encoder_t
*
p_enc
=
(
encoder_t
*
)
p_this
;
encoder_sys_t
*
p_sys
=
p_enc
->
p_sys
;
if
(
p_sys
->
param
.
rc
.
b_stat_read
)
{
free
(
p_sys
->
param
.
rc
.
psz_stat_in
);
}
if
(
p_sys
->
param
.
rc
.
b_stat_write
)
{
free
(
p_sys
->
param
.
rc
.
psz_stat_out
);
}
x264_encoder_close
(
p_sys
->
h
);
free
(
p_sys
->
p_buffer
);
...
...
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