Class H264TrackImpl

    • Constructor Detail

      • H264TrackImpl

        public H264TrackImpl​(DataSource dataSource,
                             String lang,
                             long timescale,
                             int frametick)
                      throws IOException
        Creates a new Track object from a raw H264 source (DataSource dataSource1). Whenever the timescale and frametick are set to negative value (e.g. -1) the H264TrackImpl tries to detect the frame rate. Typically values for timescale and frametick are:
        • 23.976 FPS: timescale = 24000; frametick = 1001
        • 25 FPS: timescale = 25; frametick = 1
        • 29.97 FPS: timescale = 30000; frametick = 1001
        • 30 FPS: timescale = 30; frametick = 1
        Parameters:
        dataSource - the source file of the H264 samples
        lang - language of the movie (in doubt: use "eng")
        timescale - number of time units (ticks) in one second
        frametick - number of time units (ticks) that pass while showing exactly one frame
        Throws:
        IOException - in case of problems whiel reading from the DataSource