Gstreamer rtsp server + sink video in widjet

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Gstreamer rtsp server + sink video in widjet

Stanislav
Windows 10, gstreamer 1.15.1, QT.
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?



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel