Realtime priority
Mathias Gyllengahm
lunarshuttle at gmail.com
Tue Feb 22 06:16:28 PST 2011
Hi again,
I'd like to let my gstreamer process have realtime priority. I have tried to
do it with prefix the whole thing with "chrt -r -p 99" but I get:
GThread-ERROR **: file /build/buildd/glib2.0-2.24.1/gthread/gthread-posix.c:
line 348 (g_thread_create_posix_impl): error 'Invalid argument' during
'pthread_attr_setschedparam (&attr, &sched)'
Doing a chrt by pid afterwards has no effect at all. This is my pipeline,
and it's clear that it has problems when cpu load goes up - and I'd like to
avoid that. I've seen something about realtime priorities when it comes to
using the API - but is there a way to do it when using gst-launch?
Thanks in advance,
/Mathias
/usr/local/bin/gst-launch-0.10 -v
--gst-plugin-path=/usr/local/lib/gstreamer-0.10 \
v4l2src \
! videorate \
! video/x-raw-yuv,width=320,height=240,framerate=15/1 \
! ffmpegcolorspace \
! x264enc bitrate=152 subme=4 b-pyramid=true weightb=true \
! queue2 \
! flvmux name=mux \
alsasrc device=hw:0,0 \
! audio/x-raw-int,rate=22050,channels=2,depth=16 \
! audiorate \
! queue2 max-size-buffers=600 max-size-bytes=0 max-size-time=0 \
! audioconvert \
! lamemp3enc target=1 bitrate=40 mono=true encoding-engine-quality=1
target=bitrate \
! mux. mux. \
! queue2 \
! filesink location=outfile.flv sync=false
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110222/06c3afcb/attachment.html>
More information about the gstreamer-devel
mailing list