struggling with shmsink/src and mpeg-4

Tim Müller tim at
Mon Apr 4 09:22:34 UTC 2016

On Mon, 2016-04-04 at 11:09 +0200, Hoel Vasseur wrote:

Hi Hoel,

> I am trying to redirect the sink of a pipeline to another one. I saw
> that intervideosink/src can be used to do that, but I am using videos
> with different encoding (RAW, J2K, MEPG-4). So now I am struggling
> with using shmsik/src. It works fine with RAW and J2K but not with
> MPEG-4 videos.  I think the problem is on caps transmission. In the
> first pipeline I am receiving the stream from updsrc, and write the
> data into a socket. In the second pipeline I am reading into the same
> socket, but it seems that gstreamer isn't able to payload the stream
> read from the socket to rtp packet.

Not sure what your setup/pipeline looks like exactly, could you

> After several days of struggling, I am still failing to use
> shmsink/src with MPEG-4 videos. Does any one have an idea about how
> to do that?

For MPEG-4 video, you may need to copy over the caps somehow from the
sink to the src, the decoder may need the 'codec_data' field from the
caps to initialise itself.


Tim Müller, Centricular Ltd -

More information about the gstreamer-devel mailing list