jmencode
Class VideoTitle

java.lang.Object
  extended by jmencode.VideoTitle

public class VideoTitle
extends java.lang.Object

This class stores all the static variables for the current input video. This data is taken by parsing the Mplayer console output using the -identify switch when the file is opened.


Nested Class Summary
(package private) static class VideoTitle.Audiotrack
           
(package private) static class VideoTitle.Subtrack
           
 
Field Summary
static double actualaspectratio
           
static java.util.Vector audtracks
           
static boolean cropdetectable
           
static int croph
           
static int cropw
           
static int cropx
           
static int cropy
           
static double error
           
static float fps
           
(package private) static int id
           
static double inputDAR
           
static int inputh
           
static int inputw
           
static int notitles
           
(package private) static int numaud
           
(package private) static int numsub
           
static java.util.Vector subtracks
           
static double targetaspectratio
           
static java.lang.String type
           
static int videolength
           
static java.lang.String vidformat
           
 
Constructor Summary
VideoTitle()
          Creates a new instance
 
Method Summary
static void addAudioTrack(int aid, java.lang.String aul, java.lang.String auf)
          Add a new track at index i
 void addAudioTrack(VideoTitle.Audiotrack a)
           
static void findAspectRatio()
          Try to estimate the target aspect ratio from the crop values and original video aspect ratio and also the input DAR
static int getAid(int i)
          Gets the audio track aid value at index i
static java.lang.String getaudFormat(int i)
          Gets the audio track format value at index i
 VideoTitle.Audiotrack getAudioTrack(int i)
          Gets the audio track at index i
static void getscaleError()
          Get error between target aspect ratio and mod 16 value in percent
static void main(java.lang.String[] args)
           
static java.lang.String print()
           
static void resetInfo()
           
static double round(double a, int b)
          rounds a double down to the specified number of decimal places
 void setAudioTrack(int i, int aid, java.lang.String aul, java.lang.String auf)
          Add a new track at index i
 void setAudioTrack(int i, VideoTitle.Audiotrack a)
          Set new data for the audio track at index i
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

static int id

numaud

static int numaud

numsub

static int numsub

notitles

public static int notitles

type

public static java.lang.String type

vidformat

public static java.lang.String vidformat

inputDAR

public static double inputDAR

targetaspectratio

public static double targetaspectratio

actualaspectratio

public static double actualaspectratio

error

public static double error

inputw

public static int inputw

inputh

public static int inputh

cropw

public static int cropw

croph

public static int croph

cropx

public static int cropx

cropy

public static int cropy

videolength

public static int videolength

fps

public static float fps

cropdetectable

public static boolean cropdetectable

audtracks

public static java.util.Vector audtracks

subtracks

public static java.util.Vector subtracks
Constructor Detail

VideoTitle

public VideoTitle()
Creates a new instance

Method Detail

addAudioTrack

public void addAudioTrack(VideoTitle.Audiotrack a)

addAudioTrack

public static void addAudioTrack(int aid,
                                 java.lang.String aul,
                                 java.lang.String auf)
Add a new track at index i


setAudioTrack

public void setAudioTrack(int i,
                          VideoTitle.Audiotrack a)
Set new data for the audio track at index i


setAudioTrack

public void setAudioTrack(int i,
                          int aid,
                          java.lang.String aul,
                          java.lang.String auf)
Add a new track at index i


getAudioTrack

public VideoTitle.Audiotrack getAudioTrack(int i)
Gets the audio track at index i


getAid

public static int getAid(int i)
Gets the audio track aid value at index i


getaudFormat

public static java.lang.String getaudFormat(int i)
Gets the audio track format value at index i


print

public static java.lang.String print()

getscaleError

public static void getscaleError()
Get error between target aspect ratio and mod 16 value in percent


resetInfo

public static void resetInfo()

findAspectRatio

public static void findAspectRatio()
Try to estimate the target aspect ratio from the crop values and original video aspect ratio and also the input DAR


round

public static double round(double a,
                           int b)
rounds a double down to the specified number of decimal places


main

public static void main(java.lang.String[] args)