<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0) on Thu May 01 03:11:05 CEST 2008 -->
<TITLE>
Encoder
</TITLE>

<META NAME="date" CONTENT="2008-05-01">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="Encoder";
    }
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">
<HR>


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../it/sauronsoftware/jave/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Encoder.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../it/sauronsoftware/jave/DefaultFFMPEGLocator.html" title="class in it.sauronsoftware.jave"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../it/sauronsoftware/jave/EncoderException.html" title="class in it.sauronsoftware.jave"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html?it/sauronsoftware/jave/Encoder.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="Encoder.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
it.sauronsoftware.jave</FONT>
<BR>
Class Encoder</H2>
<PRE>
java.lang.Object
  <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>it.sauronsoftware.jave.Encoder</B>
</PRE>
<HR>
<DL>
<DT><PRE>public class <B>Encoder</B><DT>extends java.lang.Object</DL>
</PRE>

<P>
Main class of the package. Instances can encode audio and video streams.
<P>

<P>
<DL>
<DT><B>Author:</B></DT>
  <DD>Carlo Pelliccia</DD>
</DL>
<HR>

<P>

<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../it/sauronsoftware/jave/Encoder.html#Encoder()">Encoder</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;It builds an encoder using a <A HREF="../../../it/sauronsoftware/jave/DefaultFFMPEGLocator.html" title="class in it.sauronsoftware.jave"><CODE>DefaultFFMPEGLocator</CODE></A> instance to
 locate the ffmpeg executable to use.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../it/sauronsoftware/jave/Encoder.html#Encoder(it.sauronsoftware.jave.FFMPEGLocator)">Encoder</A></B>(<A HREF="../../../it/sauronsoftware/jave/FFMPEGLocator.html" title="class in it.sauronsoftware.jave">FFMPEGLocator</A>&nbsp;locator)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;It builds an encoder with a custom <A HREF="../../../it/sauronsoftware/jave/FFMPEGLocator.html" title="class in it.sauronsoftware.jave"><CODE>FFMPEGLocator</CODE></A>.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../it/sauronsoftware/jave/Encoder.html#encode(java.io.File, java.io.File, it.sauronsoftware.jave.EncodingAttributes)">encode</A></B>(java.io.File&nbsp;source,
       java.io.File&nbsp;target,
       <A HREF="../../../it/sauronsoftware/jave/EncodingAttributes.html" title="class in it.sauronsoftware.jave">EncodingAttributes</A>&nbsp;attributes)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Re-encode a multimedia file.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../it/sauronsoftware/jave/Encoder.html#encode(java.io.File, java.io.File, it.sauronsoftware.jave.EncodingAttributes, it.sauronsoftware.jave.EncoderProgressListener)">encode</A></B>(java.io.File&nbsp;source,
       java.io.File&nbsp;target,
       <A HREF="../../../it/sauronsoftware/jave/EncodingAttributes.html" title="class in it.sauronsoftware.jave">EncodingAttributes</A>&nbsp;attributes,
       <A HREF="../../../it/sauronsoftware/jave/EncoderProgressListener.html" title="interface in it.sauronsoftware.jave">EncoderProgressListener</A>&nbsp;listener)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Re-encode a multimedia file.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../it/sauronsoftware/jave/Encoder.html#getAudioDecoders()">getAudioDecoders</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a list with the names of all the audio decoders bundled with the
 ffmpeg distribution in use.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../it/sauronsoftware/jave/Encoder.html#getAudioEncoders()">getAudioEncoders</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a list with the names of all the audio encoders bundled with the
 ffmpeg distribution in use.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../it/sauronsoftware/jave/MultimediaInfo.html" title="class in it.sauronsoftware.jave">MultimediaInfo</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../it/sauronsoftware/jave/Encoder.html#getInfo(java.io.File)">getInfo</A></B>(java.io.File&nbsp;source)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a set informations about a multimedia file, if its formatHandle is
 supported for decoding.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../it/sauronsoftware/jave/Encoder.html#getSupportedDecodingFormats()">getSupportedDecodingFormats</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a list with the names of all the file formats supported at
 decoding time by the underlying ffmpeg distribution.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../it/sauronsoftware/jave/Encoder.html#getSupportedEncodingFormats()">getSupportedEncodingFormats</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a list with the names of all the file formats supported at
 encoding time by the underlying ffmpeg distribution.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../it/sauronsoftware/jave/Encoder.html#getVideoDecoders()">getVideoDecoders</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a list with the names of all the video decoders bundled with the
 ffmpeg distribution in use.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../it/sauronsoftware/jave/Encoder.html#getVideoEncoders()">getVideoEncoders</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a list with the names of all the video encoders bundled with the
 ffmpeg distribution in use.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="Encoder()"><!-- --></A><H3>
Encoder</H3>
<PRE>
public <B>Encoder</B>()</PRE>
<DL>
<DD>It builds an encoder using a <A HREF="../../../it/sauronsoftware/jave/DefaultFFMPEGLocator.html" title="class in it.sauronsoftware.jave"><CODE>DefaultFFMPEGLocator</CODE></A> instance to
 locate the ffmpeg executable to use.
<P>
</DL>
<HR>

<A NAME="Encoder(it.sauronsoftware.jave.FFMPEGLocator)"><!-- --></A><H3>
Encoder</H3>
<PRE>
public <B>Encoder</B>(<A HREF="../../../it/sauronsoftware/jave/FFMPEGLocator.html" title="class in it.sauronsoftware.jave">FFMPEGLocator</A>&nbsp;locator)</PRE>
<DL>
<DD>It builds an encoder with a custom <A HREF="../../../it/sauronsoftware/jave/FFMPEGLocator.html" title="class in it.sauronsoftware.jave"><CODE>FFMPEGLocator</CODE></A>.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>locator</CODE> - The locator picking up the ffmpeg executable used by the
            encoder.</DL>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="getAudioDecoders()"><!-- --></A><H3>
getAudioDecoders</H3>
<PRE>
public java.lang.String[] <B>getAudioDecoders</B>()
                                    throws <A HREF="../../../it/sauronsoftware/jave/EncoderException.html" title="class in it.sauronsoftware.jave">EncoderException</A></PRE>
<DL>
<DD>Returns a list with the names of all the audio decoders bundled with the
 ffmpeg distribution in use. An audio stream can be decoded only if a
 decoder for its formatHandle is available.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>A list with the names of all the included audio decoders.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../it/sauronsoftware/jave/EncoderException.html" title="class in it.sauronsoftware.jave">EncoderException</A></CODE> - If a problem occurs calling the underlying ffmpeg executable.</DL>
</DD>
</DL>
<HR>

<A NAME="getAudioEncoders()"><!-- --></A><H3>
getAudioEncoders</H3>
<PRE>
public java.lang.String[] <B>getAudioEncoders</B>()
                                    throws <A HREF="../../../it/sauronsoftware/jave/EncoderException.html" title="class in it.sauronsoftware.jave">EncoderException</A></PRE>
<DL>
<DD>Returns a list with the names of all the audio encoders bundled with the
 ffmpeg distribution in use. An audio stream can be encoded using one of
 these encoders.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>A list with the names of all the included audio encoders.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../it/sauronsoftware/jave/EncoderException.html" title="class in it.sauronsoftware.jave">EncoderException</A></CODE> - If a problem occurs calling the underlying ffmpeg executable.</DL>
</DD>
</DL>
<HR>

<A NAME="getVideoDecoders()"><!-- --></A><H3>
getVideoDecoders</H3>
<PRE>
public java.lang.String[] <B>getVideoDecoders</B>()
                                    throws <A HREF="../../../it/sauronsoftware/jave/EncoderException.html" title="class in it.sauronsoftware.jave">EncoderException</A></PRE>
<DL>
<DD>Returns a list with the names of all the video decoders bundled with the
 ffmpeg distribution in use. A video stream can be decoded only if a
 decoder for its formatHandle is available.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>A list with the names of all the included video decoders.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../it/sauronsoftware/jave/EncoderException.html" title="class in it.sauronsoftware.jave">EncoderException</A></CODE> - If a problem occurs calling the underlying ffmpeg executable.</DL>
</DD>
</DL>
<HR>

<A NAME="getVideoEncoders()"><!-- --></A><H3>
getVideoEncoders</H3>
<PRE>
public java.lang.String[] <B>getVideoEncoders</B>()
                                    throws <A HREF="../../../it/sauronsoftware/jave/EncoderException.html" title="class in it.sauronsoftware.jave">EncoderException</A></PRE>
<DL>
<DD>Returns a list with the names of all the video encoders bundled with the
 ffmpeg distribution in use. A video stream can be encoded using one of
 these encoders.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>A list with the names of all the included video encoders.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../it/sauronsoftware/jave/EncoderException.html" title="class in it.sauronsoftware.jave">EncoderException</A></CODE> - If a problem occurs calling the underlying ffmpeg executable.</DL>
</DD>
</DL>
<HR>

<A NAME="getSupportedEncodingFormats()"><!-- --></A><H3>
getSupportedEncodingFormats</H3>
<PRE>
public java.lang.String[] <B>getSupportedEncodingFormats</B>()
                                               throws <A HREF="../../../it/sauronsoftware/jave/EncoderException.html" title="class in it.sauronsoftware.jave">EncoderException</A></PRE>
<DL>
<DD>Returns a list with the names of all the file formats supported at
 encoding time by the underlying ffmpeg distribution. A multimedia file
 could be encoded and generated only if the specified formatHandle is in this
 list.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>A list with the names of all the supported file formats at
         encoding time.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../it/sauronsoftware/jave/EncoderException.html" title="class in it.sauronsoftware.jave">EncoderException</A></CODE> - If a problem occurs calling the underlying ffmpeg executable.</DL>
</DD>
</DL>
<HR>

<A NAME="getSupportedDecodingFormats()"><!-- --></A><H3>
getSupportedDecodingFormats</H3>
<PRE>
public java.lang.String[] <B>getSupportedDecodingFormats</B>()
                                               throws <A HREF="../../../it/sauronsoftware/jave/EncoderException.html" title="class in it.sauronsoftware.jave">EncoderException</A></PRE>
<DL>
<DD>Returns a list with the names of all the file formats supported at
 decoding time by the underlying ffmpeg distribution. A multimedia file
 could be open and decoded only if its formatHandle is in this list.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>A list with the names of all the supported file formats at
         decoding time.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../it/sauronsoftware/jave/EncoderException.html" title="class in it.sauronsoftware.jave">EncoderException</A></CODE> - If a problem occurs calling the underlying ffmpeg executable.</DL>
</DD>
</DL>
<HR>

<A NAME="getInfo(java.io.File)"><!-- --></A><H3>
getInfo</H3>
<PRE>
public <A HREF="../../../it/sauronsoftware/jave/MultimediaInfo.html" title="class in it.sauronsoftware.jave">MultimediaInfo</A> <B>getInfo</B>(java.io.File&nbsp;source)
                       throws <A HREF="../../../it/sauronsoftware/jave/InputFormatException.html" title="class in it.sauronsoftware.jave">InputFormatException</A>,
                              <A HREF="../../../it/sauronsoftware/jave/EncoderException.html" title="class in it.sauronsoftware.jave">EncoderException</A></PRE>
<DL>
<DD>Returns a set informations about a multimedia file, if its formatHandle is
 supported for decoding.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>source</CODE> - The source multimedia file.
<DT><B>Returns:</B><DD>A set of informations about the file and its contents.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../it/sauronsoftware/jave/InputFormatException.html" title="class in it.sauronsoftware.jave">InputFormatException</A></CODE> - If the formatHandle of the source file cannot be recognized and
             decoded.
<DD><CODE><A HREF="../../../it/sauronsoftware/jave/EncoderException.html" title="class in it.sauronsoftware.jave">EncoderException</A></CODE> - If a problem occurs calling the underlying ffmpeg executable.</DL>
</DD>
</DL>
<HR>

<A NAME="encode(java.io.File, java.io.File, it.sauronsoftware.jave.EncodingAttributes)"><!-- --></A><H3>
encode</H3>
<PRE>
public void <B>encode</B>(java.io.File&nbsp;source,
                   java.io.File&nbsp;target,
                   <A HREF="../../../it/sauronsoftware/jave/EncodingAttributes.html" title="class in it.sauronsoftware.jave">EncodingAttributes</A>&nbsp;attributes)
            throws java.lang.IllegalArgumentException,
                   <A HREF="../../../it/sauronsoftware/jave/InputFormatException.html" title="class in it.sauronsoftware.jave">InputFormatException</A>,
                   <A HREF="../../../it/sauronsoftware/jave/EncoderException.html" title="class in it.sauronsoftware.jave">EncoderException</A></PRE>
