node-video
node-video copied to clipboard
incorrect timestamps when keyFrameInterval is larger than frameRate
In general I've noticed that playing around with the key frame intervals and frame rates will cause the resulting video to have a different length (all other things being equal). I'm encoding the video with the endPush(timestamp) method (not encoding everything frame by frame). Curiously, the larger the two parameters are, the smaller the error is.
For example, if the key frame interval is 64 , and the frame rate is say, 32, then the resulting video will be longer that it should be (about 20% longer in my case). If both parameters are set to the same value, the video encodes properly.
If needed, I can create a simple test case.