I am attempting to display 1080p camera stream to hdmi output as well as some other output, file/udpstream/message broker anything on cm4. I am able to stream the camera to display with low latency and 30-60fps, but when I use tee and try to send the frames anywhere else the pipeline complains and pretty much stalls.
Where am I going wrong with this pipeline? I have searched a bit on the forums for solutions with no luck, but there was a good amount of information for me to even get it to where it would start which was helpful. Dropping the frame rate doesn't really seem to help so I believe the pipeline is set up incorrectly.
Code: Select all
# this one is crawling
gst-launch-1.0 libcamerasrc ! capsfilter caps=video/x-raw,width=1920,height=1080,format=NV21,framerate=60/1 ! tee name=t ! queue ! glimagesink t. ! queue ! v4l2convert ! v4l2h264enc extra-controls="controls,repeat_sequence_header=1" ! 'video/x-h264,level=(string)4.2' ! h264parse ! rtph264pay ! udpsink host=0.0.0.0 port=9000
# this one works
gst-launch-1.0 libcamerasrc ! capsfilter caps=video/x-raw,width=1920,height=1080,format=NV21,framerate=60/1 ! queue ! fpsdisplaysink