Hey Nathan,

First of all I'd like to thank you very much for this app/library, it
has proven quite helpful.

I've noticed a FPS bug in CipherCam, namely that the video recorded with
the app plays at too high an FPS. To investigate this, I opened up the
MJPEG files with VLC and found that the frame rate is always 20 FPS.

The problem the actual FPS varies from device to device and even across
recordings. With some debugging, I've found that my phone records
between 10-14 FPS.

It appears that the current jcodec implementation is disregarding the
'mFPS' variable set in the code. Instead, only the 'timescale' variable
in 'ImageToMJPEGMOVMuxer.java' (set to 20 by default) is considered.

A potential solution would be to set up a temporary onPreviewFrame
callback when the camera is first initialized to detect the FPS the
phone is capable of recording, then passing it to the Muxer constructor
in place of the 'timescale' variable.

Regards,
Poly
_______________________________________________
List info: https://lists.mayfirst.org/mailman/listinfo/guardian-dev
To unsubscribe, email:  [email protected]

Reply via email to