类 FFmpegSession

    • 构造器详细资料

      • FFmpegSession

        public FFmpegSession​(String[] arguments)
        Builds a new FFmpeg session.
        参数:
        arguments - command arguments
      • FFmpegSession

        public FFmpegSession​(String[] arguments,
                             FFmpegSessionCompleteCallback completeCallback)
        Builds a new FFmpeg session.
        参数:
        arguments - command arguments
        completeCallback - session specific complete callback
      • FFmpegSession

        public FFmpegSession​(String[] arguments,
                             FFmpegSessionCompleteCallback completeCallback,
                             LogCallback logCallback,
                             StatisticsCallback statisticsCallback)
        Builds a new FFmpeg session.
        参数:
        arguments - command arguments
        completeCallback - session specific complete callback
        logCallback - session specific log callback
        statisticsCallback - session specific statistics callback
      • FFmpegSession

        public FFmpegSession​(String[] arguments,
                             FFmpegSessionCompleteCallback completeCallback,
                             LogCallback logCallback,
                             StatisticsCallback statisticsCallback,
                             LogRedirectionStrategy logRedirectionStrategy)
        Builds a new FFmpeg session.
        参数:
        arguments - command arguments
        completeCallback - session specific complete callback
        logCallback - session specific log callback
        statisticsCallback - session specific statistics callback
        logRedirectionStrategy - session specific log redirection strategy
    • 方法详细资料

      • getStatisticsCallback

        public StatisticsCallback getStatisticsCallback()
        Returns the session specific statistics callback.
        返回:
        session specific statistics callback
      • getCompleteCallback

        public FFmpegSessionCompleteCallback getCompleteCallback()
        Returns the session specific complete callback.
        返回:
        session specific complete callback
      • getAllStatistics

        public List<Statistics> getAllStatistics​(int waitTimeout)
        Returns all statistics entries generated for this session. If there are asynchronous messages that are not delivered yet, this method waits for them until the given timeout.
        参数:
        waitTimeout - wait timeout for asynchronous messages in milliseconds
        返回:
        list of statistics entries generated for this session
      • getStatistics

        public List<Statistics> getStatistics()
        Returns all statistics entries delivered for this session. Note that if there are asynchronous messages that are not delivered yet, this method will not wait for them and will return immediately.
        返回:
        list of statistics entries received for this session
      • getLastReceivedStatistics

        public Statistics getLastReceivedStatistics()
        Returns the last received statistics entry.
        返回:
        the last received statistics entry or null if there are not any statistics entries received
      • addStatistics

        public void addStatistics​(Statistics statistics)
        Adds a new statistics entry for this session. It is invoked internally by FFmpegKit library methods. Must not be used by user applications.
        参数:
        statistics - statistics entry
      • isFFmpeg

        public boolean isFFmpeg()
        从接口复制的说明: Session
        Returns whether it is an FFmpeg session or not.
        指定者:
        isFFmpeg 在接口中 Session
        返回:
        true if it is an FFmpeg session, false otherwise
      • isFFprobe

        public boolean isFFprobe()
        从接口复制的说明: Session
        Returns whether it is an FFprobe session or not.
        指定者:
        isFFprobe 在接口中 Session
        返回:
        true if it is an FFprobe session, false otherwise
      • isMediaInformation

        public boolean isMediaInformation()
        从接口复制的说明: Session
        Returns whether it is a MediaInformation session or not.
        指定者:
        isMediaInformation 在接口中 Session
        返回:
        true if it is a MediaInformation session, false otherwise