Class VideoExtractor

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class VideoExtractor
    extends BaseExtractor
    Extracts a video stream frame by frame from a video file
    • Constructor Detail

      • VideoExtractor

        public VideoExtractor​(java.lang.String filename,
                              VideoExtractor.IVideoFrameCallback videoFrameListener)
                       throws java.io.IOException
        Create an instance of the VideoExtractor
        Parameters:
        filename - path to the videofile
        videoFrameListener - next frames and decoding status will be sent here
        Throws:
        java.io.IOException
    • Method Detail

      • hasNextFrame

        public boolean hasNextFrame()
        Is there a video stream
      • extractNextFrame

        public void extractNextFrame()
        Extract the next frame and pass the result to the callback
      • close

        public void close()
        Close the current instance and free resources
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class BaseExtractor