omxh264enc - raspberry

Katerina Voulgary katerina.voulgary at iccs.gr
Wed Oct 14 07:02:59 UTC 2020


Hello,

I am streaming from a Raspberry pi using the omx264enc and I get 
discoloration in one third of my video. I would discribe it as a 
transparent green band. (uploaded here,available for 2 weeks: 
https://ibb.co/jJb01vM). Has anyone encountered this? Am I missing a 
codec or is it hardware?

My pipeline is:

gst-launch-1.0 v4l2src device=/dev/video0 ! 
video/x-raw,format=RGB,width=80,height=60,framerate=15/1,pixel-aspect-ratio=1 
! videoconvert ! 
video/x-raw,format=I420,width=80,height=60,framerate=15/1,pixel-aspect-ratio=1 
! omxh264enc target-bitrate=200000 control-rate=2 ! 
video/x-h264,width=80,height=60,profile=baseline ! rtph264pay 
config-interval=-1 pt=96 ! udpsink host=xxx port=xxx sync=false async=false

My camera is a Flir 2.5 thermal which generates the false RGB color of 
24bit. I use v4l2loopback and run v4l2lepton in the background to feed 
the camera into /dev/video0. The same discoloration happens when I read 
the frames with gst-python and pylepton.

My machine is a raspberry pi zero with "gpu_mem=256" in the config and 
"cgroup_enable=memory" in the kernel cmdline. There was a difference 
when I increased the gpu_mem allocated from 128 to 256 (at 128 it had 
magenda dots on the green band). I have also tried in an Rpi 3 and had 
the same result. The Rpis run Rasbian 10 (buster) and Gstreamer 14.4 
http://packages.qa.debian.org/gstreamer1.0




More information about the gstreamer-embedded mailing list