summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorRodeo <[email protected]>2012-03-28 23:09:08 +0000
committerRodeo <[email protected]>2012-03-28 23:09:08 +0000
commitcca9c898d2f57047ab2cdabee8c794ddf2775aa7 (patch)
tree00092d02ab4c0d905296f875c5f1f3865aa23ad9 /macosx
parenta9d238763d17fafb04f96deed93b798310303f7d (diff)
encx264: use x264_param_apply_fastfirstpass.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4551 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx')
-rw-r--r--macosx/Controller.m24
1 files changed, 4 insertions, 20 deletions
diff --git a/macosx/Controller.m b/macosx/Controller.m
index 918de6588..522615f79 100644
--- a/macosx/Controller.m
+++ b/macosx/Controller.m
@@ -2718,24 +2718,12 @@ fWorkingCount = 0;
if( [[queueToApply objectForKey:@"VideoTwoPass"] intValue] == 1 )
{
job->indepth_scan = 0;
-
-
-
job->pass = 1;
hb_add( fQueueEncodeLibhb, job );
job->pass = 2;
- if( job->vcodec == HB_VCODEC_X264 )
- {
- job->advanced_opts = strdup( [[queueToApply objectForKey:@"x264Option"] UTF8String] );
- }
- else if( job->vcodec & HB_VCODEC_FFMPEG_MASK )
- {
- job->advanced_opts = strdup( [[queueToApply objectForKey:@"lavcOption"] UTF8String] );
- }
-
hb_add( fQueueEncodeLibhb, job );
}
@@ -3093,6 +3081,7 @@ fWorkingCount = 0;
/* Below Sends x264 options to the core library if x264 is selected*/
/* Lets use this as per Nyx, Thanks Nyx! */
/* For previews we ignore the turbo option for the first pass of two since we only use 1 pass */
+ job->fastfirstpass = 0;
job->advanced_opts = strdup( [[fAdvancedOptions optionsString] UTF8String] );
@@ -3589,18 +3578,13 @@ bool one_burned = FALSE;
/* Turbo first pass if two pass and Turbo First pass is selected */
if( [[queueToApply objectForKey:@"VideoTwoPass"] intValue] == 1 && [[queueToApply objectForKey:@"VideoTurboTwoPass"] intValue] == 1 )
{
- /* pass the "Turbo" string to be appended to the existing x264 opts string into a variable for the first pass */
- NSString *firstPassOptStringTurbo = @":ref=1:subme=2:me=dia:analyse=none:trellis=0:no-fast-pskip=0:8x8dct=0:weightb=0";
- /* append the "Turbo" string variable to the existing opts string.
- * Note: the "Turbo" string must be appended, not prepended to work properly */
- NSString *firstPassOptStringCombined = [[queueToApply objectForKey:@"x264Option"] stringByAppendingString:firstPassOptStringTurbo];
- job->advanced_opts = strdup( [firstPassOptStringCombined UTF8String] );
+ job->fastfirstpass = 1;
}
else
{
- job->advanced_opts = strdup( [[queueToApply objectForKey:@"x264Option"] UTF8String] );
+ job->fastfirstpass = 0;
}
-
+ job->advanced_opts = strdup( [[queueToApply objectForKey:@"x264Option"] UTF8String] );
}
else if( job->vcodec & HB_VCODEC_FFMPEG_MASK )
{