rogster
6th November 2007, 21:39
I need to develop a Directshow filter who spews frame number and/or current system time to a 2nd java program.
Basically what I want is the ability for my java app to call on the filter to return it those values for the current frame.
I've never done any JNI but I think it to be the solution here, but since I'm treading on new ground, I wanted to ping ya'll for your guidance and first thoughts on how to accomplish this.
I've already tinkered with Directshow and made a simple transform filter that converts video to grayscale, the next step is to just pass the original frame on without modification but to keep track for which frame is being processed, and to make that data available to the calling java app.
I can't really say much about the rest of the program flow, but when an event occurs, i need the ability to extract the time/frame number for the current frame.
Is this even possible? I've found nothing along these lines when i googled it.
Again please spare me the flaming :) I KNOW I'm a n00b, but I'm trying to change that.
Basically what I want is the ability for my java app to call on the filter to return it those values for the current frame.
I've never done any JNI but I think it to be the solution here, but since I'm treading on new ground, I wanted to ping ya'll for your guidance and first thoughts on how to accomplish this.
I've already tinkered with Directshow and made a simple transform filter that converts video to grayscale, the next step is to just pass the original frame on without modification but to keep track for which frame is being processed, and to make that data available to the calling java app.
I can't really say much about the rest of the program flow, but when an event occurs, i need the ability to extract the time/frame number for the current frame.
Is this even possible? I've found nothing along these lines when i googled it.
Again please spare me the flaming :) I KNOW I'm a n00b, but I'm trying to change that.