jmencode
Class MainGUI

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by javax.swing.JFrame
                      extended by jmencode.MainGUI
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

public class MainGUI
extends javax.swing.JFrame

This is a GUI for setting Mencoder parameters in order to encode and mux a video input. The main controls are displayed in a tabbed panel, with a preview of the commands to be run in another jpanel below this.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Nested classes/interfaces inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  javax.swing.JMenuItem aboutMenuItem
           
private  javax.swing.JLabel actualaspectlabel
           
 java.lang.String args
           
private  javax.swing.JTextField argsfield
           
private  javax.swing.JLabel aspecterrorLabel
           
private  javax.swing.JComboBox aspectratiofield
           
private  javax.swing.JComboBox audbitrateComboBox
           
private  javax.swing.JComboBox audcodecfield
           
 java.lang.String audioargs
           
private  javax.swing.JSpinner audQualityField
           
private  javax.swing.JComboBox audtracknumField
           
private  javax.swing.JButton autoScaleButton
           
(package private) static BitrateCalcForm bcalcform
           
private  javax.swing.JMenuItem bitratecalcMenuItem
           
private  javax.swing.JTextField bitratefield
           
private  javax.swing.JLabel bitrateLabel
           
private  javax.swing.JLabel BitrateLabel
           
private  javax.swing.ButtonGroup buttonGroup1
           
private  javax.swing.ButtonGroup buttonGroup2
           
private  javax.swing.ButtonGroup buttonGroup3
           
private  javax.swing.ButtonGroup buttonGroup4
           
private  javax.swing.JButton cancelButton
           
private  javax.swing.JButton CancelButton
           
private  javax.swing.JComboBox codecfield
           
 java.lang.String command1
           
 java.lang.String command2
           
private  javax.swing.JTextArea commanddisplayarea
           
private  javax.swing.JDialog confirmDialog
           
private  javax.swing.JButton confirmokButton
           
private  javax.swing.JRadioButton constantbitrateButton
           
private  javax.swing.JComboBox containertypeComboBox
           
private static javax.swing.JCheckBox cropCheckBox
           
private  javax.swing.JButton cropdetectButton
           
private  javax.swing.JDialog cropfailedDialog
           
private  javax.swing.JButton cropfaileddialogOK
           
private static javax.swing.JSpinner crophSpinner
           
private static javax.swing.JSpinner cropwSpinner
           
private static javax.swing.JSpinner cropxSpinner
           
private static javax.swing.JSpinner cropySpinner
           
private  javax.swing.JTextField discinputField
           
private  javax.swing.JComboBox dvdtitleField
           
private  ExecProgram executor
           
 java.lang.String extension
           
private  javax.swing.JButton extractasWAVButton
           
private  javax.swing.JButton extractAudioButton
           
 java.lang.String extractcomm
           
private  javax.swing.JTextField fileinputfield
           
private  javax.swing.JMenu fileMenu
           
private  javax.swing.JLabel fitbitratevalueLabel
           
private  javax.swing.JRadioButton fittoCDButton
           
private  javax.swing.JComboBox fittoSizeComboBox
           
 java.lang.String FOURCC
           
private  javax.swing.JComboBox fourccfield
           
private  javax.swing.JButton framebackButton
           
private  javax.swing.JButton frameforwardButton
           
private  javax.swing.JButton getdiscpathbutton
           
private  javax.swing.JTextField getdiscpathField
           
private  javax.swing.JButton getinputfilebutton
           
private  javax.swing.JButton getoutputfilebutton
           
private  javax.swing.JButton GoButton
           
 java.lang.String input
           
private  javax.swing.JComboBox inputDARfield
           
private  javax.swing.JButton jButton1
           
private  javax.swing.JButton jButton2
           
private  javax.swing.JLabel jLabel1
           
private  javax.swing.JLabel jLabel10
           
private  javax.swing.JLabel jLabel11
           
private  javax.swing.JLabel jLabel12
           
private  javax.swing.JLabel jLabel13
           
private  javax.swing.JLabel jLabel14
           
private  javax.swing.JLabel jLabel15
           
private  javax.swing.JLabel jLabel16
           
private  javax.swing.JLabel jLabel17
           
private  javax.swing.JLabel jLabel18
           
private  javax.swing.JLabel jLabel19
           
private  javax.swing.JLabel jLabel2
           
private  javax.swing.JLabel jLabel20
           
private  javax.swing.JLabel jLabel21
           
private  javax.swing.JLabel jLabel22
           
private  javax.swing.JLabel jLabel23
           
private  javax.swing.JLabel jLabel24
           
private  javax.swing.JLabel jLabel25
           
private  javax.swing.JLabel jLabel26
           
private  javax.swing.JLabel jLabel27
           
private  javax.swing.JLabel jLabel3
           
private  javax.swing.JLabel jLabel31
           
private  javax.swing.JLabel jLabel4
           
private  javax.swing.JLabel jLabel5
           
private  javax.swing.JLabel jLabel6
           
