From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from galahad.ideasonboard.com ([185.26.127.97]:56477 "EHLO galahad.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752080AbaKER7z convert rfc822-to-8bit (ORCPT ); Wed, 5 Nov 2014 12:59:55 -0500 From: Laurent Pinchart To: =?ISO-8859-1?Q?R=E9mi?= Denis-Courmont Cc: Sakari Ailus , Grazvydas Ignotas , linux-media@vger.kernel.org, Hans Verkuil Subject: Re: (bisected) Logitech C920 (uvcvideo) stutters since 3.9 Date: Wed, 05 Nov 2014 16:05:59 +0200 Message-ID: <7185728.KDKlKP9htJ@avalon> In-Reply-To: <36286542.DzZr56uF9K@basile.remlab.net> References: <36286542.DzZr56uF9K@basile.remlab.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" Sender: linux-media-owner@vger.kernel.org List-ID: Hi Rémi, On Tuesday 04 November 2014 22:41:44 Rémi Denis-Courmont wrote: > Le mardi 04 novembre 2014, 15:42:37 Rémi Denis-Courmont a écrit : > > Le 2014-11-04 14:58, Sakari Ailus a écrit : > > >> > Have you tried with a different application to see if the problem > > >> > persists? > > >> > > >> Tried mplayer and cheese now, and it seems they are not affected, so > > >> it's an issue with vlc. I wonder why it doesn't like newer flags.. > > >> > > >> Ohwell, sorry for the noise. > > > > > > I guess the newer VLC could indeed pay attention to the monotonic > > > timestamp flag. Remi, any idea? > > > > VLC takes the kernel timestamp, if monotonic, since version 2.1. > > Otherwise, it generates its own inaccurate timestamp. So either that > > code is wrong, or the kernel timestamps are. > > From a quick check with C920, the timestamps from the kernel are quite > jittery, and but seem to follow a pattern. When requesting a 10 Hz frame > rate, I actually get a frame interval of about 8/9 (i.e. 89ms) jumping to > 1/3 every approximately 2 seconds. > > From my user-space point of view, this is a kernel issue. The problem > probably just manifests when both VLC and Linux versions support monotonic > timestamps. > > Whether the root cause is in the kernel, the device driver or the firmware, > I can´t say. Would you be able to capture images from the C920 using yavta, with the uvcvideo trace parameter set to 4096, and send me both the yavta log and the kernel log ? Let's start with a capture sequence of 50 to 100 images. -- Regards, Laurent Pinchart