Tabnine Logo
MP4VideoDemuxer.getCurrentPTS
Code IndexAdd Tabnine to your IDE (free)

How to use
getCurrentPTS
method
in
us.ihmc.codecs.demuxer.MP4VideoDemuxer

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

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/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/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;
 }
us.ihmc.codecs.demuxerMP4VideoDemuxergetCurrentPTS

Popular methods of MP4VideoDemuxer

  • <init>
    Create a new demuxer
  • getNextFrame
    Return the next frame in the video
  • getHeight
  • getWidth
  • delete
    Delete native resources held by the demuxer
  • getTimescale
  • seekToFrame
    Seek to frame. Next call to nextFrame will return frameNo
  • seekToPTS
    Seek to PTS. Next call to nextFrame will return frame at given PTS
  • getCurrentFrame
  • getNextPacket
  • decodeLeadingFrames
  • getPreviousKeyFrame
  • decodeLeadingFrames,
  • getPreviousKeyFrame,
  • seek

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • getSupportFragmentManager (FragmentActivity)
  • onRequestPermissionsResult (Fragment)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JButton (javax.swing)
  • JCheckBox (javax.swing)
  • Best IntelliJ plugins
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