Class AVCVideo

All Implemented Interfaces:
IVideoStreamCodec

public class AVCVideo extends AbstractVideo
Red5 video codec for the AVC (h264) video format. Stores DecoderConfigurationRecord and last keyframe.
Author:
Tiago Jacobs (tiago@imdt.com.br), Paul Gregoire (mondain@gmail.com)
  • Constructor Details

    • AVCVideo

      public AVCVideo()
  • Method Details

    • canDropFrames

      public boolean canDropFrames()
      Check if the codec supports frame dropping.
      Specified by:
      canDropFrames in interface IVideoStreamCodec
      Overrides:
      canDropFrames in class AbstractVideo
      Returns:
      if the codec supports frame dropping.
    • reset

      public void reset()
      Reset the codec to its initial state.
      Specified by:
      reset in interface IVideoStreamCodec
      Overrides:
      reset in class AbstractVideo
    • addData

      public boolean addData(org.apache.mina.core.buffer.IoBuffer data, int timestamp)
      Update the state of the codec with the passed data.
      Specified by:
      addData in interface IVideoStreamCodec
      Overrides:
      addData in class AbstractVideo
      Parameters:
      data - data to tell the codec we're adding
      timestamp - time associated with the data
      Returns:
      true for success. false for passing wrong video format or other error.
    • getDecoderConfiguration

      public org.apache.mina.core.buffer.IoBuffer getDecoderConfiguration()
      Returns information used to configure the decoder.
      Specified by:
      getDecoderConfiguration in interface IVideoStreamCodec
      Overrides:
      getDecoderConfiguration in class AbstractVideo
      Returns:
      the data for decoder setup