mirror of
https://github.com/mpv-player/mpv
synced 2025-03-20 02:09:52 +00:00
x264 section reviewed.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13181 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ae626b4fe4
commit
ebd110a197
@ -4627,7 +4627,7 @@ syntax:
|
|||||||
.B \-<codec>opts <option1[=value],option2,...>
|
.B \-<codec>opts <option1[=value],option2,...>
|
||||||
.
|
.
|
||||||
.PP
|
.PP
|
||||||
Where <codec> may be: lavc, xvidenc, divx4, lame, x264
|
Where <codec> may be: lavc, xvidenc, divx4, lame, x264enc
|
||||||
.
|
.
|
||||||
.
|
.
|
||||||
.SS divx4 (\-divx4opts)
|
.SS divx4 (\-divx4opts)
|
||||||
@ -6221,52 +6221,51 @@ This is required if you want a CBR (constant bitrate) encode.
|
|||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.B iframe=<value>
|
.B iframe=<value>
|
||||||
Frequency of I frames (default: 60)
|
I frame frequency (default: 60)
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.B frameref=<value>
|
.B frameref=<value>
|
||||||
Number of previous frames used as predictors in a P-frame (default: 1)
|
Number of previous frames used as predictors in a P-frame (default: 1).
|
||||||
.br
|
.br
|
||||||
.I NOTE:
|
.I NOTE:
|
||||||
The current version of x264 (r38) hasn't yet implemented this feature.
|
As of x264 r38 this feature is not implemented yet.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.B idrframe=<value>
|
.B idrframe=<value>
|
||||||
Each <value> I-Frames are IDR-Frames.
|
Each <value> I-Frames are IDR-Frames (default: 2).
|
||||||
In H.264, I-Frames do not necessarily bound a closed GOP because it is
|
In H.264, I-Frames do not necessarily bound a closed GOP because it is
|
||||||
allowable for a P-frame to be predicted from more frames than just the one
|
allowable for a P-frame to be predicted from more frames than just the one
|
||||||
frame before it (also see frameref).
|
frame before it (also see frameref).
|
||||||
Therefore, I-frames are not necessarily seekable. IDR-Frames restrict
|
Therefore, I-frames are not necessarily seekable.
|
||||||
subsequent P-frames from referring to any frame prior to the IDR-Frame
|
IDR-Frames restrict subsequent P-frames from referring to any frame
|
||||||
(default: 2)
|
prior to the IDR-Frame.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.B bframe=<value>
|
.B bframe=<value>
|
||||||
Number of B-Frames between I- and P-Frames (default: 0)
|
number of B-Frames between I- and P-Frames (default: 0)
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.B deblock=<0|1>
|
.B deblock=<0|1>
|
||||||
Use deblocking filter (default: on)
|
Use deblocking filter (default: on).
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.B deblockalpha=<-6-6>
|
.B deblockalpha=<-6-6>
|
||||||
AlphaC0 parameter of deblocking filter.
|
AlphaC0 parameter of deblocking filter (default: 0).
|
||||||
This adjusts thresholds for the H.264 deblocking filter.
|
This adjusts thresholds for the H.264 deblocking filter.
|
||||||
First, this parameter adjusts the maximum amount of change that the filter is
|
First, this parameter adjusts the maximum amount of change that the filter is
|
||||||
allowed to cause on any one pixel.
|
allowed to cause on any one pixel.
|
||||||
Secondly, this parameter affects the threshold for difference across the
|
Secondly, this parameter affects the threshold for difference across the
|
||||||
edge being filtered.
|
edge being filtered.
|
||||||
A positive value reduces blocking artifacts more, but will also smear details
|
A positive value reduces blocking artifacts more, but will also smear details.
|
||||||
(default: 0)
|
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.B deblockbeta=<-6-6>
|
.B deblockbeta=<-6-6>
|
||||||
Beta parameter of deblocking filter.
|
Beta parameter of deblocking filter (default: 0).
|
||||||
Affects the maximum allowed gradient within two adjacent blocks (default: 0)
|
Affects the maximum allowed gradient within two adjacent blocks.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.B cabac
|
.B cabac
|
||||||
Use CABAC (Context-Adaptive Binary Arithmetic Coding) (default: off)
|
Use CABAC (Context-Adaptive Binary Arithmetic Coding).
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.B cabacidc=<value>
|
.B cabacidc=<value>
|
||||||
@ -6276,7 +6275,7 @@ first block in a frame, there are no prior blocks to predict the context.
|
|||||||
Adjusting this may affect bitrate by a fraction of a percent, but it doesn't
|
Adjusting this may affect bitrate by a fraction of a percent, but it doesn't
|
||||||
directly affect distortion.
|
directly affect distortion.
|
||||||
.RSs
|
.RSs
|
||||||
-1: Let the encoder decide which context (default) (it usually chooses 0)
|
-1: Encoder chooses context, usually 0 (default).
|
||||||
.br
|
.br
|
||||||
0: low complexity
|
0: low complexity
|
||||||
.br
|
.br
|
||||||
@ -6288,25 +6287,26 @@ directly affect distortion.
|
|||||||
.TP
|
.TP
|
||||||
.B qp_constant=<2-51>
|
.B qp_constant=<2-51>
|
||||||
This selects the quantizer to use.
|
This selects the quantizer to use.
|
||||||
|
20-40 is a useful range (default: 26).
|
||||||
Lower values result in better fidelity, but higher bitrates.
|
Lower values result in better fidelity, but higher bitrates.
|
||||||
Note that quantization in H.264 works differently from mpeg[124].
|
Note that quantization in H.264 works differently from MPEG[124].
|
||||||
H.264's QP is on a logarithmic scale. As an example, the bitrate difference
|
H.264's QP is on a logarithmic scale.
|
||||||
between QP=20 and QP=40 is about a factor of 10.
|
As an example, the bitrate difference between QP=20 and QP=40
|
||||||
Useful quantizers in H.264 tend to be very large compared to mpeg[124].
|
is about a factor of 10.
|
||||||
20-40 is a useful range (default: 26)
|
Useful quantizers in H.264 tend to be very large compared to MPEG[124].
|
||||||
.br
|
.br
|
||||||
.I NOTE:
|
.I NOTE:
|
||||||
This option takes effect even if you specify a cbr encode.
|
This option takes effect even if you specify a CBR encode.
|
||||||
In such a case, the first frame encoded will use the quantization factor you
|
In such a case, the first encoded frame will use the quantization factor you
|
||||||
specified, but in later frames, the ratecontrol decides what quants to use.
|
specified, but in later frames, the ratecontrol decides what quants to use.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.B qp_min=<2-51>
|
.B qp_min=<2-51> (CBR only)
|
||||||
Minimum quantizer. CBR only. 20-40 seems to be a useful range (default: 2)
|
Minimum quantizer, 20-40 seems to be a useful range (default: 2).
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.B qp_max=<2-51>
|
.B qp_max=<2-51> (CBR only)
|
||||||
Maximum quantizer. CBR only.
|
Maximum quantizer
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.B qp_step=<value>
|
.B qp_step=<value>
|
||||||
@ -6315,43 +6315,47 @@ frames.
|
|||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.B rc_buffer_size=<value>
|
.B rc_buffer_size=<value>
|
||||||
Size of the ratecontrol buffer. (default: 1 second's worth at the bitrate you
|
ratecontrol buffer size (default: 1 second's worth at the bitrate you
|
||||||
specified)
|
specified)
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.B rc_init_buffer=<value>
|
.B rc_init_buffer=<value>
|
||||||
Set the initial size of ratecontrol buffer (default: 1/4 of rc_buffer_size)
|
Set the initial ratecontrol buffer (default: 1/4 of rc_buffer_size)
|
||||||
|
.
|
||||||
|
.TP
|
||||||
.B rc_sens=<0-100>
|
.B rc_sens=<0-100>
|
||||||
Ratecontrol sensitivity (default: 100)
|
ratecontrol sensitivity (default: 100)
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.B ip_factor=<value>
|
.B ip_factor=<value>
|
||||||
Quantizer factor between I amd P frames (default: 2.0)
|
quantizer factor between I amd P frames (default: 2.0)
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.B pb_factor=<value>
|
.B pb_factor=<value>
|
||||||
Quantizer factor between P and B frames (default: 2.0)
|
quantizer factor between P and B frames (default: 2.0)
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.B pass=<1|2>
|
.B pass=<1|2>
|
||||||
For 2-pass mode. The first pass saves statistics.
|
Enable 2-pass mode.
|
||||||
|
The first pass saves statistics.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.B qcompress=<0-1>
|
.B qcompress=<0-1>
|
||||||
Quantizer compression. This affects the ratecontrol: a lower value makes the
|
quantizer compression (default: 0.6).
|
||||||
|
This affects the ratecontrol: a lower value makes the
|
||||||
bitrate more constant, while a higher value makes the quantization parameter
|
bitrate more constant, while a higher value makes the quantization parameter
|
||||||
more constant (default: 0.6)
|
more constant.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.B qblur=<0-1>
|
.B qblur=<0-1>
|
||||||
Temporal blur of the quantization parameter. Lower values allow the quantizer
|
Temporal blur of the quantization parameter (default: 0.5).
|
||||||
value to jump around more; higher values force it to vary more smoothly
|
Lower values allow the quantizer value to jump around more,
|
||||||
(default: 0.5)
|
higher values force it to vary more smoothly.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.B fullinter
|
.B fullinter
|
||||||
Use all available interframe analyse methods (i4x4, psub8x8, psub16x16)
|
Use all available interframe analysis methods (i4x4, psub8x8, psub16x16)
|
||||||
(default: 4x4, psub16x16)
|
(default: 4x4, psub16x16).
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.B log=<-1-3>
|
.B log=<-1-3>
|
||||||
|
Loading…
Reference in New Issue
Block a user