Gstreamer shared memory usage

Nicolas Dufresne nicolas at ndufresne.ca
Wed Apr 7 18:44:52 UTC 2021


Le mercredi 07 avril 2021 à 09:52 +0200, Thierry Gayet a écrit :
> Hi,
> 
> I have a question about gstreamer oriented shared memories (shmsink + shmsrc).
> 
> Indeed, entering our pipeline, we have a stream containing h264 for video and
> aac for audio.
> 
> The first test was to demux the audio from the video and send it separately
> into two separate shared memories. The result is a desynchronization between
> audio and video.
> 
> The second test was to keep the audio and video muxed but I don't know if the
> shared memories of gstreamer support this mode as most of the examples show
> the audio and / or the video still managed separately.
> 
> Do you have more information on this subject?

It should work fine for MPEG TS packet. In fact it should work fine with
packetized or non-packetized data. It does not pass any timing information.

The original usage was to pass around RTP packets. It is too slow for raw video
as the data is being copied into the single chunk of SHM allocated.

> 
> I am looking for examples of functional pipelines, advice or optimizations.
> 
> Thank you in advance for your return.
> 
> Regards
> 
> Thierry GAYET
> 
> (Courrouze)
> Village by CA
> 3 avenue Germaine Tillon
> Saint Jacques de la Lande.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




More information about the gstreamer-devel mailing list