net.sf.ffmpeg_java.example
Class ConverterExample

java.lang.Object
  extended by net.sf.ffmpeg_java.example.ConverterExample

public class ConverterExample
extends java.lang.Object

ConverterExample - Based on AVCodecSample and OutputExample Converts a video file with the first video and the first audio stream to a new format given by filename extension. Output parameters (width, height, fps, aspect ratio, linesize) are imported from input file and can not be modified yet. Rest is set to standard. There are still many problems. Only successfully tested with MPEG1/2 videos as input and output (without ac3). TODO: the functionality is very restricted. No change of video size, bitrate, ... via command line. AC3 sound is decoded in a wrong way. And the really worst: java crashes at the call "AVFORMAT.av_close_input_file(inFormatCtx);" ... probably not free all pointer?!

Author:
Uwe Mannl

Constructor Summary
ConverterExample()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConverterExample

public ConverterExample()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception