一、test-launch 推流
1、查询所需的库文件
pkg-config --cflags --libs gstreamer-rtsp-server-1.0 gstreamer-1.0
2、拷贝gst-rtsp-server-discontinued-for-monorepo-1-19-2.tar.gz到rk3588开发板编译:
#gcc test-launch.c -o test-launch pkg-config --cflags --libs gstreamer-1.0 gstreamer-rtsp-server-1.0
3、在开发板上输入命令
root@lubancat:/media/gst-rtsp-server/examples# ./test-launch --gst-debug-level=3 “( v4l2src device=/dev/video-camera0 ! videoconvert! videoscale ! video/x-raw, format=(string)NV12, width=1920, height=1080, framerate=30/1 ! queue ! x264enc bitrate=2048 ! rtph264pay name=pay0 pt=96 )”
stream ready at rtsp://127.0.0.1:8554/test
0:00:04.768390487 1846 0x7f78015640 WARN v4l2 gstv4l2object.c:4524:gst_v4l2_object_probe_caps:v4l2src0:src Failed to probe pixel aspect ratio with VIDIOC_CROPCAP: Invalid argument
[ 3980.066972] rockchip-mipi-csi2 mipi2-csi2: stream on, src_sd: 0000000073a7738c, sd_name: