[FFmpeg-user] Ffmpeg doesn't recognize /dev/video0 when run as root?

Reindl Harald h.reindl at thelounge.net
Wed Feb 22 19:20:58 EET 2017

Am 22.02.2017 um 18:17 schrieb christina zou:
> Thanks for the tip.
> To be honest, I'm hacking on a personal project for fun, security isn't
> really a concern.

i better don't comment that attitude which leads to trained misbehavior 
in general....

> Raspberry Pi (which I'm using) recommends placing startup scripts in
> rc.local in its official documentation:
> https://www.raspberrypi.org/documentation/linux/usage/rc-local.md
> <https://www.raspberrypi.org/documentation/linux/usage/rc-local.md>
> However, if /dev/video0 can't be recognized as root, I'll follow your
> advice and run my Ffmpeg command elsewhere.

i said "man su"
su -c "command" - user

> On Wed, Feb 22, 2017 at 9:09 AM, Reindl Harald <h.reindl at thelounge.net>
> wrote:
>> Am 22.02.2017 um 18:07 schrieb christina zou:
>>> better question - why would anybody start anything dangerous like
>>> multimedia encoders as root? maybe something like SELinux/appamor is
>>> protecting your from yourself
>>> You are probably right.
>>> I want a Ffmpeg command to automatically start when I boot my Pi, without
>>> any interfacing required (login/authentication). I've currently stuck the
>>> command in /etc/rc.local, where everything runs as root. Do you know where
>>> to better place it?
>> surely, a proper service which drops to a restricted user
>> with systemd a few lines, for sysvinit there are thousands of explaes how
>> to start a service proper, and if you don't get something better just "man
>> su"
>> on proper systems rc.local died in 2011....

More information about the ffmpeg-user mailing list