Package com.avpkit.core.demos
Class DecodeAndCaptureFrames
- java.lang.Object
-
- com.avpkit.core.demos.DecodeAndCaptureFrames
-
public class DecodeAndCaptureFrames extends java.lang.Object
Takes a media container, finds the first video stream, decodes that stream, and then writes video frames at some interval based on the video presentation time stamps.- Author:
- trebor
-
-
Field Summary
Fields Modifier and Type Field Description static longNANO_SECONDS_BETWEEN_FRAMESThe number of nano-seconds between frames.static doubleSECONDS_BETWEEN_FRAMESThe number of seconds between frames.
-
Constructor Summary
Constructors Constructor Description DecodeAndCaptureFrames()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)Takes a media container (file) as the first argument, opens it, reads through the file and captures video frames periodically as specified by SECONDS_BETWEEN_FRAMES.
-
-
-
Field Detail
-
SECONDS_BETWEEN_FRAMES
public static final double SECONDS_BETWEEN_FRAMES
The number of seconds between frames.- See Also:
- Constant Field Values
-
NANO_SECONDS_BETWEEN_FRAMES
public static final long NANO_SECONDS_BETWEEN_FRAMES
The number of nano-seconds between frames.
-
-
Constructor Detail
-
DecodeAndCaptureFrames
public DecodeAndCaptureFrames()
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
Takes a media container (file) as the first argument, opens it, reads through the file and captures video frames periodically as specified by SECONDS_BETWEEN_FRAMES. The frames are written as PNG files into the system's temporary directory.- Parameters:
args- must contain one string which represents a filename
-
-