src/main/java/org/jcodec/api/FrameGrab.java
public static Picture getFrameAtSec(File file, double second) throws IOException, JCodecException {
        FileChannelWrapper ch = null;
        try {
            ch = NIOUtils.readableChannel(file);
            return createFrameGrab(ch).seekToSecondPrecise(second).getNativeFrame();
        } finally {
            NIOUtils.closeQuietly(ch);
        }
    }
public static Picture getFrameAtSec(File file, double second) throws IOException, JCodecException {
        FileChannelWrapper ch = null;
        try {
            ch = NIOUtils.readableChannel(file);
            return createFrameGrab(ch).seekToSecondPrecise(second).getNativeFrame();
        } finally {
            NIOUtils.closeQuietly(ch);
        }
    }
public static Picture getFrameAtSec ( File file , double second ) throws IOException , JCodecException { FileChannelWrapper ch = null ; try { ch = NIOUtils . readableChannel ( file ) ; return createFrameGrab ( ch ) . seekToSecondPrecise ( second ) . getNativeFrame ( ) ; } finally { NIOUtils . closeQuietly ( ch ) ; } }
Get frame at a specified second as JCodec image

@param file
@param second
@return
@throws IOException
@throws JCodecException
Get frame at a specified second as JCodec image