Pipeline resistant to CSI Camera disconnect.

Dirtec dirtech at covarians.eu
Wed Jul 13 06:02:37 UTC 2022


Hello,

Thanks for the example. But I still do no catch how the appsrc/appsink 
can help me  continuing the record on the second camera when the first 
fails.

Could you please show what the pipeline would look like with 
appsrc/appsink ?

Regards.

Frederic

Le 13/07/2022 à 01:43, Michael Gruner a écrit :
> There are some nice appsink/appsrc examples in the gst-plugins-bad repo:
>
> https://github.com/GStreamer/gst-plugins-base/blob/master/tests/examples/app/appsink-src.c
>
> Michael
>
>> On 12 Jul 2022, at 14:58, Dirtec via gstreamer-devel 
>> <gstreamer-devel at lists.freedesktop.org> wrote:
>>
>>
>>
>> Hello,
>>
>> Thanks for the hint.
>>
>> I am new to GStreamer so could you explain how to use appsrc/appsink  
>> for my usecase ?
>>
>> Thanks
>>
>> Frederic
>>
>> Le 12/07/2022 à 13:35, Nicolas Dufresne a écrit :
>>>
>>>
>>> Le lun. 11 juill. 2022, 17 h 30, Dirtec via gstreamer-devel 
>>> <gstreamer-devel at lists.freedesktop.org> a écrit :
>>>
>>>     Hello,
>>>
>>>     I have the following pipeline running on a Jetson Xavier NX with
>>>     2 Li-IMX390 camera.
>>>
>>>     nvarguscamerasrc sensor-id=0 name=video_element_0 !
>>>     "video/x-raw(memory:NVMM),width=1920,height=1080,format=NV12,framerate=30/1"
>>>     ! queue ! nvv4l2h265enc control-rate=0 profile=1 ! h265parse !
>>>     queue ! mpegtsmux name=mux ! filesink location="test.ts"
>>>     name=filesink_element \
>>>     nvarguscamerasrc sensor-id=1 name=video_element_1 !
>>>     "video/x-raw(memory:NVMM),width=1920,height=1080,format=NV12,framerate=30/1"
>>>     ! queue ! nvv4l2h265enc control-rate=0 profile=1 ! h265parse !
>>>     queue ! mux.
>>>
>>>     I would like to modify this pipeline so that when I disconnect a
>>>     camera the other camera continues to record.
>>>
>>>     Any Idea on how to  achieve this ?
>>>
>>>
>>> The most popular approach,.as it's easier is to split your pipeline 
>>> in two. Using appsrc/appsink to bridge the data. As an alternative, 
>>> Ridgerun have an open source element doing this as part of their 
>>> gst-daemon utility.
>>>
>>>     Regards.
>>>
>>>
>>>     Frederic
>>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20220713/bcbfaa63/attachment.htm>


More information about the gstreamer-devel mailing list