dcsimg
How to obtain the frame rate or bit rate in real time
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   stefano_errani
Posted On:   Monday, August 23, 2010 01:03 PM

Good day. I've create an application that with a Process class display the video track arrived from a web camera. This Process use a an Effect class as codec chain: ... TrackControl tc[] = p.getTrackControls(); TrackControl videoTrack = null; for (int i = 0; i < tc.length; i++) { if (tc[i].getFormat() instanceof VideoFormat) { videoTrack = tc[i]; break; } } Codec codec[] = {new MotionDetectionEffect(ida, idv, nrc)}; videoTrack.setCodecChain(codec); .... During this work I should want to obtain a frame rate or a bit rate in order to control the brea   More>>

Good day.



I've create an application that with a Process class display the video track arrived from a web camera.

This Process use a an Effect class as codec chain:

...

TrackControl tc[] = p.getTrackControls();

TrackControl videoTrack = null;

for (int i = 0; i < tc.length; i++) {

if (tc[i].getFormat() instanceof VideoFormat) {

videoTrack = tc[i];

break;

}

}

Codec codec[] = {new MotionDetectionEffect(ida, idv, nrc)};

videoTrack.setCodecChain(codec);

....



During this work I should want to obtain a frame rate or a bit rate in order to control the break of the camera: infact if it's broken both values are 0 (I'm tested it with the Control Panel Component).



I'm verified that when I disconnect the camera, the process method of the Effect not run.

I don't know where I can insert the control of frame rate or bit rate.



Best regards and good work.



Stefano Errani

   <<Less
About | Sitemap | Contact