I'm running into an issue where there is a purple and white flickering column in the right image of a side by side stereo recording. This happens with both raspivid, and PiCamera.
Raspivid command I'm using:
Code: Select all
raspivid -o - -t 0 -3d sbs -w 800 -h 600 -fps 12 | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8085/}' :demux=h264Code: Select all
import picamera
camera = picamera.PiCamera(stereo_mode="side-by-side")
camera.resolution = (1920, 1088)
camera.start_recording('my_video.h264')
camera.wait_recording(5)
camera.stop_recording()
https://i.imgur.com/36QQzkG.png
PiCamera result:
https://i.imgur.com/n7e8rUu.png
I've also noticed that sometimes the split between the two images flickers to the right, cutting off some of the right image but revealing some of the left image underneath it. It appears as if the right image is shifted to the left, where the right column is raw memory. To me it seems like a memory issue since it happens with both raspivid and picamera, and only while recording. I'd be happy to provide the h264 files if someone wants to look at them more closely.
Image depicting what I've just described. The shifted part is near the bottom:
https://imgur.com/a/znBTPWJ
The stereo image looks completely fine if a still image is taken, these issues only happen when recording in stereo.
Here's what I've done to try to solve this issue:
- Double checked that my camera is indeed enabled
- apt-get update/upgrade
- updating picamera
- increase cma memory in config.txt to 512mb
- increase gpu memory through raspi-config to 512mb
- swapped cameras left and right through picamera camera_num, but the issues remained on whichever was the right image
- fixed this bug in picamera
Any help is greatly appreciated!