<div dir="ltr">so the answer is:<div style>use <span style="font-family:arial,sans-serif;font-size:13px"> ffenc_h263 </span><span style="font-family:arial,sans-serif;font-size:13px">! rtph263ppay instead of </span><span style="font-family:arial,sans-serif;font-size:13px"> ffenc_h263p !</span><span style="font-family:arial,sans-serif;font-size:13px"> rtph263ppay</span></div>
<div style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">I don't know why, so please, explain people!:D</span></div><div style>
<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Mar 16, 2013 at 11:38 AM, Aleksander <span dir="ltr"><<a href="mailto:aleek998@gmail.com" target="_blank">aleek998@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Naaah, still not working :)<br>
<br>
I've added videoscale, because I was not sure, if rtph263ppay likes<br>
640x480 video:<br>
<div class="im"><br>
gst-launch-0.10 -v -e v4l2src device=/dev/video0 \<br>
! 'image/jpeg,width=640,height=480,framerate=30/1'  \<br>
! jpegdec  \<br>
</div>! videoscale \<br>
! "video/x-raw-yuv, format=(fourcc)I420, width=(int)352,<br>
height=(int)288, framerate=(fraction)30/1"\<br>
! ffmpegcolorspace \<br>
! ffenc_h263p \<br>
! rtph263ppay \<br>
! fakesink<br>
<br>
Still, it doesn't work unless I remove rtph263ppay. Here is some<br>
output of the working (without rtph263ppay) example, maybe it will<br>
give you some clue:<br>
<div class="im">Setting pipeline to PAUSED ...<br>
</div>/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps =<br>
image/jpeg, width=(int)640, height=(int)480,<br>
interlaced=(boolean)false, pixel-aspect-ratio=(fraction)1/1,<br>
framerate=(fraction)30/1, format=(fourcc)I420, sof-marker=(int)0<br>
Pipeline is live and does not need PREROLL ...<br>
Setting pipeline to PLAYING ...<br>
New clock: GstSystemClock<br>
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps =<br>
image/jpeg, width=(int)640, height=(int)480,<br>
interlaced=(boolean)false, pixel-aspect-ratio=(fraction)1/1,<br>
framerate=(fraction)30/1, format=(fourcc)I420, sof-marker=(int)0<br>
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps =<br>
image/jpeg, width=(int)640, height=(int)480,<br>
interlaced=(boolean)false, pixel-aspect-ratio=(fraction)1/1,<br>
framerate=(fraction)30/1, format=(fourcc)I420, sof-marker=(int)0<br>
/GstPipeline:pipeline0/GstJpegDec:jpegdec0.GstPad:sink: caps =<br>
image/jpeg, width=(int)640, height=(int)480,<br>
interlaced=(boolean)false, pixel-aspect-ratio=(fraction)1/1,<br>
framerate=(fraction)30/1, format=(fourcc)I420, sof-marker=(int)0<br>
/GstPipeline:pipeline0/GstJpegDec:jpegdec0.GstPad:src: caps =<br>
<div class="im">video/x-raw-yuv, format=(fourcc)I420, width=(int)640, height=(int)480,<br>
framerate=(fraction)30/1<br>
</div>/GstPipeline:pipeline0/GstVideoScale:videoscale0.GstPad:src: caps =<br>
video/x-raw-yuv, width=(int)352, height=(int)288,<br>
framerate=(fraction)30/1, format=(fourcc)I420,<br>
pixel-aspect-ratio=(fraction)12/11<br>
/GstPipeline:pipeline0/GstVideoScale:videoscale0.GstPad:sink: caps =<br>
<div class="im">video/x-raw-yuv, format=(fourcc)I420, width=(int)640, height=(int)480,<br>
framerate=(fraction)30/1<br>
</div>/GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:src: caps =<br>
video/x-raw-yuv, width=(int)352, height=(int)288,<br>
framerate=(fraction)30/1, format=(fourcc)I420,<br>
pixel-aspect-ratio=(fraction)12/11<br>
/GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:sink: caps =<br>
video/x-raw-yuv, width=(int)352, height=(int)288,<br>
framerate=(fraction)30/1, format=(fourcc)I420,<br>
pixel-aspect-ratio=(fraction)12/11<br>
/GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0.GstPad:src: caps =<br>
video/x-raw-yuv, width=(int)352, height=(int)288,<br>
framerate=(fraction)30/1, format=(fourcc)I420,<br>
pixel-aspect-ratio=(fraction)12/11<br>
/GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0.GstPad:sink: caps =<br>
video/x-raw-yuv, width=(int)352, height=(int)288,<br>
framerate=(fraction)30/1, format=(fourcc)I420,<br>
pixel-aspect-ratio=(fraction)12/11<br>
/GstPipeline:pipeline0/ffenc_h263p:ffenc_h263p0.GstPad:src: caps =<br>
video/x-h263, width=(int)352, height=(int)288,<br>
<div class="im">framerate=(fraction)30/1, variant=(string)itu,<br>
h263version=(string)h263p, annex-f=(boolean)true,<br>
annex-j=(boolean)true, annex-i=(boolean)true, annex-t=(boolean)true<br>
</div>/GstPipeline:pipeline0/ffenc_h263p:ffenc_h263p0.GstPad:sink: caps =<br>
video/x-raw-yuv, width=(int)352, height=(int)288,<br>
framerate=(fraction)30/1, format=(fourcc)I420,<br>
pixel-aspect-ratio=(fraction)12/11<br>
/GstPipeline:pipeline0/GstFakeSink:fakesink0.GstPad:sink: caps =<br>
video/x-h263, width=(int)352, height=(int)288,<br>
<div class="im">framerate=(fraction)30/1, variant=(string)itu,<br>
h263version=(string)h263p, annex-f=(boolean)true,<br>
annex-j=(boolean)true, annex-i=(boolean)true, annex-t=(boolean)true<br>
</div>/GstPipeline:pipeline0/GstFakeSink:fakesink0: last-message = "preroll<br>
 ******* "<br>
