Advertisement
Guest User

Kurtnoise

a guest
Jul 7th, 2009
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.42 KB | None | 0 0
  1. diff --git a/x264.c b/x264.c
  2. index e79f9ac..d3cb30d 100644
  3. --- a/x264.c
  4. +++ b/x264.c
  5. @@ -173,8 +173,10 @@ static void Help( x264_param_t *defaults, int b_longhelp )
  6. else H0( " - ultrafast,veryfast,fast,medium,slow,slower\n" );
  7. H0( " --tune Tune the settings for a particular type of source\n" );
  8. H0( " Overridden by user settings\n");
  9. - H1( " - film,animation,grain,psnr,ssim,touhou\n");
  10. - else H0( " - film,animation,grain,psnr,ssim\n");
  11. + H1( " - film,animation,grain,psnr,ssim,touhou\n"
  12. + " - ipod,iphone,itouch,appletv,ps3,xbox360\n");
  13. + else H0( " - film,animation,grain,psnr,ssim,ipod\n"
  14. + " - ipod,iphone,itouch,appletv,ps3,xbox360\n");
  15. H0( " --slow-firstpass Don't use faster settings with --pass 1\n" );
  16. H0( "\n" );
  17. H0( "Frame-type options:\n" );
  18. @@ -657,6 +659,51 @@ static int Parse( int argc, char **argv,
  19. if( param->analyse.inter & X264_ANALYSE_PSUB16x16 )
  20. param->analyse.inter |= X264_ANALYSE_PSUB8x8;
  21. }
  22. + else if( !strcasecmp( optarg, "ipod" ) )
  23. + {
  24. + param->i_frame_reference = 1;
  25. + param->rc.i_vbv_max_bitrate = 1500;
  26. + param->rc.i_vbv_buffer_size = 2000;
  27. + param->analyse.i_me_method = X264_ME_UMH;
  28. + param->i_level_idc = 30;
  29. + profile = "baseline";
  30. + }
  31. + else if( !strcasecmp( optarg, "iphone" ) || !strcasecmp( optarg, "itouch") )
  32. + {
  33. + param->i_frame_reference = 2;
  34. + param->rc.i_vbv_max_bitrate = 5000;
  35. + param->rc.i_vbv_buffer_size = 2000;
  36. + param->analyse.i_me_method = X264_ME_UMH;
  37. + param->i_level_idc = 30;
  38. + profile = "baseline";
  39. + }
  40. + else if( !strcasecmp( optarg, "appletv") )
  41. + {
  42. + param->i_bframe = 5;
  43. + param->analyse.i_direct_mv_pred = X264_DIRECT_PRED_AUTO;
  44. + param->analyse.i_me_method = X264_ME_UMH;
  45. + param->analyse.inter = ~0;
  46. + param->i_level_idc = 30;
  47. + profile = "main";
  48. + }
  49. + else if( !strcasecmp( optarg, "ps3") )
  50. + {
  51. + param->i_bframe = 5;
  52. + param->i_frame_reference = 4;
  53. + param->analyse.i_direct_mv_pred = X264_DIRECT_PRED_AUTO;
  54. + param->analyse.i_me_method = X264_ME_UMH;
  55. + param->analyse.inter = ~0;
  56. + param->i_level_idc = 41;
  57. + }
  58. + else if( !strcasecmp( optarg, "xbox360") )
  59. + {
  60. + param->i_bframe = 4;
  61. + param->i_frame_reference = 2;
  62. + param->analyse.i_direct_mv_pred = X264_DIRECT_PRED_AUTO;
  63. + param->analyse.i_me_method = X264_ME_UMH;
  64. + param->analyse.inter = ~0;
  65. + param->i_level_idc = 40;
  66. + }
  67. else
  68. {
  69. fprintf( stderr, "x264 [error]: invalid tune: %s\n", optarg );
  70.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement