Setting up rtsp server using gstreamer?
Stephenwei
lofy.stephen at gmail.com
Wed Jul 8 09:31:40 UTC 2020
Hi
why don't you remove VideoWriter?
you can use udpsrc_pipeline to replace VideoWriter directly.
===============================================
sprintf (udpsrc_pipeline,
"( udpsrc name=pay0 port=%d caps=\"application/x-rtp, media=video, "
"clock-rate=90000, encoding-name=JPEG, payload=26 \" )",
5000);
gst_rtsp_media_factory_set_launch (factory, udpsrc_pipeline);
gst_rtsp_mount_points_add_factory (mounts, "/test", factory);
g_object_unref (mounts);
gst_rtsp_server_attach (server, NULL);
VideoCapture cap("videotestsrc !
video/x-raw,format=BGR,width=640,height=480,framerate=30/1 !
appsink",CAP_GSTREAMER);
VideoWriter out("appsrc ! videoconvert !
video/x-raw,format=YUY2,width=640,height=480,framerate=30/1 ! jpegenc !
rtpjpegpay ! udpsink host=127.0.0.1
port=5000",CAP_GSTREAMER,0,30,Size(640,480),true);
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list