congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
us.ihmc.codecs.demuxer
Code IndexAdd Tabnine to your IDE (free)

How to use us.ihmc.codecs.demuxer

Best Java code snippets using us.ihmc.codecs.demuxer (Showing top 20 results out of 315)

origin: us.ihmc/RobotDataCommunication

  private static long getFrame(long endPTS, MP4VideoDemuxer demuxer) throws IOException
  {
   demuxer.seekToPTS(endPTS);
   long endFrame = demuxer.getCurrentFrame();
   return endFrame;
  }
}
origin: us.ihmc/ihmc-video-codecs

@Override
public void finalize()
{
 delete();
}
origin: us.ihmc/ImageProcessing

public void close()
{
 leftEyeDemuxer.delete();
 rightEyeDemuxer.delete();
}
origin: us.ihmc/RobotDataCommunication

private static int getFrameRate(MP4VideoDemuxer demuxer) throws IOException
{
 demuxer.seekToFrame(0);
 long startPts = demuxer.getCurrentPTS();
 demuxer.seekToFrame(1);
 long endPts = demuxer.getCurrentPTS();      
 
 double step = endPts - startPts;
 int rate = (int)Math.round((double)demuxer.getTimescale() / step);
 
 System.out.println("Framerate is " + rate);
 return rate;
 }
origin: us.ihmc/ImageProcessing

private void openleftEyeVideoFile()
{
 try
 {
   leftEyeDemuxer = new MP4VideoDemuxer(new File(leftEyeFilename));
 }
 catch (IOException e)
 {
   throw new RuntimeException(e);
 }
}
origin: us.ihmc/IHMCVideoCodecs

/**
* Seek to time(s). Next call to nextFrame will return frame at given time.
* 
* @throws IOException Cannot decode intraframes
*/
public void seek(double seconds) throws IOException
{
 videoTrack.seek(seconds);
 decodeLeadingFrames();
}

origin: us.ihmc/IHMCVideoCodecs

/**
* Delete native resources held by the demuxer
*/
public void delete()
{
 demuxerHelper.delete();
}
origin: us.ihmc/ihmc-video-codecs

/**
* Get the AvcCBox for H264 videos
* 
* Throws runtime exception for other formats
* 
* @return AvcCBox
*/
public AvcCBox getAvcCBox()
{
 return demuxerHelper.getAvcCBox();
}
origin: us.ihmc/ihmc-robot-data-visualizer

private static int getFrameRate(MP4VideoDemuxer demuxer) throws IOException
{
 demuxer.seekToFrame(0);
 long startPts = demuxer.getCurrentPTS();
 demuxer.seekToFrame(1);
 long endPts = demuxer.getCurrentPTS();      
 
 double step = endPts - startPts;
 int rate = (int)Math.round((double)demuxer.getTimescale() / step);
 
 System.out.println("Framerate is " + rate);
 return rate;
 }
origin: us.ihmc/IHMCRobotDataLogger

  private static long getFrame(long endPTS, MP4VideoDemuxer demuxer) throws IOException
  {
   demuxer.seekToPTS(endPTS);
   long endFrame = demuxer.getCurrentFrame();
   return endFrame;
  }
}
origin: us.ihmc/ImageProcessing

private void openRightEyeVideoFile()
{
 try
 {
   rightEyeDemuxer = new MP4VideoDemuxer(new File(rightEyeFilename));
 }
 catch (IOException e)
 {
   throw new RuntimeException(e);
 }
}
origin: us.ihmc/ImageProcessing

public void close()
{
 demuxer.delete();
}
origin: us.ihmc/ihmc-video-codecs

/** 
* Seek to PTS. Next call to nextFrame will return frame at given PTS
* 
* @throws IOException Cannot decode intraframes
*/
public void seekToPTS(long pts) throws IOException
{
 videoTrack.seek(pts);
 decodeLeadingFrames();
}

origin: us.ihmc/IHMCVideoCodecs

@Override
public void finalize()
{
 delete();
}
origin: us.ihmc/ihmc-video-codecs

/**
* Delete native resources held by the demuxer
*/
public void delete()
{
 demuxerHelper.delete();
}

origin: us.ihmc/IHMCRobotDataLogger

private static int getFrameRate(MP4VideoDemuxer demuxer) throws IOException
{
 demuxer.seekToFrame(0);
 long startPts = demuxer.getCurrentPTS();
 demuxer.seekToFrame(1);
 long endPts = demuxer.getCurrentPTS();      
 
 double step = endPts - startPts;
 int rate = (int)Math.round((double)demuxer.getTimescale() / step);
 
 System.out.println("Framerate is " + rate);
 return rate;
 }
origin: us.ihmc/ihmc-robot-data-visualizer

  private static long getFrame(long endPTS, MP4VideoDemuxer demuxer) throws IOException
  {
   demuxer.seekToPTS(endPTS);
   long endFrame = demuxer.getCurrentFrame();
   return endFrame;
  }
}
origin: us.ihmc/ihmc-video-codecs

/**
* Seek to time(s). Next call to nextFrame will return frame at given time.
* 
* @throws IOException Cannot decode intraframes
*/
public void seek(double seconds) throws IOException
{
 videoTrack.seek(seconds);
 decodeLeadingFrames();
}

origin: us.ihmc/IHMCVideoCodecs

/** 
* Seek to PTS. Next call to nextFrame will return frame at given PTS
* 
* @throws IOException Cannot decode intraframes
*/
public void seekToPTS(long pts) throws IOException
{
 videoTrack.seek(pts);
 decodeLeadingFrames();
}

origin: us.ihmc/ihmc-video-codecs

/**
* Seek to frame. Next call to nextFrame will return frameNo
* 
* @throws IOException Cannot decode intraframes
*/
public void seekToFrame(long frameNo) throws IOException
{
 if(!videoTrack.gotoFrame(frameNo))
 {
   throw new IOException("Invalid frame no: " + frameNo);
 }
 decodeLeadingFrames();
}
us.ihmc.codecs.demuxer

Most used classes

  • MP4VideoDemuxer
    Demuxer for MP4 files. Automatically detects the format and chooses the correct decoder. Supported c
  • AVCDemuxerHelper
  • DemuxerHelper
  • JPEGDemuxerHelper
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now