The time base defaults to {@link #getDefaultTimebase()} and the pixelformat defaults to {@link #getDefaultPixelType()}.
@param inputIndex the index that will be passed to{@link #encodeVideo(int,IVideoPicture)} for this stream @param streamId a format-dependent id for this stream @param width width of video frames @param height height of video frames @throws IllegalArgumentException if inputIndex < 0, the stream id < 0, thecodec is NULL or if the container is already open. @throws IllegalArgumentException if width or height are <= 0 @return <0 on failure; otherwise returns the index of the new stream addedby the writer. @see IContainer @see IStream @see IStreamCoder @see ICodec @see ICodec#guessEncodingCodec(com.xuggle.xuggler.IContainerFormat,String,String,String,com.xuggle.xuggler.ICodec.Type) @throws UnsupportedOperationException if the given codec cannot beused for encoding.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|