From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: Diego Viola <diego.viola@gmail.com>, kraxel@redhat.com
Cc: qemu-devel@nongnu.org
Subject: Re: Slow video output from webcam with qemu-xhci but smooth with usb-ehci
Date: Thu, 17 Dec 2020 20:24:03 +0000 [thread overview]
Message-ID: <20201217202403.GB43032@work-vm> (raw)
In-Reply-To: <CA+ToGPFoARJQ80DcGnNqtH3KHcyN7OXiFYtkBEVr7wa=bJV4zw@mail.gmail.com>
* Diego Viola (diego.viola@gmail.com) wrote:
> On Sat, Dec 12, 2020 at 1:28 PM Diego Viola <diego.viola@gmail.com> wrote:
> >
> > Hi,
> >
> > I'm experiencing a lot of choppiness in the video output when I pass
> > through my USB webcam to the guest using qemu-xhci as follows:
> >
> > qemu-system-x86_64 -enable-kvm -hda arch-zoom.qcow2 -m 4G -vga virtio
> > -device qemu-xhci,id=xhci -device
> > usb-host,bus=xhci.0,hostdevice=/dev/bus/usb/002/004
> >
> > My webcam is:
> >
> > Bus 002 Device 004: ID 04f2:b449 Chicony Electronics Co., Ltd Integrated Camera
> >
> > I am using mpv /dev/video0 from the guest.
> >
> > It works fine if I use usb-ehci instead, e.g.:
> >
> > qemu-system-x86_64 -enable-kvm -hda arch-zoom.qcow2 -m 4G -vga virtio
> > -device usb-ehci,id=ehci -device
> > usb-host,bus=ehci.0,hostdevice=/dev/bus/usb/002/004
> >
> > In this case, the video output from mpv /dev/video0 is not choppy.
> >
> > My QEMU version is 5.2.0 -- I am running Arch Linux on the host and guest.
> >
> > Any ideas please?
> >
> > Thanks,
> > Diego
>
> OK, I just noticed that it's mostly at the beginning (when I first run
> mpv) that the video is jerky/choppy, looks like mpv is still buffering
> at that stage, after buffering gets to 99% the video is smoother (with
> xhci).
>
> Now I don't understand why buffering with ehci happens a lot faster/smoother.
I don't understand it either; but cc'ing in Gerd for his USB wisdom.
Dave
> Nevermind, not an issue after all.
>
> Diego
>
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
prev parent reply other threads:[~2020-12-17 20:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-12 16:28 Slow video output from webcam with qemu-xhci but smooth with usb-ehci Diego Viola
2020-12-13 19:30 ` Diego Viola
2020-12-13 19:42 ` Diego Viola
2020-12-13 22:46 ` Diego Viola
2020-12-17 20:24 ` Dr. David Alan Gilbert [this message]
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=20201217202403.GB43032@work-vm \
--to=dgilbert@redhat.com \
--cc=diego.viola@gmail.com \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.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.