Menu

how to get higher resolution cam images

Help
dooglus
2008-10-03
2013-04-15
  • dooglus

    dooglus - 2008-10-03

    I an using a uvc webcam, and it is working very well with flashcam 1.1.

    The problem I have is that although it's a multi-megapixel camera, I only ever get a 160x120 pixel image when using flashcam.

    I've tried running:
    $ flashcam --size 320x240 --daemon
    in an attempt to double the resolution, but all that does is gives me a 160x120  image zoomed in to the center of the usual field of view.

    I imagine I need to tell the uvc driver itself to provide a 320x240 image as well as asking flashcam to 'forward' that image, but how can I do that?

     
    • Vik Tara

      Vik Tara - 2009-03-12

      Does anyone know if this is possible?

      I'm facing the same issue - trying to get a higher resolution output from my Quick Cam 9000.

      Thanks

      Vik

       
      • O E

        O E - 2009-03-25

        just to note that it is working fine for me,
        without patching the code,
        just using -s 1600x1200 (as does 800x600) works.

        the only important thing is, that the
        setMode command in flash uses exactly the same setting, otherwise the picture is only ugly pixel mixup.

         
        • Vik Tara

          Vik Tara - 2009-03-25

          That's wierd - I tried using the -s option but it just showed a zoomed in image.

          I'll try it out again though - as that would be much easier that changing the code each time!

           
        • rup

          rup - 2009-06-07

          I seem to have the same issue. Starting flashcam with a higher resolution but the flash app does not resize. How would one change the setMode You spoke of?

           
          • O E

            O E - 2009-06-08

            the referenced "setMode" is this one:
              http://xrl.us/bevwa9 (Link to livedocs.adobe.com)

            Steps:

            1.
            You start flashcam with a higher resolution:
              -s 1600x1200

            2. in Flash/Actionscript:

            cam=Camera.getCamera();
            wcam = new Video(videoWidth, videoHeight);
            cam.setQuality( 0, 0 );
            cam.setMode(1600, 1200, 25, false);
            wcam.attachCamera(cam);

            ---

            [ not sure about what you mean with "flash app [...] resize":
              the flash app as a whole does not, of course, resize,
              its only the resolution of the camera you can set this way  ]

             
    • Vik Tara

      Vik Tara - 2009-03-12

      OK - I figured a way that this can be done.

      In the source (flashcam.c) the values are set statically.

      static int         width        = 160;    // Default for Flash
      static int         height        = 120;    // Default for Flash

      Changing these values and rebuilding seems to work!

      So far I have tried 320 x 240 - will keep going and see what happens...

      BTW - I think this project still has a lot of use - webcam support in Flash 10 / Linux is still horribly broken!

      Regards

      Vik

       
  • Anonymous

    Anonymous - 2010-06-16

    so I am having this problem too. I can only get flashcam to work at resolutions of 160x120. patching the source code makes no difference. if I use the -s parameter I just get a garbage image.

    I had already installed vloopback (from the latest code in SVN), then installed flashcam. I had to comment out the parts of flashcam's makefile that tried to install vloopback, because that was previously installed.

    I don't quite understand how the cam.setMode() method would be accessible to me. tinychat is the application i am trying to use this with. I know the camera and applications are capable of higher resolutions because if I try on a windows machine I get resolutions of 640x480. applications like guvcview (and even flash ones like testmycam.com) give me higher resolutions, but when using flashcam and vloopback I cannot get it to go higher than 160x120.

    anyone have any thoughts? alternatives?

     

Log in to post a comment.

MongoDB Logo MongoDB