]> granicus.if.org Git - handbrake/commitdiff
MacGui: fix turbo two pass (thanks beelsebob and jkint for help troubleshooting it )
authordynaflash <dynaflashtech@gmail.com>
Wed, 17 Sep 2008 19:02:49 +0000 (19:02 +0000)
committerdynaflash <dynaflashtech@gmail.com>
Wed, 17 Sep 2008 19:02:49 +0000 (19:02 +0000)
- also added a few more debugging messages to prepareJob until things cool down a bit.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1714 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/Controller.mm

index ce7950343bd1f6736f3e84d7a6f62cd301c43ddf..2e1b30fa39b8716baf10e6c5d9feabb6fc174e15 100644 (file)
@@ -2520,7 +2520,7 @@ fWorkingCount = 0;
                        NSString *firstPassOptStringTurbo = @":ref=1:subme=1: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"] stringValue] stringByAppendingString:firstPassOptStringTurbo];
+                       NSString *firstPassOptStringCombined = [[queueToApply objectForKey:@"x264Option"] stringByAppendingString:firstPassOptStringTurbo];
                        strcpy(job->x264opts, [firstPassOptStringCombined UTF8String]);
                }
                else
@@ -2530,6 +2530,8 @@ fWorkingCount = 0;
         
     }
     
+    
+    [self writeToActivityLog: "prepareJob reached Picture Settings"];
     /* Picture Size Settings */
     job->width = [[queueToApply objectForKey:@"PictureWidth"]  intValue];
     job->height = [[queueToApply objectForKey:@"PictureHeight"]  intValue];
@@ -2544,6 +2546,8 @@ fWorkingCount = 0;
     job->crop[2] = [[queueToApply objectForKey:@"PictureLeftCrop"]  intValue];
     job->crop[3] = [[queueToApply objectForKey:@"PictureRightCrop"]  intValue];
     
+    [self writeToActivityLog: "prepareJob reached Frame Rate"];
+    
     /* Video settings */
     if( [[queueToApply objectForKey:@"JobIndexVideoFramerate"] intValue] > 0 )
     {
@@ -2562,7 +2566,7 @@ fWorkingCount = 0;
          * to enable true same as source framerate */
         job->cfr = 0;
     }
-    
+    [self writeToActivityLog: "prepareJob reached Bitrate Video Quality"];
     if ( [[queueToApply objectForKey:@"VideoQualityType"] intValue] == 0 )
     {
         /* Target size.
@@ -2585,6 +2589,7 @@ fWorkingCount = 0;
     /* Subtitle settings */
     job->subtitle = [[queueToApply objectForKey:@"JobSubtitlesIndex"] intValue] - 2;
     
+    [self writeToActivityLog: "prepareJob reached Audio"];
     /* Audio tracks and mixdowns */
     /* Lets make sure there arent any erroneous audio tracks in the job list, so lets make sure its empty*/
     int audiotrack_count = hb_list_count(job->list_audio);
@@ -2673,7 +2678,8 @@ fWorkingCount = 0;
         job->vfr = 0;
     }
     
-    /* Filters */ 
+   [self writeToActivityLog: "prepareJob reached Filters"];
+     /* Filters */ 
     job->filters = hb_list_init();
     
     /* Now lets call the filters if applicable.