/GstPipeline:pipeline0/GstFakeSink:fakesink0: last-message = "event<br>
******* (fakesink0:sink) E (type: 102, GstEventNewsegment,<br>
update=(boolean)false, rate=(double)1, applied-rate=(double)1,<br>
format=(GstFormat)GST_FORMAT_TIME, start=(gint64)0, stop=(gint64)-1,<br>
position=(gint64)0;) 0x1b5b140"<br>
/GstPipeline:pipeline0/GstFakeSink:fakesink0: last-message = "chain<br>
******* (fakesink0:sink) (15059 bytes, timestamp: 0:00:00.103378443,<br>
duration: 0:00:00.000000000, offset: -1, offset_end: -1, flags: 0 )<br>
0x7fa290002150"<br>
[...]<br>
<div><div class="h5"><br>
On Sun, Mar 10, 2013 at 4:56 PM, Nicolas Dufresne<br>
<<a href="mailto:nicolas.dufresne@collabora.co.uk">nicolas.dufresne@collabora.co.uk</a>> wrote:<br>
> Le dimanche 10 mars 2013 à 12:28 +0100, Aleksander Dutkowski a écrit :<br>
><br>
> but this one...<br>
> gst-launch-0.10 -v -e v4l2src device=/dev/video0 \<br>
> ! 'image/jpeg,width=640,height=480,framerate=30/1'  \<br>
> ! jpegdec  \<br>
> ! "video/x-raw-yuv, format=(fourcc)I420, width=(int)640,<br>
> height=(int)480, framerate=(fraction)30/1" \<br>
> ! ffmpegcolorspace \<br>
> ! ffenc_h263p \<br>
> ! "video/x-h263, width=(int)640, height=(int)480,<br>
> framerate=(fraction)30/1, variant=(string)itu,<br>
> h263version=(string)h263p, annex-f=(boolean)true,<br>
> annex-j=(boolean)true, annex-i=(boolean)true, annex-t=(boolean)true" \<br>
> ! rtph263ppay \<br>
> ! fakesink<br>
><br>
> ... results in following error:<br>
> Setting pipeline to PAUSED ...<br>
> ERROR: Pipeline doesn't want to pause.<br>
> ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could<br>
> not negotiate format<br>
> Additional debug info:<br>
> gstbasesrc.c(2830): gst_base_src_start ():<br>
> /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:<br>
> Check your filtered caps, if any<br>
> Setting pipeline to NULL ...<br>
> Freeing pipeline ...<br>
><br>
> I'm confused, why v4l2src is crashing, as I add element to the end of<br>
> the pipe. I checked src and sink of all elements, and it looks good.<br>
><br>
><br>
> My suggestion would be to not force the caps as you are doing, and let the<br>
> element negotiate. In my opinion, only the caps filster after the source is<br>
> useful. If you need specific encoder parameter, set them on encoder<br>
> properties instead. This will most likely work.<br>
><br>
> Nicolas<br>
><br>
</div></div>> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
><br>
</blockquote></div><br></div>