How to use the RTSP server with display and stream both
Nicolas Dufresne
nicolas at ndufresne.ca
Fri Jul 21 18:12:25 UTC 2017
Le vendredi 21 juillet 2017 à 02:16 -0700, saketbafna82 at gmail.com a écrit :
> Hi All,
> I am using gst-rtsp-server plugin to stream-out encoded stream.
>
> gst_rtsp_media_factory_set_launch (factory, "( "
> "v4l2src device=/dev/video1 io-mode=4 ! video/x-raw, width=(int)3840,
> height=(int)2160, format=(string)NV12, framerate=(fraction)30/1 ! "
> "h265enc Gop-Length=30 b-frames=4 target-bitrate=100000000 !
> video/x-h265, width=(int)3840, height=(int)2160, profile=(string)main !
> rtph265pay name=pay0 pt=96 "
> ")");
> this pipeline works fine.
>
> When I add tee element to display as well then, pipeline fails.
When using tee, of any multiplexing element, you need queue afterward.
> gst_rtsp_media_factory_set_launch (factory, "( "
> "v4l2src device=/dev/video1 io-mode=4 ! video/x-raw, width=(int)3840,
> height=(int)2160, format=(string)NV12, framerate=(fraction)30/1 ! tee
> name=t t. ! kmssink t. "
> "h265enc Gop-Length=30 b-frames=4 target-bitrate=100000000 !
> video/x-h265, width=(int)3840, height=(int)2160, profile=(string)main !
> rtph265pay name=pay0 pt=96 "
> ")");
>
> I also tried with async=false in kmssink but, this also failed.
>
> Can anyone please let me know what could be the issue?
>
> P.S. I copied rest pipeline code from test-multicast.c
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-use-the-RTSP-server-with-display-and-stream-both-tp4683888.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170721/e1938455/attachment.sig>
More information about the gstreamer-devel
mailing list