Realtime priority
Mathias Gyllengahm
lunarshuttle at gmail.com
Tue Feb 22 07:49:16 PST 2011
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...
BR,
Mathias
2011/2/22 Michael Trimarchi <michael at panicking.kicks-ass.org>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi
>
> On 02/22/2011 03:16 PM, Mathias Gyllengahm wrote:
> > 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)'
> >
>
> Use the examples inside the gstreamer source code directory. Thread rt pull
>
> Michael Trimarchi
>
> > 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
> >
> >
> >
> >
> > _______________________________________________
> > gstreamer-devel mailing list
> > gstreamer-devel at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJNY8ZkAAoJEJJLw+x5tkpwySQH/29KPAimO9X8xR6FgDLpHn3w
> 3SQzLr8b55tiPhCM4c/PO3+qmCIj/jwfDPyAyYkQnFTrKsGHjTslzykCkLRHDohH
> zKAc/m8bMGiDsCKI3++J6N1iVDSYTtLx72j0PrgpeMG7bbMmX2zpbKS15cjaD8IY
> L61oo9ha+bSDuascHrr5wSk3lUpUDFzzaWGcGpcw+CmUxwRJbu4yHuK4hOXzg9So
> bh8q/CI1lIJPVceqBs2zl+XyKh598Z5/wNISSL7cX6RXQbl+VhVAF2J8dxJxy4z1
> UQVweHDUTKRHYtT4gOUN1QMNq4CyUuqSEg+97ql4Lh/exl5MhfeCwYMVrCGR/bA=
> =up4s
> -----END PGP SIGNATURE-----
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110222/02957419/attachment.htm>
More information about the gstreamer-devel
mailing list