From: Konstantin Lepikhov <lakostis@unsafe.ru>
To: ALT Linux Hardware Mailing List <hardware@lists.altlinux.org>
Subject: [Hardware] I: v4l2loopback
Date: Sat, 5 Dec 2020 22:26:14 +0100
Message-ID: <20201205212614.GA3765025@lks.home> (raw)
Привет!
Я собрал[1] в сизиф ядерные модули и утилиты проекта
https://github.com/umlaeute/v4l2loopback, которые позволяют создавать
video4linux loopback устройства, видеопоток в которые может идти из
другого приложения. В практическом плане это позволяет использовать
например DLSR камеру или камеру смартфона в качестве вебкамеры.
см. https://daniel.lawrence.lu/blog/y2020m03d31/ и
https://medium.com/nerdery/dslr-webcam-setup-for-linux-9b6d1b79ae22 как
пример использования.
От себя добавлю, что вместо vlc можно использовать mpv:
(запускаем в одном терминале)
$ gphoto2 --stdout --capture-movie |ffmpeg -i - -vcodec rawvideo -pix_fmt
yuv420p -f v4l2 /dev/video2
где video2 это loopback для dslr
(запускаем mpv)
$ mpv --demuxer-lavf-format=video4linux2 av://v4l2:/dev/video2
--profile=low-latency --untimed
1. http://webery.altlinux.org/task/262976
У меня данная связка работает с Sony A7R3 "из коробки".
--
WBR et al.
next reply other threads:[~2020-12-05 21:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-05 21:26 Konstantin Lepikhov [this message]
2021-01-21 19:42 ` Alexei V. Mezin
2021-03-24 21:56 ` Konstantin Lepikhov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201205212614.GA3765025@lks.home \
--to=lakostis@unsafe.ru \
--cc=hardware@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux hardware support
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/hardware/0 hardware/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 hardware hardware/ http://lore.altlinux.org/hardware \
hardware@altlinux.ru hardware@lists.altlinux.org hardware@lists.altlinux.ru hardware@lists.altlinux.com hardware@altlinux.org
public-inbox-index hardware
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.hardware
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git