private  javax.swing.JLabel jLabel7
           
private  javax.swing.JLabel jLabel8
           
private  javax.swing.JLabel jLabel9
           
private  javax.swing.JMenu jMenu1
           
private  javax.swing.JMenuBar jMenuBar1
           
private  javax.swing.JPanel jPanel1
           
private  javax.swing.JPanel jPanel10
           
private  javax.swing.JPanel jPanel11
           
private  javax.swing.JPanel jPanel12
           
private  javax.swing.JPanel jPanel2
           
private  javax.swing.JPanel jPanel3
           
private  javax.swing.JPanel jPanel4
           
private  javax.swing.JPanel jPanel5
           
private  javax.swing.JPanel jPanel6
           
private  javax.swing.JPanel jPanel7
           
private  javax.swing.JPanel jPanel8
           
private  javax.swing.JPanel jPanel9
           
private  javax.swing.JScrollPane jScrollPane1
           
private  javax.swing.JSeparator jSeparator1
           
private  javax.swing.JSeparator jSeparator2
           
private  javax.swing.JSeparator jSeparator3
           
private  javax.swing.JTabbedPane jTabbedPane1
           
(package private) static javax.swing.JFrame lnfframe
           
(package private) static LogPanel log
           
(package private) static MplayerController mplayercontrol
           
private  javax.swing.JMenuItem MuxerMenuItem
           
private  MuxerForm muxerpanel
           
static MuxerForm muxpanel
           
private  javax.swing.JComboBox noframesComboBox
           
private  javax.swing.JRadioButton onePassButton
           
private  javax.swing.JButton openprevwindowButton
           
 java.lang.String output
           
private  javax.swing.JTextField outputfield
           
 java.lang.String path
           
private  javax.swing.JButton playagainButton
           
private  javax.swing.JMenuItem playmediaMenuItem
           
private  javax.swing.JButton previewCurrentTrackButton
           
private  ImgPreviewPanel previewPanel
           
private  ImgPreviewPanel previewPanel1
           
private  javax.swing.JButton previewVideoButton
           
(package private) static RescaleOptionsForm prevsetupform
           
static javax.swing.JProgressBar procProgressBar
           
static javax.swing.JLabel progresslabel
           
private  javax.swing.JLabel QualityLabel
           
private  javax.swing.JMenuItem quitMenuItem
           
private  javax.swing.JButton refreshprevButton
           
private  javax.swing.JButton rescaleOptionsButton
           
private  javax.swing.JButton resetsizeButton
           
private  javax.swing.JCheckBox resizeCheckBox
           
private  javax.swing.JSpinner ScaleHeightSpinner
           
private  javax.swing.JComboBox scalequalityfield
           
private  javax.swing.JSpinner ScaleWidthSpinner
           
private  javax.swing.JLabel seglengthLabel
           
private  javax.swing.JTextField segmentlengthfield
           
private  javax.swing.JCheckBox selecttimeCheckBox
           
private  javax.swing.JRadioButton setDiscInputButton
           
private  javax.swing.JRadioButton setfileInputButton
           
private  javax.swing.JMenuItem setLNFMenuItem
           
private  javax.swing.JMenuItem settingsMenuItem
           
(package private) static SettingsForm setupform
           
(package private)  java.awt.Font smallFont
           
private static java.lang.String sp
           
private  javax.swing.JLabel startLabel
           
private  javax.swing.JSpinner starttimeSpinner
           
private  javax.swing.JLabel targetaspectlabel
           
(package private)  java.awt.Font theMainFont
           
private  javax.swing.JMenu toolsMenu
           
private  javax.swing.JRadioButton twoPassButton
           
private  javax.swing.JCheckBox unsharpBox
           
private  javax.swing.JCheckBox useBframesCheckBox
           
private  javax.swing.JSpinner useBframesSpinner
           
private  javax.swing.JCheckBox usevolGainCheckBox
           
 java.lang.String videoargs
           
private  VideoInfoForm videoInfoPanel
           
private  javax.swing.JSlider vidpreviewSlider
           
private  javax.swing.JLabel vidqualityLabel
           
private  javax.swing.JMenuItem viewlogmenuItem
           
private  javax.swing.JComboBox volgainComboBox
           
private  SwingWorker worker
           
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
MainGUI()
          Creates new form
 
Method Summary
private  void aboutMenuItemActionPerformed(java.awt.event.ActionEvent evt)
           
private  void argsfieldActionPerformed(java.awt.event.ActionEvent evt)
           
private  void aspectratiofieldActionPerformed(java.awt.event.ActionEvent evt)
           
private  void audbitrateComboBoxActionPerformed(java.awt.event.ActionEvent evt)
           
private  void audcodecfieldActionPerformed(java.awt.event.ActionEvent evt)
           
private  void audQualityFieldStateChanged(javax.swing.event.ChangeEvent evt)
           
private  void audtracknumFieldActionPerformed(java.awt.event.ActionEvent evt)
          Get the audio track to encode from the videotitle aid value using the combobox list as an index to the track vector
private  void autoScaleButtonActionPerformed(java.awt.event.ActionEvent evt)
           
private  void bitratecalcMenuItemActionPerformed(java.awt.event.ActionEvent evt)
           
private  void bitratefieldActionPerformed(java.awt.event.ActionEvent evt)
           
private  void bitratefieldFocusLost(java.awt.event.FocusEvent evt)
           
private  void cancelButtonActionPerformed(java.awt.event.ActionEvent evt)
           
private  void CancelButtonActionPerformed(java.awt.event.ActionEvent evt)
           
private  void codecfieldActionPerformed(java.awt.event.ActionEvent evt)
           
private  void confirmokButtonActionPerformed(java.awt.event.ActionEvent evt)
           
private  void constantbitrateButtonActionPerformed(java.awt.event.ActionEvent evt)
           
private  void containertypeComboBoxActionPerformed(java.awt.event.ActionEvent evt)
           
protected static javax.swing.ImageIcon createIcon(java.lang.String imageName)
           
private  void cropCheckBoxActionPerformed(java.awt.event.ActionEvent evt)
           
private  void cropdetectButtonActionPerformed(java.awt.event.ActionEvent evt)
           
private  void cropfaileddialogOKActionPerformed(java.awt.event.ActionEvent evt)
           
private  void crophSpinnerStateChanged(javax.swing.event.ChangeEvent evt)
           
private  void cropwSpinnerStateChanged(javax.swing.event.ChangeEvent evt)
           
private  void cropxSpinnerStateChanged(javax.swing.event.ChangeEvent evt)
           
private  void cropySpinnerStateChanged(javax.swing.event.ChangeEvent evt)
           
private  void doaudioArgs(int pass)
          Generates arguments for mencoder audio extraction
 void doEncode()
          Executes encoding commands in a Swingworker object
private  void dovideoArgs(int pass)
          Build encode command for video, based on pass and whether it is for avi or mp4/mkv muxing
private  void dvdtitleFieldActionPerformed(java.awt.event.ActionEvent evt)
           
private  void extractasWAVButtonActionPerformed(java.awt.event.ActionEvent evt)
           
private  void extractAudio(java.lang.String option)
           
private  void extractAudioButtonActionPerformed(java.awt.event.ActionEvent evt)
           
private  void fileinputfieldActionPerformed(java.awt.event.ActionEvent evt)
           
private  void fittoCDButtonActionPerformed(java.awt.event.ActionEvent evt)
           
private  void fittoSizeComboBoxActionPerformed(java.awt.event.ActionEvent evt)
           
private  void fourccfieldActionPerformed(java.awt.event.ActionEvent evt)
           
private  void framebackButtonActionPerformed(java.awt.event.ActionEvent evt)
           
private  void frameforwardButtonActionPerformed(java.awt.event.ActionEvent evt)
           
private  void getdiscpathbuttonActionPerformed(java.awt.event.ActionEvent evt)
           
private  void getdiscpathFieldActionPerformed(java.awt.event.ActionEvent evt)
           
private  void getinputfilebuttonActionPerformed(java.awt.event.ActionEvent evt)
           
private  void getoutputfilebuttonActionPerformed(java.awt.event.ActionEvent evt)
           
private  void getVideoInfo(boolean identify, boolean getaspect, boolean cropdetect)
           
private  void GoButtonActionPerformed(java.awt.event.ActionEvent evt)
           
private  void initComponents()
          This method is called from within the constructor to initialize the form.
private  void inputDARfieldActionPerformed(java.awt.event.ActionEvent evt)
           
private  void jButton1ActionPerformed(java.awt.event.ActionEvent evt)
           
private  void jButton2ActionPerformed(java.awt.event.ActionEvent evt)
           
static void main(java.lang.String[] args)
           
private  java.lang.String makePreviewClip(java.lang.String option)
          encode a small very sample either resized and cropped
private  void MuxerMenuItemActionPerformed(java.awt.event.ActionEvent evt)
           
private  void noframesComboBoxActionPerformed(java.awt.event.ActionEvent evt)
           
private  void onePassButtonActionPerformed(java.awt.event.ActionEvent evt)
           
private  void openprevwindowButtonActionPerformed(java.awt.event.ActionEvent evt)
           
private  void outputfieldActionPerformed(java.awt.event.ActionEvent evt)
           
private  void outputfieldKeyReleased(java.awt.event.KeyEvent evt)
           
private  void playagainButtonActionPerformed(java.awt.event.ActionEvent evt)
           
private  void playmediaMenuItemActionPerformed(java.awt.event.ActionEvent evt)
           
private  void previewCurrentTrackButtonActionPerformed(java.awt.event.ActionEvent evt)
           
 void previewVideo(java.lang.String choice, java.lang.String type)
          creates the commands required to play current preview current input settings
private  void previewVideoButtonActionPerformed(java.awt.event.ActionEvent evt)
           
protected  void quit()
           
private  void quitMenuItemActionPerformed(java.awt.event.ActionEvent evt)
           
private  void refreshprevButtonActionPerformed(java.awt.event.ActionEvent evt)
           
private  void rescaleOptionsButtonActionPerformed(java.awt.event.ActionEvent evt)
           
private  void resetComponents()
          Reset relevant gui widgets when new video is loaded
static void resetCrop()
           
private  void resetsizeButtonActionPerformed(java.awt.event.ActionEvent evt)
           
private  void resetvidSlider()
          Reset the movie preview slider to zero
private  void resizeCheckBoxActionPerformed(java.awt.event.ActionEvent evt)
           
private  void ScaleHeightSpinnerStateChanged(javax.swing.event.ChangeEvent evt)
          only do this if mod 16 is false
private  void scalequalityfieldActionPerformed(java.awt.event.ActionEvent evt)
           
private  void ScaleWidthSpinnerStateChanged(javax.swing.event.ChangeEvent evt)
           
private  void segmentlengthfieldActionPerformed(java.awt.event.ActionEvent evt)
           
private  void segmentlengthfieldFocusLost(java.awt.event.FocusEvent evt)
           
private  void selecttimeCheckBoxActionPerformed(java.awt.event.ActionEvent evt)
           
private  void setCropTrue()
           
private  void setDiscInputButtonActionPerformed(java.awt.event.ActionEvent evt)
           
private  void setDiscInputButtonMouseReleased(java.awt.event.MouseEvent evt)
           
private  void setfileInputButtonActionPerformed(java.awt.event.ActionEvent evt)
           
private  void setfileInputButtonMouseReleased(java.awt.event.MouseEvent evt)
           
private  void setLNFMenuItemActionPerformed(java.awt.event.ActionEvent evt)
           
private  void setscalevidSlider()
          Rescale the slider range to reflect the new video length
private  void settingsMenuItemActionPerformed(java.awt.event.ActionEvent evt)
           
private  void setvidSlider(int value)
           
private  void starttimeSpinnerStateChanged(javax.swing.event.ChangeEvent evt)
           
private  void twoPassButtonActionPerformed(java.awt.event.ActionEvent evt)
           
private  void unsharpBoxActionPerformed(java.awt.event.ActionEvent evt)
           
 void update()
          Updates command line and GUI components when alterations made
private  void updateCommand()
           
private  void updateCommandDisplay()
          updates command display text area
private  void updateComponents()
          Updates GUI components after certain command line and user input changes
static void updateCrop()
           
private  void updatefromArgsField()
           
private  void updateQualityLabel()
           
private  void usevolGainCheckBoxActionPerformed(java.awt.event.ActionEvent evt)
           
private  void vidpreviewSliderMouseReleased(java.awt.event.MouseEvent evt)
           
private  void viewlogmenuItemActionPerformed(java.awt.event.ActionEvent evt)
           
private  void volgainComboBoxActionPerformed(java.awt.event.ActionEvent evt)
           
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
 
Methods inherited from class java.awt.Frame
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setVisible, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

executor

private ExecProgram executor

muxpanel

public static MuxerForm muxpanel

path

public java.lang.String path

args

public java.lang.String args

audioargs

public java.lang.String audioargs

videoargs

public java.lang.String videoargs

input

public java.lang.String input

output

public java.lang.String output

extractcomm

public java.lang.String extractcomm

command1

public java.lang.String command1

command2

public java.lang.String command2

extension

public java.lang.String extension

FOURCC

public java.lang.String FOURCC

sp

private static final java.lang.String sp
See Also:
Constant Field Values

worker

private SwingWorker worker

theMainFont

java.awt.Font theMainFont

smallFont

java.awt.Font smallFont

lnfframe

static javax.swing.JFrame lnfframe

log

static LogPanel log

setupform

static SettingsForm setupform

bcalcform

static BitrateCalcForm bcalcform

prevsetupform

static RescaleOptionsForm prevsetupform

mplayercontrol

static MplayerController mplayercontrol

BitrateLabel

private javax.swing.JLabel BitrateLabel

CancelButton

private javax.swing.JButton CancelButton

GoButton

private javax.swing.JButton GoButton

MuxerMenuItem

private javax.swing.JMenuItem MuxerMenuItem

QualityLabel

private javax.swing.JLabel QualityLabel

ScaleHeightSpinner

private javax.swing.JSpinner ScaleHeightSpinner

ScaleWidthSpinner

private javax.swing.JSpinner ScaleWidthSpinner

aboutMenuItem

private javax.swing.JMenuItem aboutMenuItem

actualaspectlabel

private javax.swing.JLabel actualaspectlabel

argsfield

private javax.swing.JTextField argsfield

aspecterrorLabel

private javax.swing.JLabel aspecterrorLabel

aspectratiofield

private javax.swing.JComboBox aspectratiofield

audQualityField

private javax.swing.JSpinner audQualityField

audbitrateComboBox

