public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Ivan <ivan.q.public@gmail.com>
Cc: Devin Heitmueller <dheitmueller@kernellabs.com>,
	linux-media@vger.kernel.org
Subject: Re: em28xx: success report for KWORLD DVD Maker USB 2.0 (VS-USB2800) [eb1a:2860]
Date: Fri, 09 Jul 2010 09:47:48 -0300	[thread overview]
Message-ID: <4C371A74.4080901@redhat.com> (raw)
In-Reply-To: <4C364CD3.3080106@gmail.com>

Em 08-07-2010 19:10, Ivan escreveu:
> On 07/08/2010 05:49 PM, Devin Heitmueller wrote:
>> That card does have an onboard scaler, although it's not clear to me
>> why it isn't working.  Exactly what command line did you use?
> 
> At first, I was always using
> 
> mplayer tv:// -tv device=/dev/video1:input=1:norm=NTSC
> 
> which defaults to a resolution of 640x480. This output looked correct (except for vertical stripes) in kernel 2.6.32-23-generic, but was horizontally shifted after I updated to the current mercurial sources.

I never saw the em28xx scaler generating such vertical stripes. This could be a mplayer or a video adapter driver problem.
Are you using a proprietary video driver? You may try to use ffmeg or mencoder to generate a mpeg file at 640x480 and then
try to play it on another player (preferably on another machine), to see if this problem disappears.
> 
> Then I noticed that
> 
> mplayer tv:// -tv device=/dev/video1:input=1:norm=NTSC:width=720
> 
> gives a correct picture with current hg source.
> 
>>> v4l2: 1199 frames successfully processed, -3 frames dropped.

This is not a V4L issue.

A negative number of dropping frames makes no sense. It is probably a mplayer bug.
I would try to get a newer version of mplayer and double check.

If your video adapter is not fast enough, or if some post-processing logic at mplayer
are enabled and you don't have enough processing speed at both CPU and GPU, mplayer may
complain about frames dropped. It may also be related to audio driver, if you're enabling 
alsa at .mplayer/config.

When you have frames dropped, it may help to replace the video and audio output (-vo and -ao)
to use one of the several different mplayer output drivers. On my own tests, I generally use
sdl, gl or gl2 drivers for output, instead of x11, as they provide a better performance with
the video adapters I have here.
To get a list of available drivers, you may use:
	$ mplayer -vo help


>>> ...
>>
>> Yeah, I don't know.  You would have to ask the mplayer/mencoder people.
> 
> Ah, so those statistics are generated by mplayer, then, not by v4l.
> 
>>> It would also seem that V4L doesn't actually discard any frames...
>>> ...blah blah blah about mencoder...
>>
>> Again, this would be an mplayer/mencoder thing.
> 
> I guess I'm just trying to confirm that v4l doesn't try to enforce a strict NTSC framerate, but just passes all frames on even if they appear at a slightly different framerate.

V4L doesn't enforce a framerate. It will just send frames to userspace as they're being available
by the hardware and provided that the application is fast enough to get frames at the hardware speed.

em28xx hardware outputs NTSC frames at about 30 fps.

> 
> Ivan
> -- 
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


  reply	other threads:[~2010-07-09 12:47 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-08  1:56 em28xx: success report for KWORLD DVD Maker USB 2.0 (VS-USB2800) [eb1a:2860] Ivan
2010-07-08  2:12 ` Devin Heitmueller
2010-07-08 17:44   ` Ivan
2010-07-08 17:52     ` Devin Heitmueller
2010-07-08 19:52       ` Ivan
2010-07-08 20:02         ` Devin Heitmueller
2010-07-08 20:35           ` Ivan
2010-07-08 21:33             ` Ivan
2010-07-08 21:49               ` Devin Heitmueller
2010-07-08 22:10                 ` Ivan
2010-07-09 12:47                   ` Mauro Carvalho Chehab [this message]
2010-07-09 17:19                     ` Ivan
2010-07-09 18:03                       ` Mauro Carvalho Chehab
2010-07-09 18:12                         ` Devin Heitmueller
2010-07-09 19:02                           ` Ivan
2010-07-09 20:57                           ` Mauro Carvalho Chehab
2010-07-09 21:09                             ` Ivan

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=4C371A74.4080901@redhat.com \
    --to=mchehab@redhat.com \
    --cc=dheitmueller@kernellabs.com \
    --cc=ivan.q.public@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox