Posts: 1
Joined: Fri Oct 27, 2017 4:49 pm

Live Preview to TFT Screen

Fri Oct 27, 2017 4:53 pm

For my engineering class project I need to get my 3.5" raspberry pi tft screen to show what the camera sees. I've managed this using fbcp and a short python code using "camera.start_preview" but the video is very laggy and I need to be able to see fast moving objects. Any advice or help? Thanks offered in advance :)

User avatar
Posts: 3967
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany
Contact: Website Twitter YouTube

Re: Live Preview to TFT Screen

Sat Oct 28, 2017 3:29 pm


depends on the resolution of your display, the camera type (Raspberry or USB) and what Pi you have.

As you can see you can get 25fps for 320x240 TFT LCD with Pi Zero, Raspberry camera and gstreamer:

The gstreamer command I used is this:

Code: Select all

gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,width=320,height=240,framerate=30/1 ! videoconvert ! fpsdisplaysink text-overlay=true video-sink="videoconvert ! fbdevsink device=/dev/fb1"
(The trick to get fpsdisplaysink output to a framebuffer device is a videoconvert in video-sink)

Return to “Camera board”