From: Andrey Utkin <andrey_utkin@fastmail.com>
To: Oliver Collyer <ovcollyer@mac.com>
Cc: linux-media@vger.kernel.org
Subject: Re: uvcvideo error on second capture from USB device, leading to V4L2_BUF_FLAG_ERROR
Date: Tue, 6 Sep 2016 15:28:23 +0300 [thread overview]
Message-ID: <20160906122823.toxscjyxomrh2col@zver> (raw)
In-Reply-To: <FE81AFD0-C5F1-4FE7-A282-3294E668066C@mac.com>
On Tue, Sep 06, 2016 at 01:51:51PM +0300, Oliver Collyer wrote:
> So today I installed Ubuntu 16.04 on another PC (this one a high spec machine with a Rampage V Extreme motherboard) and I reproduced exactly the same errors and trace.
>
> Rebooting the same PC back into Windows 10 and using the same USB 3.0 port, I had no problems capturing using FFmpeg via DirectShow. I could start and stop the capture repeatedly without any warnings or errors appearing in FFmpeg (built from the same source).
>
> If the hardware is misbehaving, on both these capture devices, then DS must be handling it better than V4L2. Or there is simply an obscure bug in V4L2 which only manifests itself with certain devices.
>
> Would providing ssh access to the machine be of interest to anyone who wants to debug this?
I am curious to tinker with this, just not sure about free time for it.
Please go through the following instruction, and then we'll see if ssh
is going to help to debug this.
Also I think it is worth to CC actual manufacturers. There are addresses
for technical support of both devices in public on maker websites.
Please CC them when replying with new logs, to let them catch up.
So, I am still not certain what confuses the device, i.e. where the
faulty usage pattern comes from: ffmpeg or driver. So I'd like you to
check the difference with various userspace applications which involve
streaming from device.
For each of your two devices, alone (not two at same time), do this:
For each command from this list:
"v4l2-compliance -s -d /dev/video0",
"ffmpeg -f v4l2 -i /dev/video0 -vcodec rawvideo -f null -y /dev/null",
"<what you referred to as 'capture API example'>"
(feel free to add more, maybe mplayer invocation or such)
dmesg -C
plug in the device
modprobe uvcvideo module
run the command twice or more in row
save uncut commands output (with command lines) to separate file
rmmod uvcvideo
unplug the device
save "dmesg" output to separate file
Done.
I guess this test makes sense, or am I missing something you've already
told us?
If you go making a script for this, make sure to notice if rmmod fails
for any reason, etc.
next prev parent reply other threads:[~2016-09-06 12:28 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-03 9:24 uvcvideo error on second capture from USB device, leading to V4L2_BUF_FLAG_ERROR Oliver Collyer
2016-09-04 19:25 ` Andrey Utkin
2016-09-04 19:55 ` Oliver Collyer
2016-09-05 19:43 ` Oliver Collyer
2016-09-05 20:19 ` Andrey Utkin
2016-09-05 20:32 ` Oliver Collyer
2016-09-06 10:51 ` Oliver Collyer
2016-09-06 12:28 ` Andrey Utkin [this message]
2016-09-06 17:26 ` Oliver Collyer
2016-09-10 7:37 ` Oliver Collyer
2016-09-10 10:14 ` Andrey Utkin
2016-09-10 10:21 ` Oliver Collyer
2016-09-10 10:58 ` Andrey Utkin
2016-09-10 11:11 ` Oliver Collyer
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=20160906122823.toxscjyxomrh2col@zver \
--to=andrey_utkin@fastmail.com \
--cc=linux-media@vger.kernel.org \
--cc=ovcollyer@mac.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox