From: Vedant Paranjape <vedantparanjape160201@gmail.com>
To: linux-media@vger.kernel.org
Subject: v4l2-ctl --stream-out-dmabuf example not working
Date: Tue, 4 Jan 2022 17:31:19 +0530 [thread overview]
Message-ID: <CACGrz-PxtZOn27MzzMtxTdfVird6Ccax2SR6+yqoRB2ufJ0LFQ@mail.gmail.com> (raw)
Hello,
I am using the master version of v4l2-utils, found the example to
Stream video from a capture video device (/dev/video1) to an output
video device (/dev/video2) here:
https://manpages.debian.org/unstable/v4l-utils/v4l2-ctl.1.en.html
Here are the steps I have followed.
1) sudo modprobe vivid
2) v4l2-ctl -d0 --stream-mmap --out-device /dev/video3 --stream-out-dmabuf
Here's the output v4l2-ctl --list-devices
<snip>
vivid (platform:vivid-000):
/dev/video2
/dev/video3
/dev/radio0
/dev/radio1
/dev/vbi0
/dev/vbi1
/dev/swradio0
/dev/media1
HD WebCam: HD WebCam (usb-0000:00:14.0-7):
/dev/video0
/dev/video1
/dev/media0
</snip>
Error out on running the program:
<snip>
VIDIOC_G_FMT returned -1 (Invalid argument)
<VIDIOC_QBUF: failed: Invalid argument
handle out -1
handle out2in -1
</snip>
> https://git.linuxtv.org/v4l-utils.git/tree/utils/v4l2-ctl/v4l2-ctl-streaming.cpp#n2669
While I was able to solve the VIDIOC_G_FMT returned -1 (Invalid
argument) by changing the "fd.g_fmt" to "out_fd.g_fmt"
Regards,
Vedant
reply other threads:[~2022-01-04 12:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=CACGrz-PxtZOn27MzzMtxTdfVird6Ccax2SR6+yqoRB2ufJ0LFQ@mail.gmail.com \
--to=vedantparanjape160201@gmail.com \
--cc=linux-media@vger.kernel.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.