Package net.sf.ffmpeg_java.AVFormatLibrary

Examples of net.sf.ffmpeg_java.AVFormatLibrary.AVPacket


      if (!packetQueues[streamIndex].isEmpty())
        return (AVPacket) packetQueues[streamIndex].dequeue(); // we already have one in the queue for this stream
     
        while (true)
        {
          final AVPacket packet = new AVPacket();
          if (AVFORMAT.av_read_frame(formatCtx, packet) < 0) {
            break// TODO: distinguish between EOM and error?
          }
         
          // Is this a packet from the desired stream?
View Full Code Here


    {
      // will be set to the minimum dts of all packets that make up a frame.
      // TODO: this is not correct in all cases, see comments in getTimestamp.
      long dts = -1;
     
      final AVPacket packet = nextPacket(videoStreamIndex);
        if (packet != null)
        {
          synchronized (AV_SYNC_OBJ)
          {
            final IntByReference frameFinished = new IntByReference();
View Full Code Here

    
    public void readFrame(Buffer buffer)
    {
     
      // TODO: the reading of packets needs to be done centrally for all tracks
      final AVPacket packet = nextPacket(audioStreamIndex);
        if (packet != null)
        {
          synchronized (AV_SYNC_OBJ)
          {
              final IntByReference frameSize = new IntByReference();
View Full Code Here

TOP

Related Classes of net.sf.ffmpeg_java.AVFormatLibrary.AVPacket

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.