]> granicus.if.org Git - handbrake/commitdiff
0.9.x: add "Web Optimized" support to manicure. Patch by Sam Homer, thanks!
authorRodeo <tdskywalker@gmail.com>
Sun, 25 Mar 2012 14:39:41 +0000 (14:39 +0000)
committerRodeo <tdskywalker@gmail.com>
Sun, 25 Mar 2012 14:39:41 +0000 (14:39 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/0.9.x@4538 b64f7644-9d1e-0410-96f1-a4d463321fa5

scripts/manicure.rb

index 97a803cf05d75695cf0b916f0841862c1078b9fb..bfa4f685afe0d411048b6665d4a0a17b2b34639d 100755 (executable)
@@ -424,6 +424,11 @@ class Display
       commandString << " -4"
     end
     
+    #MP4 Optimize for HTTP Streaming
+    if hash["Mp4HttpOptimize"].to_i == 1
+      commandString << " -O"
+    end
+    
     #Cropping
     if hash["PictureAutoCrop"] == 0
       commandString << " --crop "
@@ -690,6 +695,11 @@ class Display
       commandString << " -4"
     end
     
+    #MP4 Optimize for HTTP Streaming
+    if hash["Mp4HttpOptimize"].to_i == 1
+      commandString << " -O"
+    end
+    
     #Cropping
     if hash["PictureAutoCrop"] == 0
       commandString << " --crop "
@@ -805,6 +815,11 @@ class Display
       commandString << "job->largeFileSize = 1;\n    "
     end
     
+    #MP4 Optimize for HTTP Streaming
+    if hash["Mp4HttpOptimize"].to_i == 1
+      commandString << "job->mp4_optimize = 1;\n    "
+    end
+    
     #Video encoder
     if hash["VideoEncoder"] != "MPEG-4 (FFmpeg)"
       commandString << "vcodec = "
@@ -1249,6 +1264,11 @@ class Display
       commandString << " -4"
     end
     
+    #MP4 Optimize for HTTP Streaming
+    if hash["Mp4HttpOptimize"].to_i == 1
+      commandString << " -O"
+    end
+    
     #Cropping
     if hash["PictureAutoCrop"] == 0
       commandString << " --crop "