<div dir="ltr"><div>Hi Tim,</div><div><br></div><div>There are not errors with the changes you suggest but it seems that the scaling process is not working because</div><div>the video has lot of artifacts and this happen when Galaxy mini 2 mobile phone receives video with a resolution</div>

<div>greater than 320x240.</div><div><br></div><div>Thanks and Regards.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/9/28 Tim-Philipp Müller <span dir="ltr"><<a href="mailto:t.i.m@zen.co.uk" target="_blank">t.i.m@zen.co.uk</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Fri, 2013-09-27 at 14:30 +0200, JPM wrote:<br>
<br>
Hi,<br>
<br>
> The Android device (Samsung Galaxy mini 2, Android 2.3.6) is receiving<br>
> a video stream H264 over RTP over UDP.<br>
> The video resolution is 1024x768 but I want to downscaling it to<br>
> 320x240 with this pipeline :<br>
><br>
><br>
> data->pipeline = gst_parse_launch("udpsrc port=5001 !<br>
> application/x-rtp, payload=96 ! rtph264depay ! ffdec_h264 !<br>
> videoscale ! video/x-raw, width=320, height=240 ! autovideosink<br>
> sync=false", &error);<br>
><br>
><br>
> It does not work, there is the following error : Unable to build<br>
> pipeline: could not link videoscale0 to autovideosink0<br>
<br>
</div>I'm guessing that you're using the old 0.10 version and not the new<br>
official GStreamer 1.0 SDK packages from<br>
<a href="http://gstreamer.freedesktop.org/pkg/android/" target="_blank">http://gstreamer.freedesktop.org/pkg/android/</a><br>
<br>
The format for raw audio/video caps was slightly different in 0.10. You<br>
are using the 1.0-style caps here in your pipeline.<br>
<br>
Try something like:<br>
<div class="im"><br>
udpsrc port=5001 ! application/x-rtp, payload=96 ! rtph264depay !<br>
</div>ffdec_h264 ! videoscale ! video/x-raw-yuv,width=320,height=240 !<br>
ffmpegcolorspace ! autovideosink sync=false<br>
<br>
(in case you ever do want to show the stream with proper sync I would<br>
suggest you also add a gstrtpjitterbuffer after the udpsrc).<br>
<br>
Cheers<br>
 -Tim<br>
<br>
<br>
_______________________________________________<br>
gstreamer-android mailing list<br>
<a href="mailto:gstreamer-android@lists.freedesktop.org">gstreamer-android@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-android" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-android</a><br>
</blockquote></div><br></div>