<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Revision: 71ed44c7312438fac7c5c5301e45522e57127db4
<br>
Author: Vittorio Giovara <a class="moz-txt-link-rfc2396E"
href="mailto:vittorio.giovara@gmail.com"><vittorio.giovara@gmail.com></a>
<br>
Date: 06.01.2017 17:23:38
<br>
Message:
<br>
Unify 8-bit and 10-bit CLI and libraries
</p>
<p><br>
</p>
<p>Lost: param->analyse.i_trellis = 0; <br>
</p>
<p>1. ultrafast slower than superfast
<br>
<br>
2. in real video 3x speed degrade with trellis 1
<br>
<br>
<br>
<a class="moz-txt-link-freetext"
href="https://code.videolan.org/videolan/medialibrary-test-samples.git">https://code.videolan.org/videolan/medialibrary-test-samples.git</a>
<br>
ffmpeg -i "mrmssmith.mkv" -an -preset ultrafast -y -threads 1
"ultrfast.mkv"
<br>
ffmpeg -i "mrmssmith.mkv" -an -preset ultrafast -y -threads 1
-trellis 0 "ultrfast_trellis_0.mkv"
<br>
ffmpeg -i "mrmssmith.mkv" -an -preset superfast -y -threads 1
"superfast.mkv"
<br>
<br>
mrmssmith.mkv
<br>
ultrafast - 36.4x
<br>
ultrfast_trellis_0 - 111x
<br>
superfast 53.6x
<br>
<br>
anamorph.mkv
<br>
ultrafast - 7.23x
<br>
ultrfast_trellis_0 - 21.1x
<br>
superfast - 11.6x
</p>
<p><br>
</p>
<p>$ git diff
71ed44c7312438fac7c5c5301e45522e57127db4~1..71ed44c7312438fac7c5c5301e45522e57127db4
common/common.c | sed -n '169,189p' && git diff
71ed44c7312438fac7c5c5301e45522e57127db4~1..71ed44c7312438fac7c5c5301e45522e57127db4
common/base.c | sed -n '431,450p'<br>
- if( !strcasecmp( preset, "ultrafast" ) )<br>
- {<br>
- param->i_frame_reference = 1;<br>
- param->i_scenecut_threshold = 0;<br>
- param->b_deblocking_filter = 0;<br>
- param->b_cabac = 0;<br>
- param->i_bframe = 0;<br>
- param->analyse.intra = 0;<br>
- param->analyse.inter = 0;<br>
- param->analyse.b_transform_8x8 = 0;<br>
- param->analyse.i_me_method = X264_ME_DIA;<br>
- param->analyse.i_subpel_refine = 0;<br>
- param->rc.i_aq_mode = 0;<br>
- param->analyse.b_mixed_references = 0;<br>
- param->analyse.i_trellis = 0;<br>
- param->i_bframe_adaptive = X264_B_ADAPT_NONE;<br>
- param->rc.b_mb_tree = 0;<br>
- param->analyse.i_weighted_pred = X264_WEIGHTP_NONE;<br>
- param->analyse.b_weighted_bipred = 0;<br>
- param->rc.i_lookahead = 0;<br>
- }<br>
+ if( !strcasecmp( preset, "ultrafast" ) )<br>
+ {<br>
+ param->i_frame_reference = 1;<br>
+ param->i_scenecut_threshold = 0;<br>
+ param->b_deblocking_filter = 0;<br>
+ param->b_cabac = 0;<br>
+ param->i_bframe = 0;<br>
+ param->analyse.intra = 0;<br>
+ param->analyse.inter = 0;<br>
+ param->analyse.b_transform_8x8 = 0;<br>
+ param->analyse.i_me_method = X264_ME_DIA;<br>
+ param->analyse.i_subpel_refine = 0;<br>
+ param->rc.i_aq_mode = 0;<br>
+ param->analyse.b_mixed_references = 0;<br>
+ param->i_bframe_adaptive = X264_B_ADAPT_NONE;<br>
+ param->rc.b_mb_tree = 0;<br>
+ param->analyse.i_weighted_pred = X264_WEIGHTP_NONE;<br>
+ param->analyse.b_weighted_bipred = 0;<br>
+ param->rc.i_lookahead = 0;<br>
+ }<br>
<br>
</p>
</body>
</html>