private javax.swing.JComboBox audbitrateComboBox

audcodecfield

private javax.swing.JComboBox audcodecfield

audtracknumField

private javax.swing.JComboBox audtracknumField

autoScaleButton

private javax.swing.JButton autoScaleButton

bitrateLabel

private javax.swing.JLabel bitrateLabel

bitratecalcMenuItem

private javax.swing.JMenuItem bitratecalcMenuItem

bitratefield

private javax.swing.JTextField bitratefield

buttonGroup1

private javax.swing.ButtonGroup buttonGroup1

buttonGroup2

private javax.swing.ButtonGroup buttonGroup2

buttonGroup3

private javax.swing.ButtonGroup buttonGroup3

buttonGroup4

private javax.swing.ButtonGroup buttonGroup4

cancelButton

private javax.swing.JButton cancelButton

codecfield

private javax.swing.JComboBox codecfield

commanddisplayarea

private javax.swing.JTextArea commanddisplayarea

confirmDialog

private javax.swing.JDialog confirmDialog

confirmokButton

private javax.swing.JButton confirmokButton

constantbitrateButton

private javax.swing.JRadioButton constantbitrateButton

containertypeComboBox

private javax.swing.JComboBox containertypeComboBox

cropCheckBox

private static javax.swing.JCheckBox cropCheckBox

cropdetectButton

private javax.swing.JButton cropdetectButton

cropfailedDialog

private javax.swing.JDialog cropfailedDialog

cropfaileddialogOK

private javax.swing.JButton cropfaileddialogOK

crophSpinner

private static javax.swing.JSpinner crophSpinner

cropwSpinner

private static javax.swing.JSpinner cropwSpinner

cropxSpinner

private static javax.swing.JSpinner cropxSpinner

cropySpinner

private static javax.swing.JSpinner cropySpinner

discinputField

private javax.swing.JTextField discinputField

dvdtitleField

private javax.swing.JComboBox dvdtitleField

extractAudioButton

private javax.swing.JButton extractAudioButton

extractasWAVButton

private javax.swing.JButton extractasWAVButton

fileMenu

private javax.swing.JMenu fileMenu

fileinputfield

private javax.swing.JTextField fileinputfield

fitbitratevalueLabel

private javax.swing.JLabel fitbitratevalueLabel

fittoCDButton

private javax.swing.JRadioButton fittoCDButton

fittoSizeComboBox

private javax.swing.JComboBox fittoSizeComboBox

fourccfield

private javax.swing.JComboBox fourccfield

framebackButton

private javax.swing.JButton framebackButton

frameforwardButton

private javax.swing.JButton frameforwardButton

getdiscpathField

private javax.swing.JTextField getdiscpathField

getdiscpathbutton

private javax.swing.JButton getdiscpathbutton

getinputfilebutton

private javax.swing.JButton getinputfilebutton

getoutputfilebutton

private javax.swing.JButton getoutputfilebutton

inputDARfield

private javax.swing.JComboBox inputDARfield

jButton1

private javax.swing.JButton jButton1

jButton2

private javax.swing.JButton jButton2

jLabel1

private javax.swing.JLabel jLabel1

jLabel10

private javax.swing.JLabel jLabel10

jLabel11

private javax.swing.JLabel jLabel11

jLabel12

private javax.swing.JLabel jLabel12

jLabel13

private javax.swing.JLabel jLabel13

jLabel14

private javax.swing.JLabel jLabel14

jLabel15

private javax.swing.JLabel jLabel15

jLabel16

private javax.swing.JLabel jLabel16

jLabel17

private javax.swing.JLabel jLabel17

jLabel18

private javax.swing.JLabel jLabel18

jLabel19

private javax.swing.JLabel jLabel19

jLabel2

private javax.swing.JLabel jLabel2

jLabel20

private javax.swing.JLabel jLabel20

jLabel21

private javax.swing.JLabel jLabel21

jLabel22

private javax.swing.JLabel jLabel22

jLabel23

private javax.swing.JLabel jLabel23

jLabel24

private javax.swing.JLabel jLabel24

jLabel25

private javax.swing.JLabel jLabel25

jLabel26

private javax.swing.JLabel jLabel26

jLabel27

private javax.swing.JLabel jLabel27

jLabel3

private javax.swing.JLabel jLabel3

jLabel31

private javax.swing.JLabel jLabel31

jLabel4

private javax.swing.JLabel jLabel4

jLabel5

private javax.swing.JLabel jLabel5

jLabel6

private javax.swing.JLabel jLabel6

jLabel7

private javax.swing.JLabel jLabel7

jLabel8

private javax.swing.JLabel jLabel8

jLabel9

private javax.swing.JLabel jLabel9

jMenu1

private javax.swing.JMenu jMenu1

jMenuBar1

private javax.swing.JMenuBar jMenuBar1

jPanel1

private javax.swing.JPanel jPanel1

jPanel10

private javax.swing.JPanel jPanel10

jPanel11

