Form1 Form1 0 0 562 511 Form1 GroupBox2 20 120 270 170 Video Label11_2 10 50 80 20 Resolucion: Label11 10 110 80 20 Frame Rate: Label11_2_4 10 20 80 20 Codec: Label11_2_3 10 80 80 20 Bitrate: Label11_2_2 10 140 80 20 Quant Type: h263 Video_Quant_Type 100 140 160 20 20 15 Frame_Rate 100 110 160 20 600 450 300 Video_Bitrate 100 80 160 20 640x480 320x240 224x176 Resolucion 100 50 160 20 xvid Video_Codec 100 20 160 20 StatusBar 20 470 520 24 3 5 0 0 32767 32767 GroupBox1 20 20 270 80 Files Label10 10 50 50 20 Output: Label9 10 20 50 20 Input: Input_File 60 20 200 21 @Input_File.setText( @Input.openfile(@exec("pwd"), *.*, Select Input File...) ) @Title Title 60 50 200 21 @Title.setText( @String.mid( @Input_File.text, @expr(@String.findRev(@Input_File.text, "/")+1), @expr(@String.findRev(@Input_File.text, ".") - @String.findRev(@Input_File.text, "/") -1 ) ) ) Cleanup 290 100 32 32 @GroupBox1.setEnabled(true) @GroupBox2.setEnabled(true) @GroupBox3.setEnabled(true) @Konsole.cancel @Konsole.clear @Ready.setVisible(true) @StatusBar.setText("Ready.") Exit 320 71 221 30 E&xit konsole true 320 130 220 320 mencoder "@Input_File.text" -ofps @Frame_Rate.text -vf-add scale=@Resolucion.text -vf-add expand=@Resolucion.text:-1:-1:1 -srate @Sample_Rate.text -ovc @Video_Codec.text -xvidencopts bitrate=@Video_Bitrate.text:max_bframes=0:quant_type=@Video_Quant_Type.text -oac @Audio_Codec.text -lavcopts acodec=@Audio_Format.text:abitrate=@Audio_Bitrate.text -o "@global(OUTFILE)" && \ echo "Encoding: Done" GroupBox3 20 310 270 140 Audio 196 128 96 64 Audio_Bitrate 100 80 160 20 Label11_2_3_2_3 10 110 85 20 Sample Rate: Label11_2_3_2 10 80 80 20 Bitrate: Label11_2_3_2_2 10 50 80 20 Formato: Label11_2_4_2 10 20 80 20 Codec: 44100 Sample_Rate 100 110 160 20 mp2 Audio_Format 100 50 160 20 lavc Audio_Codec 100 20 160 20 Ready 320 30 220 30 Ready! @setGlobal(OUTFILE, "") @setGlobal(OUTFILE, @Input.savefile( @String.left(@Input_File.text, @String.findRev(@Input_File.text,"/"))/@Title.text, *.avi, Save Video As...) ) @if( !@String.isEmpty(@global(OUTFILE)) ) @GroupBox1.setEnabled(false) @GroupBox2.setEnabled(false) @GroupBox3.setEnabled(false) @Ready.setVisible(false) @StatusBar.setText("Encoding...") @konsole.execute @endif