vnc-recorder
vnc-recorder copied to clipboard
Recorder hangs after 2:20 mark
The recorder hangs after 2 minutes and 20 secconds. It keeps recording a frozen screen.
I tried a different encoder, but that isn't supported in this docker image.
Not sure if it's related to this image or to the base project, but adding an extra (webm) encoder won't hurt ;)
Have a try using zrle encoding instead of tight, just comment the code in main.go as below:
ccflags := &vnc.ClientConfig{
SecurityHandlers: secHandlers,
DrawCursor: true,
PixelFormat: vnc.PixelFormat32bit,
ClientMessageCh: cchClient,
ServerMessageCh: cchServer,
Messages: vnc.DefaultServerMessages,
Encodings: []vnc.Encoding{
// &vnc.RawEncoding{},
// &vnc.TightEncoding{},
// &vnc.HextileEncoding{},
&vnc.ZRLEEncoding{},
&vnc.CopyRectEncoding{},
&vnc.CursorPseudoEncoding{},
&vnc.CursorPosPseudoEncoding{},
// &vnc.ZLibEncoding{},
// &vnc.RREEncoding{},
},
ErrorCh: errorCh,
}
...
vncConnection.SetEncodings([]vnc.EncodingType{
vnc.EncCursorPseudo,
vnc.EncPointerPosPseudo,
vnc.EncCopyRect,
// vnc.EncTight,
vnc.EncZRLE,
// vnc.EncHextile,
// vnc.EncZlib,
// vnc.EncRRE,
})