Still stuck
Tim-Philipp Müller
t.i.m at zen.co.uk
Thu Mar 7 10:43:56 PST 2013
On Thu, 2013-03-07 at 08:20 -0700, Gary Thomas wrote:
> Sorry if this is an old record, but I'm getting nowhere...
>
> Why does this pipeline work:
> gst-launch -e -vvv shmsrc socket-path=/tmp/shm-stream.sock \
> ! "application/x-rtp, sampling=(string)YCbCr-4:2:2, width=(string)720, height=(string)480, payload=(int)96" \
> ! rtpvrawdepay \
> ! fakesink
>
> and this one does not?
> gst-launch -e -vvv shmsrc socket-path=/tmp/shm-stream.sock \
> ! "application/x-rtp, sampling=(string)YCbCr-4:2:2, width=(string)720, height=(string)480, payload=(int)96" \
> ! rtpvrawdepay \
> ! ffenc_mpeg4 \
> ! fakesink
>
> Note: I only added the mpeg4 encoder element which is compatible
> and there are no errors/complaints.
>
> The elements all have compatible [default] caps and it should
> just work. If I trade the 'shmsrc'+'rtpvrawdepay' for something
> like 'videotestsrc', both can work.
Well, since you are passing -v to gst-launch already, perhaps have a
look at the caps, different caps might get negotiated.
I suspect ffenc_mpeg4 only takes I420 as input. Try adding an
ffmpegcolorspace in front of the encoder.
Cheers
-Tim
More information about the gstreamer-devel
mailing list