private javax.swing.JPanel jPanel11

jPanel12

private javax.swing.JPanel jPanel12

jPanel2

private javax.swing.JPanel jPanel2

jPanel3

private javax.swing.JPanel jPanel3

jPanel4

private javax.swing.JPanel jPanel4

jPanel5

private javax.swing.JPanel jPanel5

jPanel6

private javax.swing.JPanel jPanel6

jPanel7

private javax.swing.JPanel jPanel7

jPanel8

private javax.swing.JPanel jPanel8

jPanel9

private javax.swing.JPanel jPanel9

jScrollPane1

private javax.swing.JScrollPane jScrollPane1

jSeparator1

private javax.swing.JSeparator jSeparator1

jSeparator2

private javax.swing.JSeparator jSeparator2

jSeparator3

private javax.swing.JSeparator jSeparator3

jTabbedPane1

private javax.swing.JTabbedPane jTabbedPane1

muxerpanel

private MuxerForm muxerpanel

noframesComboBox

private javax.swing.JComboBox noframesComboBox

onePassButton

private javax.swing.JRadioButton onePassButton

openprevwindowButton

private javax.swing.JButton openprevwindowButton

outputfield

private javax.swing.JTextField outputfield

playagainButton

private javax.swing.JButton playagainButton

playmediaMenuItem

private javax.swing.JMenuItem playmediaMenuItem

previewCurrentTrackButton

private javax.swing.JButton previewCurrentTrackButton

previewPanel

private ImgPreviewPanel previewPanel

previewPanel1

private ImgPreviewPanel previewPanel1

previewVideoButton

private javax.swing.JButton previewVideoButton

procProgressBar

public static javax.swing.JProgressBar procProgressBar

progresslabel

public static javax.swing.JLabel progresslabel

quitMenuItem

private javax.swing.JMenuItem quitMenuItem

refreshprevButton

private javax.swing.JButton refreshprevButton

rescaleOptionsButton

private javax.swing.JButton rescaleOptionsButton

resetsizeButton

private javax.swing.JButton resetsizeButton

resizeCheckBox

private javax.swing.JCheckBox resizeCheckBox

scalequalityfield

private javax.swing.JComboBox scalequalityfield

seglengthLabel

private javax.swing.JLabel seglengthLabel

segmentlengthfield

private javax.swing.JTextField segmentlengthfield

selecttimeCheckBox

private javax.swing.JCheckBox selecttimeCheckBox

setDiscInputButton

private javax.swing.JRadioButton setDiscInputButton

setLNFMenuItem

private javax.swing.JMenuItem setLNFMenuItem

setfileInputButton

private javax.swing.JRadioButton setfileInputButton

settingsMenuItem

private javax.swing.JMenuItem settingsMenuItem

startLabel

private javax.swing.JLabel startLabel

starttimeSpinner

private javax.swing.JSpinner starttimeSpinner

targetaspectlabel

private javax.swing.JLabel targetaspectlabel

toolsMenu

private javax.swing.JMenu toolsMenu

twoPassButton

private javax.swing.JRadioButton twoPassButton

unsharpBox

private javax.swing.JCheckBox unsharpBox

useBframesCheckBox

private javax.swing.JCheckBox useBframesCheckBox

useBframesSpinner

private javax.swing.JSpinner useBframesSpinner

usevolGainCheckBox

private javax.swing.JCheckBox usevolGainCheckBox

videoInfoPanel

private VideoInfoForm videoInfoPanel

vidpreviewSlider

private javax.swing.JSlider vidpreviewSlider

vidqualityLabel

private javax.swing.JLabel vidqualityLabel

viewlogmenuItem

private javax.swing.JMenuItem viewlogmenuItem

volgainComboBox

private javax.swing.JComboBox volgainComboBox
Constructor Detail

MainGUI

public MainGUI()
Creates new form

Method Detail

update

public void update()
Updates command line and GUI components when alterations made


dovideoArgs

private void dovideoArgs(int pass)
Build encode command for video, based on pass and whether it is for avi or mp4/mkv muxing


doaudioArgs

private void doaudioArgs(int pass)
Generates arguments for mencoder audio extraction


updateCommand

private void updateCommand()

updatefromArgsField

private void updatefromArgsField()

updateCommandDisplay

private void updateCommandDisplay()
updates command display text area


updateComponents

private void updateComponents()
Updates GUI components after certain command line and user input changes


resetComponents

private void resetComponents()
Reset relevant gui widgets when new video is loaded


initComponents

private void initComponents()
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.


outputfieldKeyReleased

private void outputfieldKeyReleased(java.awt.event.KeyEvent evt)

setDiscInputButtonMouseReleased

private void setDiscInputButtonMouseReleased(java.awt.event.MouseEvent evt)

setfileInputButtonMouseReleased

private void setfileInputButtonMouseReleased(java.awt.event.MouseEvent evt)

fourccfieldActionPerformed

private void fourccfieldActionPerformed(java.awt.event.ActionEvent evt)

