If you google how to take video from a connected pi cam and encode it with the RPi4's hardware video encoder using gstreamer, you will find a phone book of conflicting advice.
Can someone please provide an example gstreamer pipeline string which takes a 1920x1080@30fps video stream from a MIPI pi cam, encodes to h264 with the onboard hardware video encoder, and transmits this video stream via a UDP sink?
The only way I can get this to work is with a pipeline similar to the one below, with abysmal results:
Can someone please provide an example gstreamer pipeline string which takes a 1920x1080@30fps video stream from a MIPI pi cam, encodes to h264 with the onboard hardware video encoder, and transmits this video stream via a UDP sink?
The only way I can get this to work is with a pipeline similar to the one below, with abysmal results:
Code:
gst-launch-1.0 libcamerasrc ! capsfilter caps=video/x-raw,width=1920,height=1080 ! v4l2convert ! v4l2h264enc extra-controls="controls,repeat_sequence_header=1,video_bitrate_mode=0,video_bitrate=20000000,h264_i_frame_period=1,h264_profile=4" ! 'video/x-h264,level=(string)4' ! h264parse ! rtph264pay ! udpsink host=192.168.68.75 port=1337 sync=0
Statistics: Posted by my_name_is_reed — Sun Jan 19, 2025 8:39 pm