Class DecodeAndCaptureFrames

  • All Implemented Interfaces:
    IMediaListener

    public class DecodeAndCaptureFrames
    extends MediaListenerAdapter
    Using IMediaReader, takes a media container, finds the first video stream, decodes that stream, and then writes video frames out to a PNG image file every 5 seconds, based on the video presentation timestamps.
    Author:
    aclarke, trebor
    • Constructor Detail

      • DecodeAndCaptureFrames

        public DecodeAndCaptureFrames​(java.lang.String filename)
        Construct a DecodeAndCaptureFrames which reads and captures frames from a video file.
        Parameters:
        filename - the name of the media file to read
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
        Takes a media container (file) as the first argument, opens it and writes some of it's video frames to PNG image files in the temporary directory.
        Parameters:
        args - must contain one string which represents a filename