<DL>
<DD>Re-encode a multimedia file.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>source</CODE> - The source multimedia file. It cannot be null. Be sure this
            file can be decoded (see
            <A HREF="../../../it/sauronsoftware/jave/Encoder.html#getSupportedDecodingFormats()"><CODE>getSupportedDecodingFormats()</CODE></A>,
            <A HREF="../../../it/sauronsoftware/jave/Encoder.html#getAudioDecoders()"><CODE>getAudioDecoders()</CODE></A> and
            <A HREF="../../../it/sauronsoftware/jave/Encoder.html#getVideoDecoders()"><CODE>getVideoDecoders()</CODE></A>).<DD><CODE>target</CODE> - The target multimedia re-encoded file. It cannot be null. If
            this file already exists, it will be overwrited.<DD><CODE>attributes</CODE> - A set of attributes for the encoding process.
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE> - If both audio and video parameters are null.
<DD><CODE><A HREF="../../../it/sauronsoftware/jave/InputFormatException.html" title="class in it.sauronsoftware.jave">InputFormatException</A></CODE> - If the source multimedia file cannot be decoded.
<DD><CODE><A HREF="../../../it/sauronsoftware/jave/EncoderException.html" title="class in it.sauronsoftware.jave">EncoderException</A></CODE> - If a problems occurs during the encoding process.</DL>
</DD>
</DL>
<HR>

<A NAME="encode(java.io.File, java.io.File, it.sauronsoftware.jave.EncodingAttributes, it.sauronsoftware.jave.EncoderProgressListener)"><!-- --></A><H3>
encode</H3>
<PRE>
public void <B>encode</B>(java.io.File&nbsp;source,
                   java.io.File&nbsp;target,
                   <A HREF="../../../it/sauronsoftware/jave/EncodingAttributes.html" title="class in it.sauronsoftware.jave">EncodingAttributes</A>&nbsp;attributes,
                   <A HREF="../../../it/sauronsoftware/jave/EncoderProgressListener.html" title="interface in it.sauronsoftware.jave">EncoderProgressListener</A>&nbsp;listener)
            throws java.lang.IllegalArgumentException,
                   <A HREF="../../../it/sauronsoftware/jave/InputFormatException.html" title="class in it.sauronsoftware.jave">InputFormatException</A>,
                   <A HREF="../../../it/sauronsoftware/jave/EncoderException.html" title="class in it.sauronsoftware.jave">EncoderException</A></PRE>
<DL>
<DD>Re-encode a multimedia file.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>source</CODE> - The source multimedia file. It cannot be null. Be sure this
            file can be decoded (see
            <A HREF="../../../it/sauronsoftware/jave/Encoder.html#getSupportedDecodingFormats()"><CODE>getSupportedDecodingFormats()</CODE></A>,
            <A HREF="../../../it/sauronsoftware/jave/Encoder.html#getAudioDecoders()"><CODE>getAudioDecoders()</CODE></A> and
            <A HREF="../../../it/sauronsoftware/jave/Encoder.html#getVideoDecoders()"><CODE>getVideoDecoders()</CODE></A>).<DD><CODE>target</CODE> - The target multimedia re-encoded file. It cannot be null. If
            this file already exists, it will be overwrited.<DD><CODE>attributes</CODE> - A set of attributes for the encoding process.<DD><CODE>listener</CODE> - An optional progress listener for the encoding process. It can
            be null.
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE> - If both audio and video parameters are null.
<DD><CODE><A HREF="../../../it/sauronsoftware/jave/InputFormatException.html" title="class in it.sauronsoftware.jave">InputFormatException</A></CODE> - If the source multimedia file cannot be decoded.
<DD><CODE><A HREF="../../../it/sauronsoftware/jave/EncoderException.html" title="class in it.sauronsoftware.jave">EncoderException</A></CODE> - If a problems occurs during the encoding process.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../it/sauronsoftware/jave/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Encoder.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../it/sauronsoftware/jave/DefaultFFMPEGLocator.html" title="class in it.sauronsoftware.jave"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../it/sauronsoftware/jave/EncoderException.html" title="class in it.sauronsoftware.jave"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html?it/sauronsoftware/jave/Encoder.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="Encoder.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>