Menu

seek() function not working

user
flanagaj
2010-07-14
2013-05-09
  • flanagaj

    flanagaj - 2010-07-14

    I have tried numerous avi files, but I cannot get seek(frame number) to work.  skip(num frames) works fine.   Is this method not implemented or is it not supported for avi files ?

    Thanks

     
  • Anonymous

    Anonymous - 2010-07-14

    I'm by no means an expert with this, but I've implemented fobs4jmf with a processor.  part of the setup of the processor, p, is to get a FramePositioningControl, which if not null can be used with the seek() method.  In addition, setting up a default ControlPanelComponent with p.getControlPanelComponent(), creates a slider that enables frame positioning.  The caveat here is that I have NOT tried to use the seek() method with my code, yet.

    Hopes this helps.

     
  • flanagaj

    flanagaj - 2010-07-14

    I have obtained both a FrameRateControl and a FramePositioningControl and neither of them are null.  All I can assume is that the method has not been implemented.  If I can get hold of the source code I can maybe debug it

     
  • Anonymous

    Anonymous - 2010-07-14

    the only thing I've seen with this from my investigations is that seek(FrameNo) returns a value that is NOT equal to FrameNo.   I may be related more to the buffer sequence number.  I haven't explored this further yet however.

     
  • flanagaj

    flanagaj - 2010-07-15

    What ever the reason, if a method has not been implemented you don't just return 0 or some other useless value, you show throw an UnsupportedOperationException.  That way the caller knows it has not been implemented.

    Do you know of a workaround ?

     
  • Anonymous

    Anonymous - 2010-07-15

    i tried this code, with fobs4jmf, with my m4v clip.  skip worked but seek did not.  I did try skip(500), which moved the clip forward 16 sec (the framerate of the clip is 30 frames/sec).  So, I believe you can get the frame that you are on (or time), and skip forward or backward the appropriate number of frames to get to the desired point in your clip.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.