|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcodec.api.FrameGrab
public class FrameGrab
This class is part of JCodec ( www.jcodec.org ) This software is distributed under FreeBSD License Extracts frames from a movie into uncompressed images suitable for processing. Supports going to random points inside of a movie ( seeking ) by frame number of by second. NOTE: Supports only AVC ( H.264 ) in MP4 ( ISO BMF, QuickTime ) at this point.
| Constructor Summary | |
|---|---|
FrameGrab(DemuxerTrack videoTrack,
ContainerAdaptor decoder)
|
|
FrameGrab(SeekableByteChannel in)
|
|
| Method Summary | |
|---|---|
BufferedImage |
getFrame()
Get frame at current position in AWT image |
static BufferedImage |
getFrame(DemuxerTrack vt,
ContainerAdaptor decoder,
double second)
Get a specified frame by second from an already open demuxer track |
static BufferedImage |
getFrame(DemuxerTrack vt,
ContainerAdaptor decoder,
int frameNumber)
Get a specified frame by number from an already open demuxer track |
static BufferedImage |
getFrame(File file,
double second)
Get frame at a specified second as AWT image |
static BufferedImage |
getFrame(File file,
int frameNumber)
Get frame at a specified frame number as AWT image |
static BufferedImage |
getFrame(SeekableByteChannel file,
double second)
Get frame at a specified second as AWT image |
static BufferedImage |
getFrame(SeekableByteChannel file,
int frameNumber)
Get frame at a specified frame number as AWT image |
static BufferedImage |
getFrameSloppy(DemuxerTrack vt,
ContainerAdaptor decoder,
double second)
Get a specified frame by second from an already open demuxer track ( sloppy mode, i.e. |
static BufferedImage |
getFrameSloppy(DemuxerTrack vt,
ContainerAdaptor decoder,
int frameNumber)
Get a specified frame by number from an already open demuxer track ( sloppy mode, i.e. |
Picture |
getNativeFrame()
Get frame at current position in JCodec native image |
static Picture |
getNativeFrame(DemuxerTrack vt,
ContainerAdaptor decoder,
double second)
Get a specified frame by second from an already open demuxer track |
static Picture |
getNativeFrame(DemuxerTrack vt,
ContainerAdaptor decoder,
int frameNumber)
Get a specified frame by number from an already open demuxer track |
static Picture |
getNativeFrame(File file,
double second)
Get frame at a specified second as JCodec image |
static Picture |
getNativeFrame(File file,
int frameNumber)
Get frame at a specified frame number as JCodec image |
static Picture |
getNativeFrame(SeekableByteChannel file,
double second)
Get frame at a specified second as JCodec image |
static Picture |
getNativeFrame(SeekableByteChannel file,
int frameNumber)
Get frame at a specified frame number as JCodec image |
static Picture |
getNativeFrameSloppy(DemuxerTrack vt,
ContainerAdaptor decoder,
double second)
Get a specified frame by second from an already open demuxer track ( sloppy mode, i.e. |
static Picture |
getNativeFrameSloppy(DemuxerTrack vt,
ContainerAdaptor decoder,
int frameNumber)
Get a specified frame by number from an already open demuxer track ( sloppy mode, i.e. |
FrameGrab |
seekToFramePrecise(int frameNumber)
Position frame grabber to a specific frame in a movie. |
FrameGrab |
seekToFrameSloppy(int frameNumber)
Position frame grabber to a specific frame in a movie Performs a sloppy seek, meaning that it may actually not seek to exact frame requested, instead it will seek to the closest key frame NOTE: fast, as it just seeks to the closest previous key frame and doesn't try to decode frames in the middle |
FrameGrab |
seekToSecondPrecise(double second)
Position frame grabber to a specific second in a movie. |
FrameGrab |
seekToSecondSloppy(double second)
Position frame grabber to a specific second in a movie. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FrameGrab(SeekableByteChannel in)
throws IOException,
JCodecException
IOException
JCodecException
public FrameGrab(DemuxerTrack videoTrack,
ContainerAdaptor decoder)
| Method Detail |
|---|
public FrameGrab seekToSecondPrecise(double second)
throws IOException,
JCodecException
second -
IOException
JCodecException
public FrameGrab seekToFramePrecise(int frameNumber)
throws IOException,
JCodecException
frameNumber -
IOException
JCodecException
public FrameGrab seekToSecondSloppy(double second)
throws IOException,
JCodecException
second -
IOException
JCodecException
public FrameGrab seekToFrameSloppy(int frameNumber)
throws IOException,
JCodecException
frameNumber -
IOException
JCodecException
public BufferedImage getFrame()
throws IOException
IOException
public Picture getNativeFrame()
throws IOException
IOException
public static BufferedImage getFrame(File file,
double second)
throws IOException,
JCodecException
file - second -
IOException
JCodecException
public static BufferedImage getFrame(SeekableByteChannel file,
double second)
throws JCodecException,
IOException
file - second -
UnsupportedFormatException
IOException
JCodecException
public static Picture getNativeFrame(File file,
double second)
throws IOException,
JCodecException
file - second -
IOException
JCodecException
public static Picture getNativeFrame(SeekableByteChannel file,
double second)
throws JCodecException,
IOException
file - second -
IOException
JCodecException
public static BufferedImage getFrame(File file,
int frameNumber)
throws IOException,
JCodecException
file - second -
IOException
JCodecException
public static BufferedImage getFrame(SeekableByteChannel file,
int frameNumber)
throws JCodecException,
IOException
file - second -
IOException
JCodecException
public static Picture getNativeFrame(File file,
int frameNumber)
throws IOException,
JCodecException
file - second -
IOException
JCodecException
public static Picture getNativeFrame(SeekableByteChannel file,
int frameNumber)
throws JCodecException,
IOException
file - second -
IOException
JCodecException
public static BufferedImage getFrame(DemuxerTrack vt,
ContainerAdaptor decoder,
int frameNumber)
throws IOException,
JCodecException
vt - decoder - frameNumber -
IOException
JCodecException
public static BufferedImage getFrame(DemuxerTrack vt,
ContainerAdaptor decoder,
double second)
throws IOException,
JCodecException
vt - decoder - frameNumber -
IOException
JCodecException
public static BufferedImage getFrameSloppy(DemuxerTrack vt,
ContainerAdaptor decoder,
int frameNumber)
throws IOException,
JCodecException
vt - decoder - frameNumber -
IOException
JCodecException
public static BufferedImage getFrameSloppy(DemuxerTrack vt,
ContainerAdaptor decoder,
double second)
throws IOException,
JCodecException
vt - decoder - frameNumber -
IOException
JCodecException
public static Picture getNativeFrame(DemuxerTrack vt,
ContainerAdaptor decoder,
int frameNumber)
throws IOException,
JCodecException
vt - decoder - frameNumber -
IOException
JCodecException
public static Picture getNativeFrame(DemuxerTrack vt,
ContainerAdaptor decoder,
double second)
throws IOException,
JCodecException
vt - decoder - frameNumber -
IOException
JCodecException
public static Picture getNativeFrameSloppy(DemuxerTrack vt,
ContainerAdaptor decoder,
int frameNumber)
throws IOException,
JCodecException
vt - decoder - frameNumber -
IOException
JCodecException
public static Picture getNativeFrameSloppy(DemuxerTrack vt,
ContainerAdaptor decoder,
double second)
throws IOException,
JCodecException
vt - decoder - frameNumber -
IOException
JCodecException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||