Le March 30, 2008 05:31:29 pm Aurelien Jarno, vous avez écrit :
> On Sun, Mar 30, 2008 at 05:04:37PM -0400, Filipus Klutiero wrote:
> > Le March 30, 2008 04:50:24 pm Aurelien Jarno, vous avez écrit :
> > > Filipus Klutiero a écrit :
> > > > Le March 30, 2008 12:47:26 pm Aurelien Jarno, vous avez écrit :
> > > >> Filipus Klutiero a écrit :
> > > >>> Le March 30, 2008 12:05:51 pm Aurelien Jarno, vous avez écrit :
> > > >>>> Filipus Klutiero a écrit :
> > > >>>>> Le March 29, 2008 04:58:06 pm Aurelien Jarno, vous avez écrit :
> > > >>>>>> On Sat, Mar 29, 2008 at 04:41:04PM -0400, Filipus Klutiero wrote:
> > > >>>>>>> Le March 29, 2008 04:29:42 pm Aurelien Jarno, vous avez écrit :
> > > >>>>>>>> On Sat, Mar 29, 2008 at 03:39:42PM -0400, Filipus Klutiero
wrote:
> > > >>>>>>>>> Le March 29, 2008 03:32:35 pm Aurelien Jarno, vous avez
écrit :
> > > >>>>>>>>>> Filipus Klutiero a écrit :
> > > >>>>>>>>>>> Le March 29, 2008 03:10:03 pm Aurelien Jarno, vous avez
écrit :
> > > >>>>>>>>>>>> On Sat, Mar 29, 2008 at 02:23:33PM -0400, Filipus Klutiero
> >
> > wrote:
> > > >>>>>>>>>>>>> Package: luvcview
> > > >>>>>>>>>>>>> Version: 20070512-3
> > > >>>>>>>>>>>>> Severity: normal
> > > >>>>>>>>>>>>>
> > > >>>>>>>>>>>>> luvcview fails to start, although I know the camera works
> > > >>>>>>>>>>>>> from Kopete.
> > > >>>>>>>>>>>>>
> > > >>>>>>>>>>>>> $ luvcview
> > > >>>>>>>>>>>>> luvcview version 0.2.1
> > > >>>>>>>>>>>>> Video driver: x11
> > > >>>>>>>>>>>>> A window manager is available
> > > >>>>>>>>>>>>> video /dev/video0
> > > >>>>>>>>>>>>> Unable to set format: 22.
> > > >>>>>>>>>>>>
> > > >>>>>>>>>>>> You camera does not support the default format. Try to
> > > >>>>>>>>>>>> specify another format using -f yuv|jpg
> > > >>>>>>>>>>>
> > > >>>>>>>>>>> It works with yuv, but not with jpg. Should all cameras
> > > >>>>>>>>>>> support jpg or is it just the default that's incorrect?
> > > >>>>>>>>>>
> > > >>>>>>>>>> Not all the cameras support jpg, and not all of them support
> > > >>>>>>>>>> yuv. There is no sane default.
> > > >>>>>>>>>
> > > >>>>>>>>> OK, but that doesn't answer my question. Should all cameras
> > > >>>>>>>>> support jpg even though they don't all do it or is it
> > > >>>>>>>>> luvcview which is just not trying hard
> > > >>>>>>>>
> > > >>>>>>>> I don't know exactly, but I don't think they should all
> > > >>>>>>>> support jpg.
> > > >>>>>>>
> > > >>>>>>> So why do you think this isn't a luvcview bug? In any case, if
> > > >>>>>>> you don't know exactly, surely luvcview should at least fail
> > > >>>>>>> more cleanly.
> > > >>>>>>
> > > >>>>>> It does already explain the problem:
> > > >>>>>>
> > > >>>>>> "Unable to set format: 22."
> > > >>>>>
> > > >>>>> Indeed, I suppose that someone familiar with the source code
> > > >>>>> would understand what this means.
> > > >>>>
> > > >>>> Error 22 is EINVAL, which just confirms that the camera doesn't
> > > >>>> support this format.
> > > >>>>
> > > >>>>> Anyway, since nobody is sure that the camera is the issue,
> > > >>>>> wouldn't it be safer to reopen this report until someone is
> > > >>>>> confident that the problem is elsewhere?
> > > >>>>
> > > >>>> I am sure that the problem is that your camera doesn't support
> > > >>>> this format.
> > > >>>
> > > >>> Then why did you write yesterday that you didn't "think they should
> > > >>> all support jpg." ?
> > > >>
> > > >> Let's start again. Some cameras only support yuv or jpg format, and
> > > >> not both. When starting luvcview, if your camera doesn't support jpg
> > > >> format, you get an error message telling you it can't set the
> > > >> format. Just switch to yuv and it works.
> > > >
> > > > Yes. Clearly there's a workaround that allows luvcview to start.
> > > > However, what's the problem when doing a default invokation? Is it
> > > > that my camera doesn't support jpg even though all cameras are
> > > > supposed to because it's buggy/doesn't respect a standard, or is it
> > > > that luvcview wrongly assumes that all cameras support jpg? Today you
> > > > wrote that "the problem is that your camera doesn't support this
> > > > format." but yesterday you wrote that "I don't
> > >
> > > Wrong I confirmed that the message you get comes from your camera.
> >
> > What is wrong? You didn't write that "the problem is that your camera
> > doesn't support this format." today? Or you were wrong to write that?
>
> You were asking me if the problem is elsewhere.
I didn't ask if the problem is elsewhere.
> I answered you that the
> message is clear: your camera doesn't support this format.
There's no way the message is clear. The message is
"Unable to set format: 22."
If this means that the camera doesn't support the jpg video format, this
should read something like "Camera doesn't support video format: jpg."
> No need to
> look elsewhere.
>
> > > > think they should all support jpg.", which seems contradictory.
> > >
> > > Not all camera support jpg. Not all camera support yuv. There is no
> > > sane default. That's that simple.
> >
> > Then why does luvcview use a default?
>
> Because it has to ask for a format to the camera.
The problem isn't that luvcview asks for a format to the camera, it's that it
asks a default format without being sure that the camera supports that
format, and then fails cryptically without trying any other format.