Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/x264.c b/x264.c
- index e79f9ac..d3cb30d 100644
- --- a/x264.c
- +++ b/x264.c
- @@ -173,8 +173,10 @@ static void Help( x264_param_t *defaults, int b_longhelp )
- else H0( " - ultrafast,veryfast,fast,medium,slow,slower\n" );
- H0( " --tune Tune the settings for a particular type of source\n" );
- H0( " Overridden by user settings\n");
- - H1( " - film,animation,grain,psnr,ssim,touhou\n");
- - else H0( " - film,animation,grain,psnr,ssim\n");
- + H1( " - film,animation,grain,psnr,ssim,touhou\n"
- + " - ipod,iphone,itouch,appletv,ps3,xbox360\n");
- + else H0( " - film,animation,grain,psnr,ssim,ipod\n"
- + " - ipod,iphone,itouch,appletv,ps3,xbox360\n");
- H0( " --slow-firstpass Don't use faster settings with --pass 1\n" );
- H0( "\n" );
- H0( "Frame-type options:\n" );
- @@ -657,6 +659,51 @@ static int Parse( int argc, char **argv,
- if( param->analyse.inter & X264_ANALYSE_PSUB16x16 )
- param->analyse.inter |= X264_ANALYSE_PSUB8x8;
- }
- + else if( !strcasecmp( optarg, "ipod" ) )
- + {
- + param->i_frame_reference = 1;
- + param->rc.i_vbv_max_bitrate = 1500;
- + param->rc.i_vbv_buffer_size = 2000;
- + param->analyse.i_me_method = X264_ME_UMH;
- + param->i_level_idc = 30;
- + profile = "baseline";
- + }
- + else if( !strcasecmp( optarg, "iphone" ) || !strcasecmp( optarg, "itouch") )
- + {
- + param->i_frame_reference = 2;
- + param->rc.i_vbv_max_bitrate = 5000;
- + param->rc.i_vbv_buffer_size = 2000;
- + param->analyse.i_me_method = X264_ME_UMH;
- + param->i_level_idc = 30;
- + profile = "baseline";
- + }
- + else if( !strcasecmp( optarg, "appletv") )
- + {
- + param->i_bframe = 5;
- + param->analyse.i_direct_mv_pred = X264_DIRECT_PRED_AUTO;
- + param->analyse.i_me_method = X264_ME_UMH;
- + param->analyse.inter = ~0;
- + param->i_level_idc = 30;
- + profile = "main";
- + }
- + else if( !strcasecmp( optarg, "ps3") )
- + {
- + param->i_bframe = 5;
- + param->i_frame_reference = 4;
- + param->analyse.i_direct_mv_pred = X264_DIRECT_PRED_AUTO;
- + param->analyse.i_me_method = X264_ME_UMH;
- + param->analyse.inter = ~0;
- + param->i_level_idc = 41;
- + }
- + else if( !strcasecmp( optarg, "xbox360") )
- + {
- + param->i_bframe = 4;
- + param->i_frame_reference = 2;
- + param->analyse.i_direct_mv_pred = X264_DIRECT_PRED_AUTO;
- + param->analyse.i_me_method = X264_ME_UMH;
- + param->analyse.inter = ~0;
- + param->i_level_idc = 40;
- + }
- else
- {
- fprintf( stderr, "x264 [error]: invalid tune: %s\n", optarg );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement