<div dir="ltr"><div>Hi,</div><div><br></div><div>If I do not scale there are artefacts only when mobile phone receives video with a</div><div>resolution greater than 320x240, with 320x240 everything is fine.</div><div><br>

</div><div>I have added a queue (I can not add gstrtpjitterbuffer because it is not included</div><div>in Gstreamer SDK for Android) but artefacts do not disappear.</div><div><br></div><div>I agree with you it is a CPU processing capacity problem and I think it is impossible</div>

<div>to fix it.</div><div><br></div><div><br></div><div>Cheers.</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">On Sat, 2013-09-28 at 13:04 +0200, JPM wrote:<br>
<br>
Hi,<br>
<div class="im"><br>
> There are not errors with the changes you suggest but it seems that<br>
> the scaling process is not working because<br>
> the video has lot of artifacts and this happen when Galaxy mini 2<br>
> mobile phone receives video with a resolution<br>
> greater than 320x240.<br>
<br>
</div>Well, you are both decoding and scaling in software here on an embedded<br>
system. First thing to check: do you get artefacts if you don't scale as<br>
well. Secondly: add an gstrtpjitterbuffer and/or a queue after udpsrc -<br>
otherwise udp packets will be dropped if the decoding/scaling takes too<br>
long, and then you'll get artefacts. This might happen in any case if<br>
decoding/scaling takes too much cpu.<br>
<br>
Cheers<br>
<span class="HOEnZb"><font color="#888888"> -Tim<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
> 2013/9/28 Tim-Philipp Müller <<a href="mailto:t.i.m@zen.co.uk">t.i.m@zen.co.uk</a>><br>
>         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<br>
>         receiving<br>
>         > a video stream H264 over RTP over UDP.<br>
>         > The video resolution is 1024x768 but I want to downscaling<br>
>         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 !<br>
>         autovideosink<br>
>         > sync=false", &error);<br>
>         ><br>
>         ><br>
>         > It does not work, there is the following error : Unable to<br>
>         build<br>
>         > pipeline: could not link videoscale0 to autovideosink0<br>
><br>
><br>
>         I'm guessing that you're using the old 0.10 version and not<br>
>         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<br>
>         0.10. You<br>
>         are using the 1.0-style caps here in your pipeline.<br>
><br>
>         Try something like:<br>
><br>
>         udpsrc port=5001 ! application/x-rtp, payload=96 !<br>
>         rtph264depay !<br>
><br>
>         ffdec_h264 ! videoscale !<br>
>         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<br>
>         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>
><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>
<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>
</div></div></blockquote></div><br></div>