So... it's not possible with realtime priority when using gst-launch today? Is that the conclusion?<div>/Mathias<br><br><div class="gmail_quote">2011/2/22 Mathias Gyllengahm <span dir="ltr"><<a href="mailto:lunarshuttle@gmail.com">lunarshuttle@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Thanks for fast reply! Sorry, I'm not really sure which example you mean - and if it's applicable to gst-launch. I find ./tests/examples/streams/rtpool-test, but it's c-code and I'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"><<a href="mailto:michael@panicking.kicks-ass.org" target="_blank">michael@panicking.kicks-ass.org</a>></span><div>
<div></div><div class="h5"><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><br>
On 02/22/2011 03:16 PM, Mathias Gyllengahm wrote:<br>
> Hi again,<br>
><br>
> I'd like to let my gstreamer process have realtime priority. I have tried to<br>
> do it with prefix the whole thing with "chrt -r -p 99" but I get:<br>
><br>
> GThread-ERROR **: file /build/buildd/glib2.0-2.24.1/gthread/gthread-posix.c:<br>
> line 348 (g_thread_create_posix_impl): error 'Invalid argument' during<br>
> 'pthread_attr_setschedparam (&attr, &sched)'<br>
><br>
<br>
</div>Use the examples inside the gstreamer source code directory. Thread rt pull<br>
<br>
Michael Trimarchi<br>
<div><div></div><div><br>
> Doing a chrt by pid afterwards has no effect at all. This is my pipeline,<br>
> and it's clear that it has problems when cpu load goes up - and I'd like to<br>
> avoid that. I've seen something about realtime priorities when it comes to<br>
> using the API - but is there a way to do it when using gst-launch?<br>
><br>
> Thanks in advance,<br>
> /Mathias<br>
><br>
> /usr/local/bin/gst-launch-0.10 -v<br>
> --gst-plugin-path=/usr/local/lib/gstreamer-0.10 \<br>
> v4l2src \<br>
> ! videorate \<br>
> ! video/x-raw-yuv,width=320,height=240,framerate=15/1 \<br>
> ! ffmpegcolorspace \<br>
> ! x264enc bitrate=152 subme=4 b-pyramid=true weightb=true \<br>
> ! queue2 \<br>
> ! flvmux name=mux \<br>
> alsasrc device=hw:0,0 \<br>
> ! audio/x-raw-int,rate=22050,channels=2,depth=16 \<br>
> ! audiorate \<br>
> ! queue2 max-size-buffers=600 max-size-bytes=0 max-size-time=0 \<br>
> ! audioconvert \<br>
> ! lamemp3enc target=1 bitrate=40 mono=true encoding-engine-quality=1<br>
> target=bitrate \<br>
> ! mux. mux. \<br>
> ! queue2 \<br>
> ! filesink location=outfile.flv sync=false<br>
><br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">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>
-----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" target="_blank">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></div></div><br></div></div>
</blockquote></div><br></div>