Class 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
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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