Class Muxer.VideoBuffer

java.lang.Object
io.antmedia.muxer.Muxer.VideoBuffer
Enclosing class:
Muxer

public static class Muxer.VideoBuffer extends Object
This class is used generally to send direct video buffer to muxer
Author:
mekya
  • Field Details

    • encodedVideoFrame

      private ByteBuffer encodedVideoFrame
    • dts

      private long dts
      DTS and PTS may be normalized values according to the audio This is why there is originalFrameTimeMs exists
    • pts

      private long pts
    • firstFrameTimeStamp

      private long firstFrameTimeStamp
    • originalFrameTimeMs

      private long originalFrameTimeMs
    • frameRotation

      private int frameRotation
    • streamIndex

      private int streamIndex
    • keyFrame

      private boolean keyFrame
  • Constructor Details

    • VideoBuffer

      public VideoBuffer()
  • Method Details

    • setEncodedVideoFrame

      public void setEncodedVideoFrame(ByteBuffer encodedVideoFrame)
    • setTimeStamps

      public void setTimeStamps(long dts, long pts, long firstFrameTimeStamp, long originalFrameTimeMs)
    • setFrameRotation

      public void setFrameRotation(int frameRotation)
    • setStreamIndex

      public void setStreamIndex(int streamIndex)
    • setKeyFrame

      public void setKeyFrame(boolean isKeyFrame)
    • getEncodedVideoFrame

      public ByteBuffer getEncodedVideoFrame()
    • getDts

      public long getDts()
    • getPts

      public long getPts()
    • getFirstFrameTimeStamp

      public long getFirstFrameTimeStamp()
    • getFrameRotation

      public int getFrameRotation()
    • getStreamIndex

      public int getStreamIndex()
    • isKeyFrame

      public boolean isKeyFrame()
    • getOriginalFrameTimeMs

      public long getOriginalFrameTimeMs()