Posts: 2
Joined: Mon May 20, 2019 7:21 am

Camera Preview

Mon May 20, 2019 11:50 am

Can anyone tell me how do i see the cameraa preview when connected to a remote host?

Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 22080
Joined: Sat Jul 30, 2011 7:41 pm

Re: Camera Preview

Mon May 20, 2019 12:29 pm

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.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

Posts: 1204
Joined: Fri Jul 22, 2016 9:09 pm

Re: Camera Preview

Mon May 20, 2019 3:32 pm

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
bookmark list: https://stamm-wilbrandt.de/en/Raspberry_camera.html


Return to “Camera board”