Getting pipeline for GstRTSPServer

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Getting pipeline for GstRTSPServer

watertreader
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: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

AW: Getting pipeline for GstRTSPServer

Thornton, Keith
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 <[hidden email]> Im Auftrag von watertreader
Gesendet: Mittwoch, 7. April 2021 08:29
An: [hidden email]
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&amp;data=04%7C01%7C%7Ce478b50505574555447608d8f9b66e34%7C28042244bb514cd680347776fa3703e8%7C1%7C1%7C637533909221467636%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=FM5V9CcnozeMQeLA%2B%2FFLhM6pe7jR9w7mi0RL1dnDpR4%3D&amp;reserved=0
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fgstreamer-devel&amp;data=04%7C01%7C%7Ce478b50505574555447608d8f9b66e34%7C28042244bb514cd680347776fa3703e8%7C1%7C1%7C637533909221467636%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=Orm9oCDGWpAmV5qm%2B58aFfWLilYsbplrxFeYnm8Oshw%3D&amp;reserved=0
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel