converting jpeg to h263p and streaming over RTP
Nicolas Dufresne
nicolas.dufresne at collabora.co.uk
Sun Mar 10 08:56:30 PDT 2013
Le dimanche 10 mars 2013 à 12:28 +0100, Aleksander Dutkowski a écrit :
> but this one...
> gst-launch-0.10 -v -e v4l2src device=/dev/video0 \
> ! 'image/jpeg,width=640,height=480,framerate=30/1' \
> ! jpegdec \
> ! "video/x-raw-yuv, format=(fourcc)I420, width=(int)640,
> height=(int)480, framerate=(fraction)30/1" \
> ! ffmpegcolorspace \
> ! ffenc_h263p \
> ! "video/x-h263, width=(int)640, height=(int)480,
> framerate=(fraction)30/1, variant=(string)itu,
> h263version=(string)h263p, annex-f=(boolean)true,
> annex-j=(boolean)true, annex-i=(boolean)true, annex-t=(boolean)true" \
> ! rtph263ppay \
> ! fakesink
>
> ... results in following error:
> Setting pipeline to PAUSED ...
> ERROR: Pipeline doesn't want to pause.
> ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could
> not negotiate format
> Additional debug info:
> gstbasesrc.c(2830): gst_base_src_start ():
> /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
> Check your filtered caps, if any
> Setting pipeline to NULL ...
> Freeing pipeline ...
>
> I'm confused, why v4l2src is crashing, as I add element to the end of
> the pipe. I checked src and sink of all elements, and it looks good.
My suggestion would be to not force the caps as you are doing, and let
the element negotiate. In my opinion, only the caps filster after the
source is useful. If you need specific encoder parameter, set them on
encoder properties instead. This will most likely work.
Nicolas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130310/661ee6da/attachment-0001.html>
More information about the gstreamer-devel
mailing list