Hello,
On 04/03/2014 11:56 PM, Saurabh Agrawal wrote:
> This doesn't have any effect on the videos frames. Is there a sure way
Right, the encoder doesn't take into account the keyframe flag. That
could be a good idea to implement.
> to get key frames on demand or setting the keyframe occurrence frequency
> in the recorded video? Related to this will is be possible to use
> similar logic and convert existing video to a video with more
> keyframes(grabber and recorder combination maybe)?
We can set the maximum interval between keyframes with the GOP size,
where a value of 0 should create a video file with only keyframes.
Incidentally, I've added a setter/getter pair recently in this revision:
http://code.google.com/p/javacv/source/detail?r=9f9f82497b661170d29d43784f04fdcb3ad1f9c3
Would that be enough? if not, FFmpeg does support forcing key frames
with the "force_key_frames" option:
http://ffmpeg.org/ffmpeg.html
But we'd had to add support for that in FFmpegFrameRecorder. Please post
a request here:
http://code.google.com/p/javacv/issues/list
and post a patch as well if you end up implementing something yourself,
thanks! :)
Samuel