Package 

Class MediaVideoBufferEncoder

  • All Implemented Interfaces:
    com.serenegiant.encoder.IVideoEncoder , java.lang.Runnable

    
    public class MediaVideoBufferEncoder
    extends MediaEncoder implements IVideoEncoder
                        

    This class receives video images as ByteBuffer(strongly recommend direct ByteBuffer) as NV21(YUV420SP) and encode them to h.264. If you use this directly with IFrameCallback, you should know UVCCamera and it backend native libraries never execute color space conversion. This means that color tone of resulted movie will be different from that you expected/can see on screen.

    • Method Summary

      Modifier and Type Method Description
      void encode(ByteBuffer buffer)
      • Methods inherited from class com.serenegiant.encoder.MediaEncoder

        frameAvailableSoon, getInputSurface, getOutputUri, run
      • Methods inherited from class java.lang.Thread

        activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, onSpinWait, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, start, stop, suspend, toString, yield
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait