Sitebase / campervan

Code and documentation for my complete campervan build
1 stars 0 forks source link

Camera on display #7

Open Sitebase opened 3 years ago

Sitebase commented 3 years ago

Displaying one of the attached USB cameras on the LCD display will be needed for reversing or for example for monitoring purposes while driving.

omxplayer seems to be a good solution.

Example

omxplayer -o local /opt/retropie/supplementary/splashscreen/retropie-2015-carbon-video-4x3.mp4

Sitebase commented 3 years ago

In case of latency problems with the actual camera try following options:

options " --live --threshold 0 --video_queue=1" and latency is minimal i think no issue for back/reverse camera.

Sitebase commented 3 years ago

Pi camera module HDMI extension module. This makes it possible to use a long HDMI cable to run from the back of the car to the front.

Sitebase commented 3 years ago

Check article

Sitebase commented 3 years ago

DISPLAY=:0 cvlc --fullscreen --video-on-top v4l2:///dev/video0 --demux h264 https://bluewavestudio.io/community/showthread.php?tid=783

Sitebase commented 3 years ago

Debug commands:

v4l2-ctl --list-devices

List formats:

v4l2-ctl --list-formats

Sitebase commented 3 years ago

Got webcam live view working using but with very poor quality. Keep in mind that this is a very old webcam that I'm using currently.

omxplayer -o local /dev/video0

Sitebase commented 3 years ago

Responsiveness using following options seems to be pretty good

omxplayer -o local --live --threshold 0 --video_queue=1 /dev/video0

Sitebase commented 3 years ago

Convert analog existing camera to USB camera using current wiring to tulp connector (example) and using that as input for something like this EasyCap device.