Page 1 of 1

Camera Preview

Posted: Mon May 20, 2019 11:50 am
by k0310
Can anyone tell me how do i see the cameraa preview when connected to a remote host?

Re: Camera Preview

Posted: Mon May 20, 2019 12:29 pm
by jamesh
Not easily.

The preview is 'applied'' to the output of the Pi right at the end of video processing, its sort of 'superimposed' on the output. This means that things like remote desktops, which mirror the frame buffer, or ssh which is a text protocol, have no idea that the preview is even there.

VNC does have a mode that might help but consider this - the preview is a large image being refreshed at 30fps, which is a LOT of data. when viewing remotely all that data needs to be transfered over the remote link. So, I think VNC has a mode that compresses the data (H264?) before sending it to reduce the bandwidth requirements, but of course tha increases the encode and decode requirements.

So, its not a trivial thing to do.

You could try streaming the camera H264 output to your remote system and decoding there. There are posts about how to do that on here.

Re: Camera Preview

Posted: Mon May 20, 2019 3:32 pm
by HermannSW
jamesh wrote:
Mon May 20, 2019 12:29 pm
So, its not a trivial thing to do.
uv4l does allow to see video preview remotely in browser without issues (see raspivid command with preview below):
https://www.raspberrypi.org/forums/view ... 5#p1413852
Image