<div>Hi again,</div><div><br></div><div>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:</div><div><br></div><div>
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)'</div>
<div><br></div><div>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?</div>
<div><br></div><div>Thanks in advance,</div><div>/Mathias</div><div><br></div><div>/usr/local/bin/gst-launch-0.10 -v --gst-plugin-path=/usr/local/lib/gstreamer-0.10 \</div><div> v4l2src \</div>
<div> ! videorate \</div><div> ! video/x-raw-yuv,width=320,height=240,framerate=15/1 \</div><div> ! ffmpegcolorspace \</div><div> ! x264enc bitrate=152 subme=4 b-pyramid=true weightb=true \</div>
<div> ! queue2 \</div><div> ! flvmux name=mux \</div><div> alsasrc device=hw:0,0 \</div><div> ! audio/x-raw-int,rate=22050,channels=2,depth=16 \</div><div> ! audiorate \</div><div> ! queue2 max-size-buffers=600 max-size-bytes=0 max-size-time=0 \</div>
<div> ! audioconvert \</div><div> ! lamemp3enc target=1 bitrate=40 mono=true encoding-engine-quality=1 target=bitrate \</div><div> ! mux. mux. \</div><div> ! queue2 \</div><div> ! filesink location=outfile.flv sync=false</div>
<div><br></div>