IDR Frames

Simon59

New member
Two related things.

Firstly, given the importance of IDR frames in certain types of video file, would it be possible to add to the keyboard/mouse navigation options the ability to move to the next/previous IDR-frame, not just to the next/previous I-frame?

Secondly, is there any function within the VideoRedo COM interface that will return the type of the current frame? And, if not, is this something which could be added in the future? At least that way, if you didn't want to provide a skip to IDR-frame, I could code one myself!
 
Last edited:

Danr

Administrator
Staff member
1) Will have to think about this. What if there are no IDR frames, it could take a number of minutes to advance only to end up at the end of file.

2) I don't think there's a COM function to return the frame type.
 

Simon59

New member
1) Will have to think about this. What if there are no IDR frames, it could take a number of minutes to advance only to end up at the end of file.
For me, in an ideal world, if the video format didn't support IDR-frames in the first place, I guess I'd like it to move to the next/previous I-frame instead. On the other hand, if the format did support IDR-frames but there just weren't any there, I suppose I'd just have to twiddle my thumbs while I waited.

2) I don't think there's a COM function to return the frame type.
I presume this wouldn't be too difficult, though, given that you have the information and display it on screen. At least if you felt that a next/previous IDR-frame option was fraught with problems it would allow anyone who wanted one to program it themselves, and I'm sure there would be other instances where allowing an external application to discover the current frame type could be useful.
 

Dan203

Senior Developer
Staff member
FYI I just added this to the COM interface. It will be in the next beta release. The function is NavigationGetCurrentFrameType and it returns a string with either I, P, B or IDR.
 

Simon59

New member
FYI I just added this to the COM interface. It will be in the next beta release. The function is NavigationGetCurrentFrameType and it returns a string with either I, P, B or IDR.
Thanks very much indeed. I shall have a play with it.
 

Simon59

New member
In itself, it works perfectly. Unfortunately using it is horribly slow because, as far as I can tell, I've got no way in code of quickly navigating to the next I frame never mind the next IDR frame. So the only way I can find each IDR frame is to step through the video a frame at a time which is just like playing the video in slow motion.

Is there any way to invoke from code the standard navigation action (the one you can attach to a key combination) which allows you to jump almost instantly to the next/previous I frame without displaying all the frames in between?

Or alternatively would it be possible to pass a frame number to this method so you would find the info without actually playing the video?
 
Top Bottom