How to use the RTSP server with display and stream both

saketbafna82 at gmail.com saketbafna82 at gmail.com
Fri Jul 21 09:16:28 UTC 2017


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.
  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.


More information about the gstreamer-devel mailing list