net.luniks.jtvd.backend
Class TitleMenuCommands

java.lang.Object
  extended bynet.luniks.jtvd.backend.TitleMenuCommands

public class TitleMenuCommands
extends java.lang.Object

Class with some static methods returning command lines used for creating the title menu


Field Summary
static int ASPECT_16TO9
           
static int ASPECT_4TO3
           
static int NORM_NTSC
           
static int NORM_PALSECAM
           
 
Constructor Summary
TitleMenuCommands()
           
 
Method Summary
static java.lang.String[] createBlankMP2(java.io.File mp2File, float length)
          Returns the command to create a blank MP2 file
static java.lang.String[] createMPEG2Video(java.io.File backgroundFile, java.io.File mpeg2File, float length, int aspect, int norm)
          Returns the command to create an MPEG2 video from a PNG image
static java.lang.String[] encWAVtoMP2(java.io.File wavFile, java.io.File mp2File)
          Returns the command to encode a WAV file to MP2
static java.lang.String[] mplex(java.io.File mpeg2File, java.io.File videoFile, java.io.File audioFile)
          Returns the command to multiplex an MPEG2 stream and an audio stream
static java.lang.String[] spumux(java.io.File mpeg2File, java.io.File menuFile, java.io.File spuconfFile)
          Returns the command to add subtitles to an MPEG2 stream to create a menu
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ASPECT_4TO3

public static final int ASPECT_4TO3
See Also:
Constant Field Values

ASPECT_16TO9

public static final int ASPECT_16TO9
See Also:
Constant Field Values

NORM_PALSECAM

public static final int NORM_PALSECAM
See Also:
Constant Field Values

NORM_NTSC

public static final int NORM_NTSC
See Also:
Constant Field Values
Constructor Detail

TitleMenuCommands

public TitleMenuCommands()
Method Detail

createBlankMP2

public static java.lang.String[] createBlankMP2(java.io.File mp2File,
                                                float length)
                                         throws BackendException,
                                                JTVDException
Returns the command to create a blank MP2 file

Parameters:
mp2File - the resulting MP2 file
length - the length the MP2 file should have in seconds
Returns:
command to create a blank MP2 file
Throws:
BackendException
JTVDException

encWAVtoMP2

public static java.lang.String[] encWAVtoMP2(java.io.File wavFile,
                                             java.io.File mp2File)
                                      throws BackendException,
                                             JTVDException
Returns the command to encode a WAV file to MP2

Parameters:
wavFile - the WAV file to be encoded
mp2File - the resulting MP2 file
Returns:
command to encode a WAV file to MP2
Throws:
BackendException
JTVDException

createMPEG2Video

public static java.lang.String[] createMPEG2Video(java.io.File backgroundFile,
                                                  java.io.File mpeg2File,
                                                  float length,
                                                  int aspect,
                                                  int norm)
                                           throws BackendException,
                                                  JTVDException
Returns the command to create an MPEG2 video from a PNG image

Parameters:
backgroundFile - the PNG image used as source
mpeg2File - the resulting MPEG2 file
length - the length the video should have in seconds
aspect - the aspect ratio the video should have
norm - the video norm the video should have
Returns:
command to encode an MPEG2 video from a PNG image
Throws:
BackendException
JTVDException

mplex

public static java.lang.String[] mplex(java.io.File mpeg2File,
                                       java.io.File videoFile,
                                       java.io.File audioFile)
                                throws BackendException,
                                       JTVDException
Returns the command to multiplex an MPEG2 stream and an audio stream

Parameters:
mpeg2File - the resulting MPEG2 program stream
videoFile - the MPEG2 video stream
audioFile - the audio stream
Returns:
command to multiplex an MPEG2 stream and an audio stream
Throws:
BackendException
JTVDException

spumux

public static java.lang.String[] spumux(java.io.File mpeg2File,
                                        java.io.File menuFile,
                                        java.io.File spuconfFile)
                                 throws BackendException,
                                        JTVDException
Returns the command to add subtitles to an MPEG2 stream to create a menu

Parameters:
mpeg2File - the MPEG2 program stream
menuFile - the menu, video with subtitles
spuconfFile - spumux's config file
Returns:
command to add subtitles to an MPEG2 stream
Throws:
BackendException
JTVDException


Copyright (c) 2004, 2005 Torsten Römer, dode@luniks.net