From: "H. Willstrand" <h.willstrand@gmail.com>
To: "Markus Rechberger" <mrechberger@empiatech.com>
Cc: Video <video4linux-list@redhat.com>,
Mauro Carvalho Chehab <mchehab@infradead.org>
Subject: Re: [ANNOUNCE] Videobuf improvements to allow its usage with USB drivers
Date: Sun, 13 Apr 2008 22:49:06 +0200 [thread overview]
Message-ID: <175f5a0f0804131349id288b3jca581ba5efd3ba17@mail.gmail.com> (raw)
In-Reply-To: <529381.57396.qm@web907.biz.mail.mud.yahoo.com>
On Sun, Apr 13, 2008 at 10:34 PM, Markus Rechberger
<mrechberger@empiatech.com> wrote:
>
> --- Mauro Carvalho Chehab <mchehab@infradead.org>
> schrieb:
>
>
>
> > On Sun, 13 Apr 2008 18:17:54 +0200 (CEST)
> > Markus Rechberger <mrechberger@empiatech.com> wrote:
> >
> > > > Conclusion:
> > >
> > > > The time consumption to receive the stream where
> > reduced from about 33.38 seconds to 0.05 seconds
> > >
> > > the question is moreover what made capture_example
> > go
> > > up to 100% CPU in the first try and to 0% in the
> > > second one.
> > > I'm not sure about the old implementation in the
> > > original driver, although I'm just curious about
> > the
> > > details here. xawtv usually uses very little
> > cputime
> > > at all.
> > > If I use
> > > "$ time mplayer tv:// -tv driver=v4l2" it shows up
> >
> > >
> > > real 0m40.972s
> > > user 0m0.230s
> > > sys 0m0.050s
> > >
> > > your benchmark is a bit unclear.
> >
> > The advantage of using capture_example for benchmark
> > tests is that it is a very
> > simple mmap loop, without multi-thread, and just
> > discarding the return. With
> > this, you're timing just the minimal requirements
> > for receiving frames.
> >
> > A TV application will also need to use the video
> > adapter to present images, and
> > may do some other tasks, like running DSP algorithms
> > for de-interlacing. It may
> > also discard frames, if there's not enough CPU to
> > work will all of them. So,
> > you will never know how much of those times are due
> > to V4L kernelspace part.
> >
> > On the tests I did here with TV applications, the
> > amount of performance,
> > reported by "top" also indicated that the previous
> > approach were worse.
> >
> > For example, on the same centino machine @1.5 GHZ,
> > mplayer with "-tv driver=v4l2"
> > were ranging from 30% to 75% of CPU. With videobuf,
> > the CPU consumption were
> > close to 23%, without much variation.
> >
>
> my eeePC shows up 0-5% CPU usage with mplayer
> fullscreen without videobuf, seems more like
> something's broken in your testapplication or
> somewhere else?
>
Using the em28xx?
My is about 40-70% CPU...
Br H.Willstrand
> mplayer uses the memory mapped interface for this.
>
> Also the command
> "$ mplayer -benchmark tv:// -tv driver=v4l2"
>
> CPU Intel 620 Mhz
>
> Markus
>
>
>
> --
> video4linux-list mailing list
> Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/video4linux-list
>
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
next prev parent reply other threads:[~2008-04-13 20:49 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-13 15:28 [ANNOUNCE] Videobuf improvements to allow its usage with USB drivers Mauro Carvalho Chehab
2008-04-13 15:43 ` Markus Rechberger
2008-04-13 16:17 ` Markus Rechberger
2008-04-13 20:22 ` Mauro Carvalho Chehab
2008-04-13 20:34 ` Markus Rechberger
2008-04-13 20:49 ` H. Willstrand [this message]
2008-04-13 20:55 ` Markus Rechberger
[not found] ` <6gvfio$4n3l24@rrcs-agw-01.hrndva.rr.com>
2008-04-14 0:08 ` video4linux help Markus Rechberger
2008-04-14 10:26 ` H. Willstrand
2008-04-14 20:26 ` Mauro Carvalho Chehab
2008-04-13 21:10 ` [ANNOUNCE] Videobuf improvements to allow its usage with USB drivers Mauro Carvalho Chehab
2008-04-13 21:38 ` Markus Rechberger
2008-04-13 21:42 ` Mauro Carvalho Chehab
2008-04-13 21:54 ` Markus Rechberger
2008-04-13 22:02 ` Markus Rechberger
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=175f5a0f0804131349id288b3jca581ba5efd3ba17@mail.gmail.com \
--to=h.willstrand@gmail.com \
--cc=mchehab@infradead.org \
--cc=mrechberger@empiatech.com \
--cc=video4linux-list@redhat.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