vnc-recorder icon indicating copy to clipboard operation
vnc-recorder copied to clipboard

Recorder hangs after 2:20 mark

Open daanggc opened this issue 3 years ago • 1 comments

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 ;)

daanggc avatar Mar 23 '21 07:03 daanggc

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,
	})

ternshare avatar Aug 16 '22 14:08 ternshare