ffmpeg/formats
This commit is contained in:
parent
da4ec33554
commit
3e0459b85c
1 changed files with 13 additions and 0 deletions
13
sh/ffmpeg.sh
13
sh/ffmpeg.sh
|
@ -8,3 +8,16 @@ rwx_ffmpeg_devices_reset() {
|
|||
modprobe --remove "${module}" &&
|
||||
modprobe "${module}"
|
||||
}
|
||||
|
||||
# ╭────────┬────────┬─────────╮
|
||||
# │ ffmpeg │ device │ formats │
|
||||
# ╰────────┴────────┴─────────╯
|
||||
|
||||
rwx_ffmpeg_device_formats() {
|
||||
local device="${1}"
|
||||
[ -n "${device}" ] || device="/dev/video0"
|
||||
ffmpeg \
|
||||
-f "v4l2" \
|
||||
-list_formats "all" \
|
||||
-i "${device}"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue