Gstreamer rtsp server + sink video in widjet

Nicolas Dufresne nicolas at ndufresne.ca
Mon Nov 18 17:13:00 UTC 2019


Le dimanche 17 novembre 2019 à 17:00 -0600, Stanislav a écrit :
> Windows 10, gstreamer 1.15.1, QT.

Careful, odd version of GStreamer are unstable, and should not be used
other then for testing and developing GStreamer. 1.15 is EOL, as 1.16
was release, current development version is 1.17.

> Hello! My goal : grab video from webcam, transmite it via rtsp and transmite
> it to windows widjet at the same time. 
> *So I have found rtsp server example: *
>  loop = g_main_loop_new(NULL, FALSE);
> 
>     server = gst_rtsp_server_new();
>     mounts = gst_rtsp_server_get_mount_points(server);
>     factory = gst_rtsp_media_factory_new();
> 
>     *gst_rtsp_media_factory_set_launch(factory,
>                                       "( ksvideosrc device-index=0  !
> video/x-raw, format=(string)I420, width=(int)1280, height=(int)720,
> framerate=(fraction)30/1 ! videoconvert ! x264enc pass=qual quantizer=20
> tune=zerolatency ! rtph264pay name=pay0 pt=96 )"); *
> 
>     gst_rtsp_media_factory_set_shared(factory, TRUE);
>     gst_rtsp_mount_points_add_factory(mounts, "/test", factory);
>     g_object_unref(mounts);
>     gst_rtsp_server_attach(server, NULL);
>     g_print("stream ready at rtsp://127.0.0.1:8554/test\n");
>     g_main_loop_run(loop);
> 
> but to get my goal, i need rtsp element, to add it to my pipeline - with
> gst_rtsp_media_factory_set_launch it will not work. 
> What shal i do?

Do you have further information on what does not work, how ? Any errors
? (try GST_DEBUG=2 to enable warning and errors).

> 
> 
> 
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list