congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
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

  • Reading from database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • requestLocationUpdates (LocationManager)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JFileChooser (javax.swing)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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