AW: Getting pipeline for GstRTSPServer

Thornton, Keith keith.thornton at zeiss.com
Wed Apr 7 13:18:42 UTC 2021


Hi, 
there are lots of ways to access the elements in a pipeline depending upon where you are starting from. 
e.g. if you have an element with a name such as pay0 you might use

gst_bin_get_by_name_recurse_up

I personally don't use valve, I prefer to use a pad-probe to decide which data should flow and which data to drop.
If you want to stop recording it is better to send an EOS down the pipeline and then wait for the EOS message on the bus.
Gruesse

-----Ursprüngliche Nachricht-----
Von: gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> Im Auftrag von watertreader
Gesendet: Mittwoch, 7. April 2021 08:29
An: gstreamer-devel at lists.freedesktop.org
Betreff: Getting pipeline for GstRTSPServer

Hi,

GstRTSPServer is used in my appplication to launch a video stream. However I would require greater control (to start/stop/record/Restream a file) which can only be achieve if I have the access to the pipeline object?

Is there a way beside subclassing GstRTSPMEdiaFactory to get GstPipeline (or maybe to get GstRTSPMedia or GstBin)? Or is there other way to do the above

Also would need some comments on the following control techniques
  >>>>   using valve(to control for start/stop/record) 
 >>>>   using threads... maybe start video recording in Gthreads... then
when time comes to stop video recording... kill the threads

Thanks 
  




--
Sent from: https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgstreamer-devel.966125.n4.nabble.com%2F&data=04%7C01%7C%7Ce478b50505574555447608d8f9b66e34%7C28042244bb514cd680347776fa3703e8%7C1%7C1%7C637533909221467636%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=FM5V9CcnozeMQeLA%2B%2FFLhM6pe7jR9w7mi0RL1dnDpR4%3D&reserved=0
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fgstreamer-devel&data=04%7C01%7C%7Ce478b50505574555447608d8f9b66e34%7C28042244bb514cd680347776fa3703e8%7C1%7C1%7C637533909221467636%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=Orm9oCDGWpAmV5qm%2B58aFfWLilYsbplrxFeYnm8Oshw%3D&reserved=0


More information about the gstreamer-devel mailing list