Closed ollydev closed 4 years ago
For anyone curious, here's encoder.c
that outputs a valid video stream for the latest jsmpeg!
Wow fantastic thanks! Anyway you can post the whole source code as a zip?
@ollydev Wow, Can you post the source code to us?
The fix and what older jsmpeg-vnc was something like this in socket.onmessage
.
if (!this.currentPictureDecoded) {
this.video.decode(true); // Skip drawing. Only decode.
} else {
this.currentPictureDecoded = false;
setTimeout(function(){
this.video.decode(false); // Decode and draw.
this.currentPictureDecoded = true;
}.bind(this));
}
I've been reworking jsmpeg-vnc for Linux here It's now in a working state with a lot of new features.
However, I haven't ran into this issue so far on my fork and the latency may return when I add Windows support.
I'm closing this for now, if I run into the issue again I will make a PR with the fix (and another minor changes I've made here)
Hi, I recently updated
jsmpeg-vnc
to use the latestjsmpeg
but have found increasing steaming latency the higher fps & bitrate. This also occurred in thejsmpeg
used injsmpeg-vnc 0.2
however was improved in later commits but seems to be a problem again since the rewrite.Using the last commit before the rewrite
I think it drops frames to keep up with the socket input here? Would it be possible to get this option added?
Using
jsmpeg
injsmpeg-vnc 0.2
. The same also happens when using latestjsmpeg
: