[Mediaconverter-commits] r9 - MediaConverter/src/mediaconverter

konttori at garage.maemo.org konttori at garage.maemo.org
Tue Aug 15 14:36:03 EEST 2006


Author: konttori
Date: 2006-08-15 14:36:02 +0300 (Tue, 15 Aug 2006)
New Revision: 9

Modified:
   MediaConverter/src/mediaconverter/MainWindow.java
Log:


Modified: MediaConverter/src/mediaconverter/MainWindow.java
===================================================================
--- MediaConverter/src/mediaconverter/MainWindow.java	2006-08-03 06:46:05 UTC (rev 8)
+++ MediaConverter/src/mediaconverter/MainWindow.java	2006-08-15 11:36:02 UTC (rev 9)
@@ -782,11 +782,13 @@
                         
                         String demuxerString="";
                         if (fileString.endsWith(".dvr-ms")) demuxerString="-demuxer 35";
+                        String priorityString="-priority belownormal";
+                        if (osName.equals("Mac OS X") || osName.equals("Linux")) priorityString="";
                         
                         if (vhq) 
-                            cmd[2]+=" \""+ fileString+"\" -priority belownormal "+audioOptions+" "+demuxerString+" -ovc lavc -lavcopts vcodec="+codecString+":dark_mask=0.2:"+aspectString+":keyint=250:vbitrate="+videoSlider.getValue()+":trell=yes:v4mv=yes:vpass=1 -vf "+cropString+"scale="+selectedResolution+colorEnhancerString+"  -idx -ffourcc DIVX "+subtitlestring+" "+fpsString+" "+previewString+" -o "+targetfile;
+                            cmd[2]+=" \""+ fileString+"\" "+priorityString+" "+audioOptions+" "+demuxerString+" -ovc lavc -lavcopts vcodec="+codecString+":dark_mask=0.2:"+aspectString+":keyint=250:vbitrate="+videoSlider.getValue()+":trell=yes:v4mv=yes:vpass=1 -vf "+cropString+"scale="+selectedResolution+colorEnhancerString+"  -idx -ffourcc DIVX "+subtitlestring+" "+fpsString+" "+previewString+" -o "+targetfile;
                         else 
-                            cmd[2]+=" \""+ fileString+"\" -priority belownormal "+audioOptions+" "+demuxerString+" -ovc lavc -lavcopts vcodec="+codecString+":"+aspectString+":vbitrate="+videoSlider.getValue()+" -vf "+cropString+"scale="+selectedResolution+colorEnhancerString+" -idx -ffourcc DIVX "+subtitlestring+" "+fpsString+" "+previewString+"  -o "+targetfile;                            
+                            cmd[2]+=" \""+ fileString+"\" "+priorityString+" "+audioOptions+" "+demuxerString+" -ovc lavc -lavcopts vcodec="+codecString+":"+aspectString+":vbitrate="+videoSlider.getValue()+" -vf "+cropString+"scale="+selectedResolution+colorEnhancerString+" -idx -ffourcc DIVX "+subtitlestring+" "+fpsString+" "+previewString+"  -o "+targetfile;                            
                     }
                     
                     



More information about the Mediaconverter-commits mailing list