linuxinterruptv4l2v4l

How to stop v4l2-ctl streaming?


Suppose I run v4l2-ctl --stream-mmap=3 --stream-to=/dev/null, how to stop recording without pressing Ctrl+C for interrupt, from another shell console for example?


Solution

  • Unless they have added a better functionality, you will have to simply signal the process from outside.

    Either v4l2-ctl ... & V4L2_CTL_PID=$! and kill -TERM $V4L2_CTL_PID

    or maybe simply killall v4l2-ctl.