diff options
author | rhester <[email protected]> | 2006-09-30 16:21:26 +0000 |
---|---|---|
committer | rhester <[email protected]> | 2006-09-30 16:21:26 +0000 |
commit | 1806e33ca8df880e33657d3a30e537ae620fadef (patch) | |
tree | 69482a657f855d09d669e94ec0bd3251d6092406 /test | |
parent | 5f8684be8ecc912a8828ae3c21857125255a590b (diff) |
HandBrake 0.7.1a1
Made H.264 baseline levels more generic
Added iPod 640x480 support to libhb, HBTest and MacOS X GUI
Added proper iPod 640x480 muxing
Modified rate control for more accurate ending video bitrates
Updated ffmpeg and x264 base sources to more current levels
Removed inlined ff_get_fourcc (now in ffmpeg)
Updated patches for xvidcore, libdvdread, x264, and ffmpeg
Relocated contrib files to local web server and updated version files to new site
Renamed contrib files and patches to consistent naming standard
Updated contrib Jamfile to support new patches and naming standard
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@70 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'test')
-rw-r--r-- | test/test.c | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/test/test.c b/test/test.c index e01bec7a1..0f43a7f16 100644 --- a/test/test.c +++ b/test/test.c @@ -21,6 +21,7 @@ static int deinterlace = 0; static int grayscale = 0; static int vcodec = HB_VCODEC_FFMPEG; static int h264_13 = 0; +static int h264_30 = 0; static char * audios = NULL; static int sub = 0; static int width = 0; @@ -341,8 +342,12 @@ static int HandleEvents( hb_handle_t * h ) } if( h264_13 ) { - job->h264_13 = h264_13; - } + job->h264_level = 13; + } + if( h264_30 ) + { + job->h264_level = 30; + } if( vrate ) { job->vrate = 27000000; @@ -505,7 +510,7 @@ static void ShowHelp() "\n" " -s, --subtitle <number> Select subtitle (default: none)\n" " -e, --encoder <string> Set video library encoder (ffmpeg,xvid,\n" - " x264,x264b13, default: ffmpeg)\n" + " x264,x264b13,x264b30 default: ffmpeg)\n" " -E, --aencoder <string> Set audio encoder (faac/lame/vorbis/ac3, ac3\n" " meaning passthrough, default: guessed)\n" " -2, --two-pass Use two-pass mode\n" @@ -673,6 +678,11 @@ static int ParseOptions( int argc, char ** argv ) vcodec = HB_VCODEC_X264; h264_13 = 1; } + else if( !strcasecmp( optarg, "x264b30" ) ) + { + vcodec = HB_VCODEC_X264; + h264_30 = 1; + } else { fprintf( stderr, "invalid codec (%s)\n", optarg ); @@ -801,7 +811,10 @@ static int CheckOptions( int argc, char ** argv ) } else if( p && !strcasecmp( p, ".mp4" ) ) { - mux = HB_MUX_MP4; + if ( h264_30 == 1 ) + mux = HB_MUX_IPOD; + else + mux = HB_MUX_MP4; } else if( p && ( !strcasecmp( p, ".ogm" ) || !strcasecmp( p, ".ogg" ) ) ) @@ -821,7 +834,10 @@ static int CheckOptions( int argc, char ** argv ) } else if( !strcasecmp( format, "mp4" ) ) { - mux = HB_MUX_MP4; + if ( h264_30 == 1) + mux = HB_MUX_IPOD; + else + mux = HB_MUX_MP4; } else if( !strcasecmp( format, "ogm" ) || !strcasecmp( format, "ogg" ) ) @@ -837,7 +853,7 @@ static int CheckOptions( int argc, char ** argv ) if( !acodec ) { - if( mux == HB_MUX_MP4 ) + if( mux == HB_MUX_MP4 || mux == HB_MUX_IPOD ) { acodec = HB_ACODEC_FAAC; } |