volgainComboBoxActionPerformed

private void volgainComboBoxActionPerformed(java.awt.event.ActionEvent evt)

usevolGainCheckBoxActionPerformed

private void usevolGainCheckBoxActionPerformed(java.awt.event.ActionEvent evt)

unsharpBoxActionPerformed

private void unsharpBoxActionPerformed(java.awt.event.ActionEvent evt)

previewCurrentTrackButtonActionPerformed

private void previewCurrentTrackButtonActionPerformed(java.awt.event.ActionEvent evt)

audtracknumFieldActionPerformed

private void audtracknumFieldActionPerformed(java.awt.event.ActionEvent evt)
Get the audio track to encode from the videotitle aid value using the combobox list as an index to the track vector


cropfaileddialogOKActionPerformed

private void cropfaileddialogOKActionPerformed(java.awt.event.ActionEvent evt)

fittoCDButtonActionPerformed

private void fittoCDButtonActionPerformed(java.awt.event.ActionEvent evt)

constantbitrateButtonActionPerformed

private void constantbitrateButtonActionPerformed(java.awt.event.ActionEvent evt)

dvdtitleFieldActionPerformed

private void dvdtitleFieldActionPerformed(java.awt.event.ActionEvent evt)

setscalevidSlider

private void setscalevidSlider()
Rescale the slider range to reflect the new video length


resetvidSlider

private void resetvidSlider()
Reset the movie preview slider to zero


setvidSlider

private void setvidSlider(int value)

vidpreviewSliderMouseReleased

private void vidpreviewSliderMouseReleased(java.awt.event.MouseEvent evt)

autoScaleButtonActionPerformed

private void autoScaleButtonActionPerformed(java.awt.event.ActionEvent evt)

cancelButtonActionPerformed

private void cancelButtonActionPerformed(java.awt.event.ActionEvent evt)

confirmokButtonActionPerformed

private void confirmokButtonActionPerformed(java.awt.event.ActionEvent evt)

jButton2ActionPerformed

private void jButton2ActionPerformed(java.awt.event.ActionEvent evt)

inputDARfieldActionPerformed

private void inputDARfieldActionPerformed(java.awt.event.ActionEvent evt)

segmentlengthfieldFocusLost

private void segmentlengthfieldFocusLost(java.awt.event.FocusEvent evt)

segmentlengthfieldActionPerformed

private void segmentlengthfieldActionPerformed(java.awt.event.ActionEvent evt)

updateQualityLabel

private void updateQualityLabel()

fittoSizeComboBoxActionPerformed

private void fittoSizeComboBoxActionPerformed(java.awt.event.ActionEvent evt)

resetsizeButtonActionPerformed

private void resetsizeButtonActionPerformed(java.awt.event.ActionEvent evt)

aspectratiofieldActionPerformed

private void aspectratiofieldActionPerformed(java.awt.event.ActionEvent evt)

playagainButtonActionPerformed

private void playagainButtonActionPerformed(java.awt.event.ActionEvent evt)

noframesComboBoxActionPerformed

private void noframesComboBoxActionPerformed(java.awt.event.ActionEvent evt)

frameforwardButtonActionPerformed

private void frameforwardButtonActionPerformed(java.awt.event.ActionEvent evt)

framebackButtonActionPerformed

private void framebackButtonActionPerformed(java.awt.event.ActionEvent evt)

rescaleOptionsButtonActionPerformed

private void rescaleOptionsButtonActionPerformed(java.awt.event.ActionEvent evt)

cropCheckBoxActionPerformed

private void cropCheckBoxActionPerformed(java.awt.event.ActionEvent evt)

cropySpinnerStateChanged

private void cropySpinnerStateChanged(javax.swing.event.ChangeEvent evt)

cropxSpinnerStateChanged

private void cropxSpinnerStateChanged(javax.swing.event.ChangeEvent evt)

refreshprevButtonActionPerformed

private void refreshprevButtonActionPerformed(java.awt.event.ActionEvent evt)

crophSpinnerStateChanged

private void crophSpinnerStateChanged(javax.swing.event.ChangeEvent evt)

cropwSpinnerStateChanged

private void cropwSpinnerStateChanged(javax.swing.event.ChangeEvent evt)

openprevwindowButtonActionPerformed

private void openprevwindowButtonActionPerformed(java.awt.event.ActionEvent evt)

makePreviewClip

private java.lang.String makePreviewClip(java.lang.String option)
encode a small very sample either resized and cropped


previewVideo

public void previewVideo(java.lang.String choice,
                         java.lang.String type)
creates the commands required to play current preview current input settings


previewVideoButtonActionPerformed

private void previewVideoButtonActionPerformed(java.awt.event.ActionEvent evt)

bitratefieldFocusLost

private void bitratefieldFocusLost(java.awt.event.FocusEvent evt)

audQualityFieldStateChanged

private void audQualityFieldStateChanged(javax.swing.event.ChangeEvent evt)

bitratecalcMenuItemActionPerformed

