rtsp server dynamic pipeline

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

rtsp server dynamic pipeline

Marc
Hello,
 
I want to generate pipelines for rtsp streaming via rtsp server, recording and live preview of a camera source. There can only be 1 instance of the camera source. The live preview pipe should always run. The recording pipe should only be activated when needed.  As far as I know, the rtsp server only runs a pipe when a client is connected. 
 
camerasrc
I
tee - vp8enc - matroskamux - filesink
I
tee - h264enc - rtph264pay
I
displaysink
 
 
How can I combine the rtsp server with the dynamic pipelines? I also want to change properties of the pipelines during runtime (bitrate,....). I already had a look at the interpipes from ridge run. But I had some problems with them and now try to use a low level approach. 
 
Thanks in advance
 
Marc
 
 



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

AW: rtsp server dynamic pipeline

Thornton, Keith

Hi,

In answer to your first question, take a look at the test_appsrc example in the examples subdirectory. That is how I solved a similar problem.

Gruesse

 

Von: gstreamer-devel <[hidden email]> Im Auftrag von [hidden email]
Gesendet: Dienstag, 17. September 2019 20:05
An: [hidden email]
Betreff: rtsp server dynamic pipeline

 

Hello,

 

I want to generate pipelines for rtsp streaming via rtsp server, recording and live preview of a camera source. There can only be 1 instance of the camera source. The live preview pipe should always run. The recording pipe should only be activated when needed.  As far as I know, the rtsp server only runs a pipe when a client is connected. 

 

camerasrc

I

tee - vp8enc - matroskamux - filesink

I

tee - h264enc - rtph264pay

I

displaysink

 

 

How can I combine the rtsp server with the dynamic pipelines? I also want to change properties of the pipelines during runtime (bitrate,....). I already had a look at the interpipes from ridge run. But I had some problems with them and now try to use a low level approach. 

 

Thanks in advance

 

Marc

 

 

 


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: AW: rtsp server dynamic pipeline

Marc
This post was updated on .
Hi,

thanks alot for your answer. I didn't know the appsrc exampe yet. So I have
to exchange buffers manually between appsink and appsrc. I work on embedded
side with jetson nano board. I don't know if buffer exchange of NVMM buffers
works this way?! Otherwise a copy would be necessary which
kills performance.

Is there no way to generate a pipeline which consists of the live preview
and the streaming part and which always exists and runs? This pipeline
should be given to the rtsp server who shouldn't delete it when client
disconnects?

Greetings

Marc



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: AW: rtsp server dynamic pipeline

Nicolas Dufresne-5


Le mer. 18 sept. 2019 13 h 25, Marc <[hidden email]> a écrit :
Hi,

thanks alot for your answer. I didn't know the appsrc exampe yet. So I have
to exchange buffers manually between appsink and appsrc. I work on embedded
side with jetson nano board. I don't know if buffer exchange of NVMM buffers
works this way?! Otherwise a copy to userspace would be necessary which
kills performance.

If you set appropriate caps on appsrc/appsink (with the NVMM caps feature), zero copy should work.

As the server manages the pipeline state, you have no choices but to split in order to ensure the preview/recording keeps running while there is no clients.


Is there no way to generate a pipeline which consists of the live preview
and the streaming part and which always exists and runs? This pipeline
should be given to the rtsp server who doesn't delete it when client
disconnects?

Greetings

Marc



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

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

AW: AW: rtsp server dynamic pipeline

Thornton, Keith
In reply to this post by Marc
Hi,
In answer to the first part, it is possible to re-use the memory in order to avoid a memcpy while assigning a new GstBuffer.
Use gst_buffer_new_wrapped_full and remember to set a free memory function
regards

-----Ursprüngliche Nachricht-----
Von: gstreamer-devel <[hidden email]> Im Auftrag von Marca
Gesendet: Mittwoch, 18. September 2019 19:17
An: [hidden email]
Betreff: Re: AW: rtsp server dynamic pipeline

Hi,

thanks alot for your answer. I didn't know the appsrc exampe yet. So I have to exchange buffers manually between appsink and appsrc. I work on embedded side with jetson nano board. I don't know if buffer exchange of NVMM buffers works this way?! Otherwise a copy to userspace would be necessary which kills performance.

Is there no way to generate a pipeline which consists of the live preview and the streaming part and which always exists and runs? This pipeline should be given to the rtsp server who doesn't delete it when client disconnects?

Greetings

Marc



--
Sent from: https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgstreamer-devel.966125.n4.nabble.com%2F&amp;data=02%7C01%7C%7Cc7effb34379f458392ed08d73c5d31ca%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637044243270406812&amp;sdata=8Y1BSYTYvIbf0EwwV3Ej4%2BnElB4Md8UPeANOm8p8wck%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=02%7C01%7C%7Cc7effb34379f458392ed08d73c5d31ca%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637044243270406812&amp;sdata=DpgAEfWPmr7I%2Baf0XeD8NjldPRCTfdPSn8%2FkBtGROws%3D&amp;reserved=0
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel