Bernhard Praschinger wrote:

With wich user do you start lavrec ?

A normal user.

The Real-time scheduling can only be enabled by the root user for a
process. So you have start lavrec as root or configure sudo. To record with th RT scheduling.

I setuid root the lavrec binary, which sets the effective uid to root, whereas using sudo sets both the real and effective uids to root. But the priority change of the lavrec audio thread works fine when only the effective uid is root, and the same happens with the video task when the code is changed as I've outlined. There's no need to have the real uid set to root. The problem is that the original code changes the effective uid back to the normal user prior to attempting to change the priority of the video task.

Mark



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to