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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.
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
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.
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 ?
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.