Streaming data from yuv callback - IMX135


I’ve modified video2stdout example to stream yuv data to tcp using gstreamer

res = arducam_set_video_callback(camera_instance, &video_state, video_callback, NULL);


res = arducam_set_yuv_callback(camera_instance, video_callback, NULL);

How to modify Gstreamer pipeline to work with it? What is the format of output YUV data? Encoding data to h264 is an option for me. I’ve tried pipeline like below but without success.

./video2stdout | gst-launch-1.0 -v fdsrc ! video/x-raw, width=(int)1280, height=(int)720, format=(string)UYVY ! videoconvert ! omxh264enc ! rtph264pay config-interval=1 pt=96 ! gdppay ! tcpserversink host= port=5000







At present, we just have demo which is to send h264 image data using Gstreamer, I will tell our application engineer. When we are free, we will try to add more demos.


I’ve found working pipeline:

video2stdout | gst-launch-1.0 -v fdsrc ! rawvideoparse use-sink-caps=false width=1280 height=720 format=i420 framerate=25/1 ! omxh264enc target-bitrate=1000000 control-rate=1 ! rtph264pay config-interval=1 pt=96 ! gdppay ! tcpserversink host= port=5000

video2stdout is modified to handle yuv callback.


Great to hear your good news