Separated encoding to a separate thread to prevent constant framerate issues, and increased frame timing precision to nanosecond approximation
Merge remote-tracking branch 'origin/master'