Thanks for fast reply! Sorry, I&#39;m not really sure which example you mean - and if it&#39;s applicable to gst-launch. I find ./tests/examples/streams/rtpool-test, but it&#39;s c-code and I&#39;m not sure what to make of it...<div>
<br></div><div>BR,</div><div>Mathias<br><div><br><br><div class="gmail_quote">2011/2/22 Michael Trimarchi <span dir="ltr">&lt;<a href="mailto:michael@panicking.kicks-ass.org">michael@panicking.kicks-ass.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Hi<br>
<div class="im"><br>
On 02/22/2011 03:16 PM, Mathias Gyllengahm wrote:<br>
&gt; Hi again,<br>
&gt;<br>
&gt; I&#39;d like to let my gstreamer process have realtime priority. I have tried to<br>
&gt; do it with prefix the whole thing with &quot;chrt -r -p 99&quot; but I get:<br>
&gt;<br>
&gt; GThread-ERROR **: file /build/buildd/glib2.0-2.24.1/gthread/gthread-posix.c:<br>
&gt; line 348 (g_thread_create_posix_impl): error &#39;Invalid argument&#39; during<br>
&gt; &#39;pthread_attr_setschedparam (&amp;attr, &amp;sched)&#39;<br>
&gt;<br>
<br>
</div>Use the examples inside the gstreamer source code directory. Thread rt pull<br>
<br>
Michael Trimarchi<br>
<div><div></div><div class="h5"><br>
&gt; Doing a chrt by pid afterwards has no effect at all. This is my pipeline,<br>
&gt; and it&#39;s clear that it has problems when cpu load goes up - and I&#39;d like to<br>
&gt; avoid that. I&#39;ve seen something about realtime priorities when it comes to<br>
&gt; using the API - but is there a way to do it when using gst-launch?<br>
&gt;<br>
&gt; Thanks in advance,<br>
&gt; /Mathias<br>
&gt;<br>
&gt; /usr/local/bin/gst-launch-0.10 -v<br>
&gt; --gst-plugin-path=/usr/local/lib/gstreamer-0.10 \<br>
&gt;     v4l2src \<br>
&gt;     ! videorate \<br>
&gt;     ! video/x-raw-yuv,width=320,height=240,framerate=15/1 \<br>
&gt;     ! ffmpegcolorspace \<br>
&gt;     ! x264enc bitrate=152 subme=4 b-pyramid=true weightb=true \<br>
&gt;     ! queue2 \<br>
&gt;     ! flvmux name=mux \<br>
&gt;     alsasrc device=hw:0,0 \<br>
&gt;     ! audio/x-raw-int,rate=22050,channels=2,depth=16 \<br>
&gt;     ! audiorate \<br>
&gt;     ! queue2 max-size-buffers=600 max-size-bytes=0 max-size-time=0 \<br>
&gt;     ! audioconvert \<br>
&gt;     ! lamemp3enc target=1 bitrate=40 mono=true encoding-engine-quality=1<br>
&gt; target=bitrate \<br>
&gt;     ! mux. mux. \<br>
&gt;     ! queue2 \<br>
&gt;     ! filesink location=outfile.flv sync=false<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; gstreamer-devel mailing list<br>
&gt; <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
&gt; <a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.10 (GNU/Linux)<br>
Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org/" target="_blank">http://enigmail.mozdev.org/</a><br>
<br>
iQEcBAEBAgAGBQJNY8ZkAAoJEJJLw+x5tkpwySQH/29KPAimO9X8xR6FgDLpHn3w<br>
3SQzLr8b55tiPhCM4c/PO3+qmCIj/jwfDPyAyYkQnFTrKsGHjTslzykCkLRHDohH<br>
zKAc/m8bMGiDsCKI3++J6N1iVDSYTtLx72j0PrgpeMG7bbMmX2zpbKS15cjaD8IY<br>
L61oo9ha+bSDuascHrr5wSk3lUpUDFzzaWGcGpcw+CmUxwRJbu4yHuK4hOXzg9So<br>
bh8q/CI1lIJPVceqBs2zl+XyKh598Z5/wNISSL7cX6RXQbl+VhVAF2J8dxJxy4z1<br>
UQVweHDUTKRHYtT4gOUN1QMNq4CyUuqSEg+97ql4Lh/exl5MhfeCwYMVrCGR/bA=<br>
=up4s<br>
-----END PGP SIGNATURE-----<br>
_______________________________________________<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>
</blockquote></div><br></div></div>