ffmpeg/devices/reset

This commit is contained in:
Marc Beninca 2025-01-12 16:26:56 +01:00
parent 4482928678
commit 4f085af44e
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

10
sh/ffmpeg.sh Normal file
View file

@ -0,0 +1,10 @@
# ╭────────┬─────────┬───────╮
# │ ffmpeg │ devices │ reset │
# ╰────────┴─────────┴───────╯
_rwx_cmd_rwx_ffmpeg_devices_reset() { rwx_ffmpeg_devices_reset "${@}"; }
rwx_ffmpeg_devices_reset() {
local module="uvcvideo"
modprobe --remove "${module}" &&
modprobe "${module}"
}