private void bitratecalcMenuItemActionPerformed(java.awt.event.ActionEvent evt)

jButton1ActionPerformed

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt)

extractAudio

private void extractAudio(java.lang.String option)

extractAudioButtonActionPerformed

private void extractAudioButtonActionPerformed(java.awt.event.ActionEvent evt)

extractasWAVButtonActionPerformed

private void extractasWAVButtonActionPerformed(java.awt.event.ActionEvent evt)

containertypeComboBoxActionPerformed

private void containertypeComboBoxActionPerformed(java.awt.event.ActionEvent evt)

scalequalityfieldActionPerformed

private void scalequalityfieldActionPerformed(java.awt.event.ActionEvent evt)

getoutputfilebuttonActionPerformed

private void getoutputfilebuttonActionPerformed(java.awt.event.ActionEvent evt)

settingsMenuItemActionPerformed

private void settingsMenuItemActionPerformed(java.awt.event.ActionEvent evt)

MuxerMenuItemActionPerformed

private void MuxerMenuItemActionPerformed(java.awt.event.ActionEvent evt)

audbitrateComboBoxActionPerformed

private void audbitrateComboBoxActionPerformed(java.awt.event.ActionEvent evt)

setLNFMenuItemActionPerformed

private void setLNFMenuItemActionPerformed(java.awt.event.ActionEvent evt)

starttimeSpinnerStateChanged

private void starttimeSpinnerStateChanged(javax.swing.event.ChangeEvent evt)

aboutMenuItemActionPerformed

private void aboutMenuItemActionPerformed(java.awt.event.ActionEvent evt)

quitMenuItemActionPerformed

private void quitMenuItemActionPerformed(java.awt.event.ActionEvent evt)

selecttimeCheckBoxActionPerformed

private void selecttimeCheckBoxActionPerformed(java.awt.event.ActionEvent evt)

playmediaMenuItemActionPerformed

private void playmediaMenuItemActionPerformed(java.awt.event.ActionEvent evt)

viewlogmenuItemActionPerformed

private void viewlogmenuItemActionPerformed(java.awt.event.ActionEvent evt)

resetCrop

public static void resetCrop()

updateCrop

public static void updateCrop()

getVideoInfo

private void getVideoInfo(boolean identify,
                          boolean getaspect,
                          boolean cropdetect)

cropdetectButtonActionPerformed

private void cropdetectButtonActionPerformed(java.awt.event.ActionEvent evt)

audcodecfieldActionPerformed

private void audcodecfieldActionPerformed(java.awt.event.ActionEvent evt)

setfileInputButtonActionPerformed

private void setfileInputButtonActionPerformed(java.awt.event.ActionEvent evt)

setDiscInputButtonActionPerformed

private void setDiscInputButtonActionPerformed(java.awt.event.ActionEvent evt)

getdiscpathbuttonActionPerformed

private void getdiscpathbuttonActionPerformed(java.awt.event.ActionEvent evt)

getdiscpathFieldActionPerformed

private void getdiscpathFieldActionPerformed(java.awt.event.ActionEvent evt)

resizeCheckBoxActionPerformed

private void resizeCheckBoxActionPerformed(java.awt.event.ActionEvent evt)

setCropTrue

private void setCropTrue()

ScaleHeightSpinnerStateChanged

private void ScaleHeightSpinnerStateChanged(javax.swing.event.ChangeEvent evt)
only do this if mod 16 is false


ScaleWidthSpinnerStateChanged

private void ScaleWidthSpinnerStateChanged(javax.swing.event.ChangeEvent evt)

twoPassButtonActionPerformed

private void twoPassButtonActionPerformed(java.awt.event.ActionEvent evt)

onePassButtonActionPerformed

private void onePassButtonActionPerformed(java.awt.event.ActionEvent evt)

bitratefieldActionPerformed

private void bitratefieldActionPerformed(java.awt.event.ActionEvent evt)

codecfieldActionPerformed

private void codecfieldActionPerformed(java.awt.event.ActionEvent evt)

doEncode

public void doEncode()
Executes encoding commands in a Swingworker object


GoButtonActionPerformed

private void GoButtonActionPerformed(java.awt.event.ActionEvent evt)

CancelButtonActionPerformed

private void CancelButtonActionPerformed(java.awt.event.ActionEvent evt)

getinputfilebuttonActionPerformed

private void getinputfilebuttonActionPerformed(java.awt.event.ActionEvent evt)

argsfieldActionPerformed

private void argsfieldActionPerformed(java.awt.event.ActionEvent evt)

fileinputfieldActionPerformed

private void fileinputfieldActionPerformed(java.awt.event.ActionEvent evt)

outputfieldActionPerformed

private void outputfieldActionPerformed(java.awt.event.ActionEvent evt)

quit

protected void quit()

createIcon

protected static javax.swing.ImageIcon createIcon(java.lang.String imageName)

main

public static void main(java.lang.String[] args)
Parameters:
args - the path line arguments