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

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

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

origin: us.ihmc/simulation-construction-set-tools

 @Override
 public void run()
 {
   MP4VideoDemuxer demuxer;
   try
   {
    System.out.println("i = " + i);
    demuxer = new MP4VideoDemuxer(Paths.get("20150920_0009_Atlas_DRCPushRecoveryMultiStepTest.testMultiStepForwardAndContinueWalking.mp4").toFile());
    
    for (int j = 0; j < 5; j++)
    {
    demuxer.getNextFrame();
    }
    demuxer.delete();
    demuxers.add(demuxer);
   }
   catch (IOException e)
   {
    e.printStackTrace();
   }
 }
}, 500, TimeUnit.MILLISECONDS);
origin: us.ihmc/ImageProcessing

private void streamBufferedImagesFromVideo()
{
 YUVPicture frame;
 try
 {
   while ((frame = demuxer.getNextFrame()) != null)
   {
    videoListener.updateImage(converter.toBufferedImage(frame));
    frame.delete();
   }
 }
 catch (IOException e)
 {
   throw new RuntimeException(e);
 }
}
origin: us.ihmc/ImageProcessing

private void streamBufferedImagesFromVideo()
{
 // Now, we start walking through the container looking at each packet.
 YUVPicture leftEye;
 YUVPicture rightEye;
 try
 {
   while ((leftEye = leftEyeDemuxer.getNextFrame()) != null && (rightEye = rightEyeDemuxer.getNextFrame()) != null)
   {
    videoListener.updateImage(converter.toBufferedImage(leftEye), converter.toBufferedImage(rightEye));
    leftEye.delete();
    rightEye.delete();
    //TODO: Insert eait loop
   }
 }
 catch (IOException e)
 {
   e.printStackTrace();
 }
}
origin: us.ihmc/IHMCVideoCodecs

while ((picture = demuxer.getNextFrame()) != null)
origin: us.ihmc/ihmc-video-codecs

while ((picture = demuxer.getNextFrame()) != null)
origin: us.ihmc/IHMCRobotDataVisualizer

public synchronized void showVideoFrame(long timestamp)
{
 if (timestamp >= currentlyShowingRobottimestamp && timestamp < upcomingRobottimestamp)
 {
   return;
 }
 long videoTimestamp = getVideoTimestamp(timestamp);
 if (currentlyShowingIndex + 1 < robotTimestamps.length)
 {
   upcomingRobottimestamp = robotTimestamps[currentlyShowingIndex + 1];
 }
 else
 {
   upcomingRobottimestamp = currentlyShowingRobottimestamp;
 }
 try
 {
   demuxer.seekToPTS(videoTimestamp);
   YUVPicture nextFrame = demuxer.getNextFrame();
   viewer.update(nextFrame);
 }
 catch (IOException e)
 {
   // TODO Auto-generated catch block
   e.printStackTrace();
 }
}
origin: us.ihmc/RobotDataCommunication

public synchronized void showVideoFrame(long timestamp)
{
 if (timestamp >= currentlyShowingRobottimestamp && timestamp < upcomingRobottimestamp)
 {
   return;
 }
 long videoTimestamp = getVideoTimestamp(timestamp);
 if (currentlyShowingIndex + 1 < robotTimestamps.length)
 {
   upcomingRobottimestamp = robotTimestamps[currentlyShowingIndex + 1];
 }
 else
 {
   upcomingRobottimestamp = currentlyShowingRobottimestamp;
 }
 try
 {
   demuxer.seekToPTS(videoTimestamp);
   YUVPicture nextFrame = demuxer.getNextFrame();
   viewer.update(nextFrame);
 }
 catch (IOException e)
 {
   // TODO Auto-generated catch block
   e.printStackTrace();
 }
}
origin: us.ihmc/ihmc-robot-data-visualizer

YUVPicture nextFrame = demuxer.getNextFrame();
viewer.update(nextFrame);
origin: us.ihmc/simulation-construction-set-tools

while (true)
 picture = demuxer.getNextFrame();
origin: us.ihmc/IHMCRobotDataLogger

while((frame = demuxer.getNextFrame()) != null && demuxer.getCurrentFrame() <= endFrame)
origin: us.ihmc/RobotDataCommunication

while((frame = demuxer.getNextFrame()) != null && demuxer.getCurrentFrame() <= endFrame)
origin: us.ihmc/ihmc-robot-data-visualizer

while((frame = demuxer.getNextFrame()) != null && demuxer.getCurrentFrame() <= endFrame)
us.ihmc.codecs.demuxerMP4VideoDemuxergetNextFrame

Javadoc

Return the next frame in the video

Popular methods of MP4VideoDemuxer

  • <init>
    Create a new demuxer
  • 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
  • getCurrentPTS
  • getNextPacket
  • decodeLeadingFrames
  • getPreviousKeyFrame
  • decodeLeadingFrames,
  • getPreviousKeyFrame,
  • seek

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setRequestProperty (URLConnection)
  • addToBackStack (FragmentTransaction)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Permission (java.security)
    Legacy security code; do not use.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Top plugins for Android Studio
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